Code: Alles auswählen.
DATA:
idx TYPE sy-index,
itab TYPE ???.
FIELD-SYMBOLS:
<fs>.
* Run through every line of the remote table
LOOP AT gt_data_remote INTO gs_data_remote.
CLEAR idx.
* Split the 512 Byte String into pieces
SPLIT gs_data_remote-wa AT g_delimiter
INTO TABLE gt_datatext_local.
LOOP AT gt_datatext_local INTO gs_datatext_local.
* Convert the pieces into corresponding datatypes
ADD 1 TO idx.
ASSIGN COMPONENT idx OF STRUCTURE itab TO <fs>.
<fs> = gs_datatext_local.
APPEND itab.
ENDLOOP.
NEW-LINE.
ENDLOOP.