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 statement

Former Member
0 Likes
649

Hi

i have itab fields as below, all are key fields

aaa 38 xxx-01

aaa 38 xxx-02

aaa 38 xxx-03

aaa 38 xxx-04

aaa 38 xxx-05

aaa 38 xxx-06

i need to concatenate 01and 02 and 03 and 04 and 05 and 06 into one field for display purpose.

how to achieve this

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
628

Hi

SRING TYPE STRING .

Describe table itab lines lin .

DO lin times .

READ TABLE ITAB INTO string INDEX SY_INDEX .

CONCATENATE FINAl string+11(2) INTO final .

ENDDO .

HOPE THIS HELPS .

Praveen

Hi

i have itab fields as below, all are key fields

aaa 38 xxx-01

aaa 38 xxx-02

aaa 38 xxx-03

aaa 38 xxx-04

aaa 38 xxx-05

aaa 38 xxx-06

i need to concatenate 01and 02 and 03 and 04 and 05 and 06 into one field for display purpose.

how to achieve this

3 REPLIES 3
Read only

Former Member
0 Likes
628

loop at itab.

clear l_disp.

concatenate itab-f01 itab-f02itab-f03 ....itab-f06 into l_disp seperated by space.

write: l_disp.

endloop.

Read only

Former Member
0 Likes
628

Hi,

string : str.

Loop at itab into wa_itab.

concatenate str wa_itab-field+5(2) into str.

endloop.

regards,

Santosh Thorat

Read only

Former Member
0 Likes
629

Hi

SRING TYPE STRING .

Describe table itab lines lin .

DO lin times .

READ TABLE ITAB INTO string INDEX SY_INDEX .

CONCATENATE FINAl string+11(2) INTO final .

ENDDO .

HOPE THIS HELPS .

Praveen