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

concatenate

Former Member
0 Likes
472

Hi all,

When i am concatenating the itab-vbeln ,if the itab-text1(255) when it cross 255 length it should go to itab-text2(255).

loop at itab.

length = strlen( itab-vbeln ).

if length le 255.

text1 = itab-vbeln(length).

concatenate itab-vbeln '|' into text1.

concatenate tet text1 into text1.

else.

if length gt 255.

text2 = itab-vbeln(length).

concatenate itab-vbeln '|' into text2.

concatenate tet1 text2 into text2.

endif. endif.

how to solve this problem.

regards,

singh.

2 REPLIES 2
Read only

former_member156446
Active Contributor
0 Likes
429

data: vl_long type string.

loop at itab.
len = strlen( vl_long).

itab-text1 = vl_long+0(255).

if len GR 255.
len2 = len - 255.

itab-text2 = vl_long+256( len2 ). 
endif.

endloop.
Read only

naveen_inuganti2
Active Contributor
0 Likes
429

Hi..,

You SPLIT command.

Thanks,

Naveen.I