urgent help required on interactive report

Question:
Hi,
my client asked me that without using AT LINE-SELECTION event.
how to go to the secondary list.
help me full information with code.
he is asking that he have one pushbutton,once i pressed that button,it should goto secondary list.
help me urgent.
_________________
madhu
Answer:
You need to set up a gui status.
In your code just prior to outputting the report write 'SET PF-STATUS 'my status'. (give it a real name),
Then double click on the status name and create the status (you will need to define all the items that are on a SAP standard status as well - they can be found in this forum,
But just in case:
SAVE = SAVE
BACK = BACK
EXIT = %EX
ROLLBACK WORK = %RW
PRINT = %PRI
SEARCH = %SC
SEARCH AGAIN = %SC+
FIRST PAGE = P--
PAGE UP = P-
PAGE DOWN = P+
LAST PAGE = P++
Then in the AT USER-COMMAND event, in a case statement that processes the value of sy-ucomm, when you find the 4 character code you assigned the button in the status call the relevant routine:
At User-Command.                                               
*                                                             
   Case sy-ucomm.                                             
        When 'LMAR'. Perform FirstCol using '<<'.             
        When 'LONE'. Perform FirstCol using '<'.               
        When 'RONE'. Perform FirstCol using '>'.               
        When 'RMAR'. Perform FirstCol using '>>'.             
        When 'UPRI'. Perform Print_Report using t_f01_data[]. 
        When 'HELP'. Perform Prg_Doc_Help.                     
        When 'DOWN'. Add 1 to p_level.                         
                     Perform Show_Report using t_f01_data[].   
        When 'UP'.   Subtract 1 from p_level.                 
                     Perform Show_Report using t_f01_data[].   
        When 'SAVE'. Perform Create_Spreadsheet.               
   Endcase.                                                   
Download docs.zip from the repository. You will find it extremely useful in constructing interactive reports.
Regards
R

More Articles:

?
VOFM for Sales Orders/Billing?
The limitation of "GENERATE SUBROUTINE POOL "?
Need help understanding generate statement?
Cursor problem?
Set default print format fo ALV grid?