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

Problem With Push buttons on the selection screen

Former Member
0 Likes
732

Hi All,

I've taken 3 push buttons on the selection-screen with the following syntax

SELECTION-SCREEN: FUNCTION KEY 1,

FUNCTION KEY 2,

FUNCTION KEY 3.

and have removed the F8 execute button using FM RS_SET_SELSCREEN_STATUS

Now, the problem is i'm able to perform validations using At selection screen but the code after the Start-of-selection is not being triggered.

I mean the processing is being terminated after the at selection-screen.could anyone please tell me how do i trigger some code after the event start-of-selection when a user presses a push button with sy-ucomm = FC01.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
628

Hi,

Refer Std. SAP programs.

DEMO_SEL_SCREEN_FUNCTION_KEY

DEMO_SEL_SCREEN_PUSHBUTTON

<b><REMOVED BY MODERATOR></b>

<b>Manish</b>

Message was edited by:

Alvaro Tejada Galindo

Hi,

Refer Std. SAP programs.

DEMO_SEL_SCREEN_FUNCTION_KEY

DEMO_SEL_SCREEN_PUSHBUTTON

<b><REMOVED BY MODERATOR></b>

<b>Manish</b>

Message was edited by:

Alvaro Tejada Galindo

3 REPLIES 3
Read only

Former Member
0 Likes
629

Hi,

Refer Std. SAP programs.

DEMO_SEL_SCREEN_FUNCTION_KEY

DEMO_SEL_SCREEN_PUSHBUTTON

<b><REMOVED BY MODERATOR></b>

<b>Manish</b>

Message was edited by:

Alvaro Tejada Galindo

Read only

Former Member
0 Likes
628

Check the below sample program :

REPORT ZLPRWINSPC_TMP .

tables : mara,

sscrfields.

select-options s_matnr for mara-matnr.

initialization.

sscrfields-functxt_01 = 'Clear Selection'.

selection-screen function key 1.

AT SELECTION-SCREEN.

case sscrfields-ucomm.

when 'Clear Selection' or 'FC01'.

clear s_matnr.

refresh s_matnr.

endcase.

Thanks

Seshu

Read only

0 Likes
628

Thanks for your inputs.

My question is how do i again pass the processing to start of selection after hiding the execute button.