‎2007 May 10 6:35 AM
Hi Experts,
In my program on the selection screen there are 2 parameters and a button
1. on F8 a report has to be generated.
2. on click of a button another program has to be called.
kindly suggest on which events the above have to be triggered.
Regards,
mansi.
‎2007 May 10 6:38 AM
Hi,
for ist write ur code in <b>START-OF-SELECTION</b>
for 2nd write in the <b>at user-command</b> event.
Regards,
Sonika
‎2007 May 10 6:36 AM
hi,
U can do the codings in this event.
At selection-screen: before leaving the selection screen.
Regards
Reshma
‎2007 May 10 6:45 AM
Hi,
for F8, write ur code in start-of-selection.
for push button, u have to handle sscrfields-ucomm in at selection screen.
AT SELECTION SCREEN.
CASE sscrfields-ucomm.
WHEN 'BUTTON'. "HERE button is ur user command of button
flag = '1'.
ENDCASE.
start of selection.
if falg = '1'.
perform processButton.
else.
perform showReport.
endif.
happy abaping
‎2007 May 10 6:38 AM
Hi
On pressing F8 to generate report use the events that are related to Classical reporting i,e Initialization, At selection-screen, start-of-selection, end-of-selection, top-of-page and end-of-page.
To call another report when you press button,
use At USER-COMMAND
and when Sy-UCOM = <fun code for that button>
call/write that report for that button.
Reward points if useful
Regards
Anji
‎2007 May 10 6:38 AM
Hi,
for ist write ur code in <b>START-OF-SELECTION</b>
for 2nd write in the <b>at user-command</b> event.
Regards,
Sonika
‎2007 May 10 6:42 AM
Hi Mansi,
In start of selection write thiscode :
Start-of-selection.
If p_button = 'X'.
SUBMIT <Report name/Program>VIA SELECTION-SCREEN AND RETURN.
endif.