Skip to Content
-2
Dec 21, 2018 at 04:12 PM

Passing data to custom table dynamically

247 Views

I have uploaded a excel file using CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'. The internal table obtained from the above function is stored in t_upload.

data: t_upload type table of ZZTEST.

CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
* I_FIELD_SEPERATOR =
I_LINE_HEADER = 'X'
i_tab_raw_data = it_type
i_filename = file_nam
TABLES
i_tab_converted_data = t_upload[]
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.

For each record in the t_upload i have to create 365 records dynamically(for 365 different days) .

How to store records dynamically in custom table 'ZZTEST'?