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: 

Push button on selection screen

Former Member
0 Kudos
149

Hi,

I have provided push button on selection screen after input fields I mean just below to input fields by using the syntax selection screen pushbutton….. And it is appearing on the selection screen. As per the requirement I need to enter material number on the selection screen and if I press corresponding push button I need to call one transaction using bdc program. I wrote case sy-comm and corresponding user command ( whatever is there in the selection screen syntax) in when condition under start of selection event.

But the control is not going to that place after I press push button. If I put that code inside of at selection screen it is going. But I can not write all the bdc program and select queries inside of at selection screen event if so please suggest me how I can proceed.

I will give the points.

Thanks a lot in advance.

1 ACCEPTED SOLUTION

jayanthi_jayaraman
Active Contributor
0 Kudos
99

Hi,

SELECTION-SCREEN BEGIN OF BLOCK b_2 WITH FRAME TITLE text-018.

SELECT-OPTIONS s_fields FOR qpmk-mkmnr NO-DISPLAY.

SELECTION-SCREEN PUSHBUTTON /1(24) name USER-COMMAND flds.

SELECTION-SCREEN END OF BLOCK b_2.

AT SELECTION-SCREEN.

IF sscrfields-ucomm = 'FLDS'.

PERFORM display_fields.

ENDIF.

1 REPLY 1

jayanthi_jayaraman
Active Contributor
0 Kudos
100

Hi,

SELECTION-SCREEN BEGIN OF BLOCK b_2 WITH FRAME TITLE text-018.

SELECT-OPTIONS s_fields FOR qpmk-mkmnr NO-DISPLAY.

SELECTION-SCREEN PUSHBUTTON /1(24) name USER-COMMAND flds.

SELECTION-SCREEN END OF BLOCK b_2.

AT SELECTION-SCREEN.

IF sscrfields-ucomm = 'FLDS'.

PERFORM display_fields.

ENDIF.