10-10-2007 7:49 AM
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
10-10-2007 7:53 AM
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.
10-10-2007 8:33 AM
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