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