Skip to Content
0
Oct 26, 2005 at 01:14 AM

Using field-symbols in sort criteria ??

189 Views

Hi All,

I am having problems getting a dynamic sort to work.

The idea is to dynamically assign the field and sequence in the sort statement.

example.

assign 'WERKS' to <fld1>.

assign 'ASCENDING' to <ord1>.

assign 'MATNR' to <fld2>.

assign 'DESCENDING' to <ord2>.

sort itab by <fld1> <ord1> <fld2> <ord2>.

Thanks for the help.

David Cooper