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: 

Parameter input field followed by push button in same line of Selection Screen

Former Member
0 Kudos

Dear Experts,

I have an issue in designing a selection screen such that my requirement is to have a Input parameter field followed by a Pushbutton in the same line of the Selection screen.

My Code:

SELECTION-SCREEN: BEGIN OF LINE,

PUSHBUTTON 2(10) push USER-COMMAND fcode.

PARAMETERS para TYPE c LENGTH 20.

SELECTION-SCREEN:

COMMENT 40(40) text,

END OF LINE.

Now this code works because it has the Pushbutton first then followed by the Parameter.

But in my case, I need its reverse which is parameter on the left followed by the Pushbutton on the right.

I could find some threads related to pushbutton but they of no help to this case.

Please assist with your inputs.

Regards,

Aravindh.

2 REPLIES 2

raymond_giuseppi
Active Contributor
0 Kudos

It should work without problem as soon as you adapt the Length and Position options of the selection-screen elements, if you aren't able to correct it, you should post your code. (Also you could use the FOR FIELD option for the SELECTION-SCREEN COMMENT statement if you want to use the program selection-texts)

Hi,

You can try this:

SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_tmp type c LENGTH 20.
SELECTION-SCREEN PUSHBUTTON 30(7) text-001 USER-COMMAND PB1.
SELECTION-SCREEN END OF LINE.