10-15-2008 4:26 PM
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.
10-15-2008 4:33 PM
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.
10-15-2008 4:34 PM