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