hi,
clear ur header (work area).
then sort.
regards
anver
i m not clear abt ur requiremtn..
wht u can do is u can dd a seqno field to ur itab and then sort ur itab by this field in asc or descending order--
data: begin of itab occurs 0,
seqno(1) type c,
pernr like pa0006-pernr,
data end of itab.
select pernr from pa0006 up to 10 rows into corresponding fields of itab.
loop at itab.
itab-seqno = sy-tabix.
modify itab index sy-tabix.
endloop.
sort itab descending by seqno.
loop at itab.
write:/ itab.
endloop.
Hi,
When you specify
SORT ITAB BY NUMBER.
It will sort no append statement is needed.
Add a comment