在开发过程中遇到同一个gui 的功能键,选择界面多个选择按钮,每个在显示界面上,
If you want a menu entry or a function to have a variable text at runtime, you can define dynamic texts. To do this, you must define a field in your ABAP program that will contain the required text at runtime.
When you define the text, use the structure SMP_DYNTEXT.
For example:
DATA: TEXT_1 LIKE SMP_DYNTXT,
TEXT_2 LIKE SMP_DYNTXT.
Procedure
- Place the cursor on an empty function line.
- Choose Edit ® Insert ® Func.with dyn. text.
The Insert Function with Dynamic Text dialog appears.
- Enter a function code
- Choose Continue.
The Enter function text dialog box appears.
- Enter a program or ABAP Dictionary field name.
- Choose Continue.
The system display the field in <> (brackets) as follows: