Hi Forum,
I have generated a zip file and have successfully split the file into smaller chunks. I want to make the chunk size dynamic i.e. user picks the size. Please see the code below and please suggest how lc_line_size dynamic can be made dynamic
CONSTANTS lc_line_size TYPE i VALUE '512'.
TYPES: BEGIN OF type_binary_tab,
raw(lc_line_size) TYPE x,
END OF type_binary_tab.
DATA lv_zip_content TYPE xstring.
DATA lv_file_length TYPE i.
DATA lt_data TYPE TABLE OF type_binary_tab.
lv_zip_content = io_zip->save( ).
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = lv_zip_content
IMPORTING
output_length = lv_file_length
TABLES
binary_tab = lt_data.