Question:
How can I dynamically sort my list-processing without returning to the selection screen options?
Answer:
you can try using ALV or Interactive Reports... just use the search facility in this forum to find out more about these topics.
_________________
My ABAP Program does what I tell it to do... not what I want it to do...
Answer:
Use the AT-USER-COMMNAND event to trigger a sort.
If you want to be really clever you might be able to get the cursor position and use that to determine which column to sort by...
Jon
Answer:
Hi,
Create a GUI status SORT. Using At User command this can be processed. You can capture the field and the corresponding value using GET CURSOR....command.
then using SORT do the following.
WHEN 'SORT'.
SY-LSIND = 0.
GET CURSOR FIELD FLD.
SPLIT FLD AT '-' INTO F1 F2.
SORT IT_OPN BY (F2).
LOOP AT IT_OPN.
WRITE:/01 IT_OPN-VBELN,
20 IT_OPN-NETWR.
ENDLOOP.
....
ENDCASE.
SY-LSIND has to be handled to avoid the multiple screens during every sort. you can also add HOTSPOTS...for more visibility etc.,
This should be of more use to you for dynamic sorting.
Good Luck,
Srini.