mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
XSLT: fix activation error, close #385
Fix activation error. If a program used the XSLT transformation, it showed error while activating
This commit is contained in:
parent
aef97df00e
commit
96579e58b3
|
@ -125,6 +125,8 @@ CLASS lcl_object_xslt IMPLEMENTATION.
|
||||||
lcx_exception=>raise( 'error from cl_o2_api_xsltdesc=>create_new_from_string' ).
|
lcx_exception=>raise( 'error from cl_o2_api_xsltdesc=>create_new_from_string' ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
|
lo_xslt->activate( ).
|
||||||
|
|
||||||
lo_xslt->save( ).
|
lo_xslt->save( ).
|
||||||
|
|
||||||
lo_xslt->set_changeable( abap_false ).
|
lo_xslt->set_changeable( abap_false ).
|
||||||
|
|
|
@ -567,6 +567,11 @@ CLASS lcl_objects IMPLEMENTATION.
|
||||||
|
|
||||||
FIELD-SYMBOLS: <ls_result> LIKE LINE OF it_results.
|
FIELD-SYMBOLS: <ls_result> LIKE LINE OF it_results.
|
||||||
|
|
||||||
|
* XSLT has to be handled before CLAS/PROG
|
||||||
|
LOOP AT it_results ASSIGNING <ls_result> WHERE obj_type = 'XSLT'.
|
||||||
|
APPEND <ls_result> TO rt_results.
|
||||||
|
ENDLOOP.
|
||||||
|
|
||||||
* PROG before internet services, as the services might use the screens
|
* PROG before internet services, as the services might use the screens
|
||||||
LOOP AT it_results ASSIGNING <ls_result> WHERE obj_type = 'PROG'.
|
LOOP AT it_results ASSIGNING <ls_result> WHERE obj_type = 'PROG'.
|
||||||
APPEND <ls_result> TO rt_results.
|
APPEND <ls_result> TO rt_results.
|
||||||
|
@ -578,7 +583,9 @@ CLASS lcl_objects IMPLEMENTATION.
|
||||||
ENDLOOP.
|
ENDLOOP.
|
||||||
|
|
||||||
LOOP AT it_results ASSIGNING <ls_result>
|
LOOP AT it_results ASSIGNING <ls_result>
|
||||||
WHERE obj_type <> 'IASP' AND obj_type <> 'PROG'.
|
WHERE obj_type <> 'IASP'
|
||||||
|
AND obj_type <> 'PROG'
|
||||||
|
AND obj_type <> 'XSLT'.
|
||||||
APPEND <ls_result> TO rt_results.
|
APPEND <ls_result> TO rt_results.
|
||||||
ENDLOOP.
|
ENDLOOP.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user