Skip to Content
0
Former Member
Dec 24, 2007 at 11:11 AM

loop to sort internal table

16 Views

hi,

i would like to know if this is possible.

i would like to sort internal table base on fieldX. if fieldX is initial then sort with condition as below else system default sort sequence.

i know the syntax incorrect. need advice with example.

loop at itab

if itab-fieldX is initial.

sort itab[] by fieldA ascending fieldB descending.

endif.

endloop.

thanks