Skip to Content
avatar image
Former Member

concatenate

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 15, 2008 at 03: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.
    Add comment
    10|10000 characters needed characters exceeded

  • Oct 15, 2008 at 03:34 PM

    Hi..,

    You SPLIT command.

    Thanks,

    Naveen.I

    Add comment
    10|10000 characters needed characters exceeded