When I'm defining a parameter, like:
PARAMETER pa_date TYPE d DEFAULT sy-datum.
How do I change "pa_date" to something else when the app is launched? I want to change it to something like "choose date".
Any Ideas?
When I'm defining a parameter, like:
PARAMETER pa_date TYPE d DEFAULT sy-datum.
How do I change "pa_date" to something else when the app is launched? I want to change it to something like "choose date".
Any Ideas?
The Correct Menu Path is:
Goto (Alt-G) -> Text Elements (T) -> Selection Texts (S)
Once there you can Type in the Text you want OR click the "Dictionary Ref." Checkbox. Doing this will keep your report selections a bit more standard, provided that you use the correct dictionary definition.
in SE80 or SE38 in the menu go to "jump --> texts --> selection texts" there you can set a text for every parameter field.
I think the menu path is edit->text->selection texts. In there you'll find the ability to change the text for selection screen items.
Goto (Alt-G) -> Text Elements (T) -> Selection Texts (S)
Once there you can Type in the Text you want and then Activated.
Once you done come back to main screen and activated main screen and run (f8)
you got the result what you want.
This method is not recommended and should only be used in specific use cases. A better approach is to use the standard SAP menu path to modify selection texts. I recommend checking out @Esti answer for details as it supports proper translation of your application.
To change the displayed text for your parameter:
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (33) f_label.
f_label = 'choose date'.
PARAMETER pa_date TYPE d DEFAULT sy-datum.
SELECTION-SCREEN END OF LINE.
Output:
This uses a SELECTION-SCREEN comment to create a custom label. When the parameter is on the same line as the comment, SAP will only display the comment text, not the parameter name.
© 2022 - 2024 — McMap. All rights reserved.