Application Development 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: 

clubing handling unit

Former Member
0 Kudos

Hi

i have a requirement i want to club handling unit my output list containg

handling unit no total qty status

1700001 291 exit

1700002 291 dispatch

1700003 291 dispatch

1700004 291 dispatch

1700005 291 dispatch

1700006 291 dispatch

1700007 291 exit

and i want to change it in following

handling unit no total qty status

1700001 291 exit

1700002-170006 1455 dispatch

1700007 291 exit

can anybody guide me .

thanks and regards

2 REPLIES 2

Former Member
0 Kudos

Hi,

You Can Use Collect statement.

TYPES: begin of t_tab,

handling

unit no

total qty

status

END OF t_tab.

DATA: i_tab type table of t_tab,

i_final type table of t_tab.

DATA wa_tab LIKE LINE OF i_tab.

*Now Select data in I_TAB

LOOP AT ITAB into WA_TAB.

collect wa_tab into i_final.

ENDLOOP.

Thanks.

0 Kudos

HI

THANKS FOR UR REPLY

but how will handling unit no which has status dispatch or exit depending on status will club i.e 170002-170006 it should club and show me in my list