Adapt ZABAPGIT_PAGE_STAGE to 702

READ TABLE mo_repo->get_files_local( ) is not valid in version 702.
Replaced with an aux internal table.
This commit is contained in:
Nuno Godinho 2017-02-07 15:37:10 +00:00
parent 63a938ffb2
commit 81183b6353

View File

@ -270,9 +270,11 @@ CLASS lcl_gui_page_stage IMPLEMENTATION.
ENDMETHOD. "scripts
METHOD read_last_changed_by.
DATA: ls_local_file TYPE ty_file_item.
DATA: ls_local_file TYPE ty_file_item,
t_files_local type ty_files_item_tt.
TRY.
READ TABLE mo_repo->get_files_local( ) INTO ls_local_file WITH KEY file = is_file.
t_files_local = mo_repo->get_files_local( ).
READ TABLE t_files_local INTO ls_local_file WITH KEY file = is_file.
IF sy-subrc = 0.
rv_user = lcl_objects=>changed_by( ls_local_file-item ).
ENDIF.