Skip to Content
avatar image
-2
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 08, 2017 at 10:09 AM

    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.
    Add comment
    10|10000 characters needed characters exceeded

  • Mar 07, 2017 at 02:10 PM

    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)

    Add comment
    10|10000 characters needed characters exceeded