Skip to Content
Feb 05, 2021 at 09:36 AM

sort internal table for two fields


I need to sort the it_mseg internal table in ascending order for the bwart and mkpf_budat fields.

I am trying to use this statement:

ORDER it_mseg FOR budat_mkpf bwart.

but it doesn't work because it only sorts for one field I also tried like this:

order it_mseg by bwart.

order stable it_mseg of budat_mkpf.

how do i do it? thanks