SOURCE+CODE (38)
SOURCE+CODE (38)
* Include bdcrecx1_s:
* If you have own auth.-checks you can use include bdcrecx1 instead.
include bdcrecx1_s.
*** DO NOT CHANGE - the generated data section - DO NOT CHANGE ***
*** Generated data section with specific formatting - DO NOT CHANGE ***
MATNR_001(040),
MTART_003(004),
KZSEL_01_004(001),
MAKTX_005(040),
MEINS_006(003),
end of record.
END OF TY_SEMI.
start-of-selection.
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
i_tab_raw_data = IT_TRUX
i_filename = LV_PATH
TABLES
i_tab_converted_data = IT_SEMI.
perform open_group.
'RMMG1-MTART'.
'=ENTR'.
* record-MATNR_001.
* record-MBRSH_002.
* record-MTART_003.
'=ENTR'.
* record-KZSEL_01_004.
'/00'.
* record-MAKTX_005.
'MARA-MEINS'.
* record-MEINS_006.
'=YES'.
ENDLOOP.
perform close_group.