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: 

How to display parameter value in selection screen text

former_member602416
Participant
0 Kudos

Hi,

I have a report execution screen block like below. I have a requirement to change the parameter text to pick value from input field.

Critical Priority Usage (TOP 5 %)

If parameter value changed to 10 then text should be Critical Priority Usage (TOP 10 %)

Can someone please suggest how can i do this.

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor

Did you try to replace the generated text with a variable field,

Sample for test (adapt it)

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(30) label.
SELECTION-SCREEN POSITION POS_LOW.
PARAMETERS para TYPE matnr.
SELECTION-SCREEN END   OF LINE.

AT SELECTION-SCREEN OUTPUT.
  WRITE sy-uzeit TO label LEFT-JUSTIFIED.
2 REPLIES 2

raymond_giuseppi
Active Contributor

Did you try to replace the generated text with a variable field,

Sample for test (adapt it)

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(30) label.
SELECTION-SCREEN POSITION POS_LOW.
PARAMETERS para TYPE matnr.
SELECTION-SCREEN END   OF LINE.

AT SELECTION-SCREEN OUTPUT.
  WRITE sy-uzeit TO label LEFT-JUSTIFIED.

Sandra_Rossi
Active Contributor
0 Kudos

Instead of an input field, I recommend a button with initial text "TOP 5%", clicking on it displays a popup with an input field containing "5", changing its value will be reflected in the text of the button.