PROG: skip bad dynpro numbers #1967

This commit is contained in:
larshp 2018-09-27 09:37:18 +02:00 committed by Lars Hvam
parent d130fbaa14
commit 7b90fccaea

View File

@ -584,7 +584,8 @@ CLASS zcl_abapgit_objects_program IMPLEMENTATION.
* loop dynpros and skip generated selection screens
LOOP AT lt_d020s ASSIGNING <ls_d020s>
WHERE type <> 'S' AND type <> 'W' AND type <> 'J'.
WHERE type <> 'S' AND type <> 'W' AND type <> 'J'
AND NOT dnum IS INITIAL.
CALL FUNCTION 'RPY_DYNPRO_READ'
EXPORTING
@ -602,7 +603,7 @@ CLASS zcl_abapgit_objects_program IMPLEMENTATION.
permission_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'Error while reading dynpro' ).
zcx_abapgit_exception=>raise( |Error while reading dynpro: { sy-subrc }| ).
ENDIF.
LOOP AT lt_fields_to_containers ASSIGNING <ls_field>.