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:
larshp 2016-10-15 09:10:17 +00:00
parent aef97df00e
commit 96579e58b3
2 changed files with 10 additions and 1 deletions

View File

@ -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 ).

View File

@ -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.