Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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,

other fields...

end of ttype

i_mseg like ttype occurs 0 with header line

any help is appreciated

J

Tags:
Former Member
Former Member replied

Hello

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

Regards

Uwe

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question