replace parameter name show on screen?
Asked Answered
I

5

4

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?

Ieper answered 24/1, 2011 at 14:51 Comment(0)
C
15

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.

Clime answered 24/1, 2011 at 21:13 Comment(1)
is this the only solution? I need to find a solution for this case but using code, is there such a possibility?Chihli
L
3

in SE80 or SE38 in the menu go to "jump --> texts --> selection texts" there you can set a text for every parameter field.

Lockman answered 24/1, 2011 at 16:47 Comment(0)
R
3

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.

Recapture answered 24/1, 2011 at 16:48 Comment(0)
D
0

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.

Dulciana answered 15/8, 2021 at 20:14 Comment(0)
B
0

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:

screenshot from SAP GUI

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.

Bashibazouk answered 30/9 at 10:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.