Convert a string to a table.
We are in the process of upgrading to ECC 6.0 and are correcting unicode errors.
I am looking for a way to convert a string into a flat structure containing various data types.
I have looked at func modules but have not come across one that fits.
Our internal table is defined as a standard table of type string.
We loop thru this table and now want to assign each line of the table into a structure defined as follows:
Begin of _ttype
m like mseg,
end of ttype
i_mseg like ttype occurs 0 with header line
any help is appreciated
Assuming that the string contains the data with the right lengths and offsets then you can use the methods of class <b>CL_ABAP_CONTAINER_UTILITIES</b>:
FILL_CONTAINER_C Fill Container of Type C or STRING with Content READ_CONTAINER_C Read Container of Type C or STRING