Application Development and Automation 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: 
Read only

Split sentences

Former Member
0 Likes
575

Hi experts,

I have this problem. I would like to split a sentence after the 30th word.

e.g.

1234567890123456789012345678901234567890

into

123456789012345678901234567890

1234567890

how do i achieve that? Please enlighten me.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
528

Hello

Use FM RKD_WORD_WRAP with OUTPUTLEN = 30

3 REPLIES 3
Read only

Former Member
0 Likes
529

Hello

Use FM RKD_WORD_WRAP with OUTPUTLEN = 30

Read only

0 Likes
528

you mean this FM - RSDG_WORD_WRAP?

i think this will work. thanks!

Read only

Former Member
0 Likes
528

Hi,

No need for FM, just do like below;

lv_string='1234567890123456789012345678901234567890'.

lv_string+0(30) will give you the first 30 characters.
lv_string+30(30) will give you the rest.

Regards

Karthik D