Application Development 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: 

Selection Screen and Selection Button

Former Member
0 Kudos

Hi,

I have put in a screen this

SELECTION-SCREEN PUSHBUTTON /01(20) p_0031 USER-COMMAND _0031.

But It never enters 'at user-command' event !

What should i do ?

2 REPLIES 2

Former Member
0 Kudos

Hi Stephan

If you specify the USER-COMMAND addition, the pushbutton must be assigned a function code fcode. The function code fcode must be specified directly and can only contain a maximum of 20 characters.

Before you can work with the pushbutton, you must specify a TABLES statement to declare an interface work area for the structure SSCRFIELDS from the ABAP Dictionary.

If the user selects the pushbutton on the selection screen, the runtime environment triggers the event AT SELECTION-SCREEN and the function code fcode is transferred to the ucomm component in the interface work area sscrfields.

Regards

Santosh

former_member188685
Active Contributor
0 Kudos

Hi Stephan,

check this demp program..

<b>demo_sel_screen_pushbutton</b>

regards

vijay