Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

replacement for FM C14G_TEXT_FORMAT

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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