09-10-2009 10:21 AM
Hi,
I need an FM which works similar to FM C14G_TEXT_FORMAT.
This takes up an input line and then depending on the length 'n' we mention,
it splits up the line into multiple sublines , each of length of 'n' characters. Also takes language as a parameter
09-10-2009 11:03 AM
Hi,
You can use:
To split a character string into two or more smaller strings, use the SPLIT statement as follows:
SPLIT <c> AT <del> INTO <c1> ... <cn>.
The parts before and after the separator are placed in the target fields <c1> ... <cn>.
You can also split a string into the individual lines of an internal table as follows:
SPLIT <c> AT <del> INTO TABLE <itab>.
The system adds a new line to the internal table <itab> for each part of the string.
Regards
Shiva