I don't think you can do that with ABAP query without hacking the underlying program.
I think you will have to develop a custom "Z" report.
If you do, then all you need to do is to add a line of code to set the status. Of course you must create the status as well.
SET PF-STATUS 'MAIN'.
You can then handle it by using the AT USER-COMMAND event.
Regards,
Rich Heilman
Hi,
Check this link for ABAP Query
http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp
http://www.sappoint.com/abap/ab4query.pdf>
Hope it helps u.
Thanks&Regards
Ruthra
Hi,
1) define in coding block 'DATA':
SELECTION-SCREEN PUSHBUTTON /1(20) Hallo USER-COMMAND com1.
2)in coding block 'AT SELECTION-SCREEN' you can ask sy-ucom and process your sorting
regards Andreas
Add comment