Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

selection screen events

Former Member
0 Likes
723

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.

1 ACCEPTED SOLUTION
Read only

former_member632991
Active Contributor
0 Likes
696

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

5 REPLIES 5
Read only

Former Member
0 Likes
696

hi,

U can do the codings in this event.


At selection-screen

: before leaving the selection screen.

Regards

Reshma

Read only

0 Likes
696

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

Read only

Former Member
0 Likes
696

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

Read only

former_member632991
Active Contributor
0 Likes
697

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

Read only

Former Member
0 Likes
696

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.