Transport to zip improvement: #553

Don't serialize objects that are not in the transport request.
This commit is contained in:
Christian Tapia Sabogal 2017-01-19 17:07:59 -05:00 committed by GitHub
parent 23cd9ff736
commit 98cf60c2a8

View File

@ -404,24 +404,25 @@ CLASS lcl_zip IMPLEMENTATION.
CREATE OBJECT lo_log.
lt_zip = io_repo->get_files_local( lo_log ).
lt_zip = io_repo->get_files_local( io_log = lo_log
it_filter = it_filter ).
IF lo_log->count( ) > 0.
lo_log->show( ).
ENDIF.
IF lines( it_filter ) > 0.
LOOP AT lt_zip ASSIGNING <ls_zip>.
lv_index = sy-tabix.
READ TABLE it_filter WITH KEY
object = <ls_zip>-item-obj_type
obj_name = <ls_zip>-item-obj_name
TRANSPORTING NO FIELDS.
IF sy-subrc <> 0.
DELETE lt_zip INDEX lv_index.
ENDIF.
ENDLOOP.
ENDIF.
* IF lines( it_filter ) > 0.
* LOOP AT lt_zip ASSIGNING <ls_zip>.
* lv_index = sy-tabix.
* READ TABLE it_filter WITH KEY
* object = <ls_zip>-item-obj_type
* obj_name = <ls_zip>-item-obj_name
* TRANSPORTING NO FIELDS.
* IF sy-subrc <> 0.
* DELETE lt_zip INDEX lv_index.
* ENDIF.
* ENDLOOP.
* ENDIF.
file_download( iv_package = io_repo->get_package( )
iv_xstr = encode_files( lt_zip ) ).