#241, move FORM run IF to lcl_app=>run()

This commit is contained in:
atsy 2016-06-09 19:15:25 +03:00
parent 61fc5c29fb
commit e820c2e820

View File

@ -21029,7 +21029,12 @@ CLASS lcl_app IMPLEMENTATION.
METHOD run. METHOD run.
IF sy-batch = abap_true.
lcl_background=>run( ).
ELSE.
gui( )->go_home( ). gui( )->go_home( ).
CALL SELECTION-SCREEN 1001. " trigger screen
ENDIF.
ENDMETHOD. "run ENDMETHOD. "run
@ -21096,13 +21101,7 @@ FORM run.
TRY. TRY.
lcl_persistence_migrate=>run( ). lcl_persistence_migrate=>run( ).
IF sy-batch = abap_true.
lcl_background=>run( ).
ELSE.
lcl_app=>run( ). lcl_app=>run( ).
CALL SELECTION-SCREEN 1001. " trigger screen
ENDIF.
CATCH lcx_exception INTO lx_exception. CATCH lcx_exception INTO lx_exception.
MESSAGE lx_exception->mv_text TYPE 'E'. MESSAGE lx_exception->mv_text TYPE 'E'.
ENDTRY. ENDTRY.