If you want to change menu texts dynamically in your program, you can assign a dynamic menu text.
- Open the Menu Painter for the relevant GUI status and switch to change mode.
- Open the menu bar.
- Position the cursor on a blank field in the menu bar.
- Choose Edit → Insert → Menu with dyn. text.
The Menu Attributes dialog box appears.
- In the Short documentation field, enter a short description.
- In the Field name field, enter the name of a program or ABAP Dictionary field.
- Choose with the quick info text Continue.