2019 Mar 01 9:03 AM
Hello Gurus,
I'm looking for a way to create a dynamic selection screen.
I have a checkbox in my selection screen and I want to modify the name of an other field if my selection screen if the check is inital.
Thanks in advance for your help
For exemple
IF p_flag IS INITIAL.
s_date FOR ERDK-BUDAT .
ELSE.
s_date FOR ERCH-BEGABRPE.
ENDIF.
2019 Mar 01 10:24 AM
Maybe it's more simple to use 2 different SELECT-OPTIONS and display only one of them via LOOP AT SCREEN and MODIFY SCREEN, during the AT SELECTION-SCREEN OUTPUT event.
2019 Mar 04 8:07 AM
Do you actually only want to change the descriptive text of the parameter so it could be easily done with a SELECTION-SCREEN COMMENT FOR FIELD s_date statement (wrap the SELECT-OPTIONS or PARAMETERS and the COMMENT statement between BEGIN/END OF LINE) and change the text value in the PBO AT SELECTION-SCREEN OUTPUT.
If you also want to change F4 and F1 behavior, you can handle it in ON {HELP-REQUEST|VALUE-REQUEST} FOR s_date.
NB: sandra.rossi's solution would be easier, less code, define 2 select-options and hide one within the OUTPUT event, you can copy values from the second range into the first and vice-versa so you always use the same range in the following code.
2019 Mar 04 11:47 AM
Use one of those function modules on section "AT SELECTION-SCREEN OUTPUT":