fix empty package

This commit is contained in:
sbcgua 2016-10-14 10:42:29 +02:00
parent 0540063a5d
commit a74b341cd4

View File

@ -137,13 +137,19 @@ CLASS lcl_repo_content_browser IMPLEMENTATION.
METHOD filter_changes.
DATA lt_repo_temp LIKE ct_repo_items.
FIELD-SYMBOLS <item> LIKE LINE OF ct_repo_items.
LOOP AT ct_repo_items ASSIGNING <item>.
CHECK <item>-changes = 0.
DELETE ct_repo_items INDEX sy-tabix.
CHECK <item>-changes > 0.
APPEND <item> TO lt_repo_temp.
ENDLOOP.
IF lines( lt_repo_temp ) > 0. " Prevent showing empty package if no changes, show all
ct_repo_items = lt_repo_temp.
ENDIF.
ENDMETHOD. "filter_changes
METHOD get_local.