‎2006 Nov 19 1:21 AM
Hi, I'm facing a problem with # characters when opening a tab delimited file from application server. The split commands can be used when the target structure is known into respective fields, in this case the target structure is chosen dynamically, it's unicode 4.7 system, hence the # is disturbing the sequence of the transfer. Any pointers towards this issue will be rewarded.
OPEN dataset p_file for input in text mode encoding default.
if sy-subrc = 0.
DO.
read dataset p_file into <fs_line>.
if sy-subrc <> 0.
exit.
else.
insert <fs_line> into table <fs_table>.
endif.
ENDDO.
close dataset p_file.
endif.
‎2006 Nov 19 4:42 AM
after u write the data to final table, u can loop and use split at # into fields dynamically...
‎2006 Nov 19 4:44 AM
Hi Ramesh,
The data has been written to the dynamic final table <fs_tab>, I can loop through this assigning the dynamic structure <fs_line> which is in dynamic structure, the field names are unknown as the structure and internal tables are created dynamically, they keep changing everytime.