SAP ABAP Data Element GUI_DYNTXT (Menu Painter: Field name for dynamic texts)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-DWB-TOO-MEN (Application Component) Menu Painter
     SEUC (Package) Menu Painter
Basic Data
Data Element GUI_DYNTXT
Short Description Menu Painter: Field name for dynamic texts  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type DYNFNAM    
Data Type CHAR   Character String 
Length 132    
Decimal Places 0    
Output Length 132    
Value Table      
Further Characteristics
Search Help: Name    
Search Help: Parameters    
Parameter ID   
Default Component name    
Change document    
No Input History    
Basic direction is set to LTR    
No BIDI Filtering    
Field Label
  Length  Field Label  
Short 10 Dyn. text 
Medium  
Long 33 Field name for dynamic GUI text 
Heading  
Documentation

Definition

You want to change the function or menu text at runtime. Regardless of the PF-STATUS, the content of the ABAP or ABAP Dictionary field specified is merged into the relvant menus and function keys at the end of the PBO.

Field structure

You should create the field with the structure SMP_DYNTEXT:

  • TEXT: Function or menu text. This text is displayed in the menu bar, menus and in the possible functions list. It also appears in the application toolbar wherever the ICON_ID component is empty.
  • ICON_ID and ICON_TEXT: If you want an icon to appear on the pushbutton, you must fill ICON_ID. You can enter an additional icon text in ICON_TEXT. You fill the ICON_ID field by assigning an icon to it (for example, F-ICON_ID = ICON_CANCEL). You cannot use the ICON_CREATE function module here.
    If the ICON_ID component contains a value, you must also fill in the TEXT component, since its contents appear in the list of possible functions.
  • QUICKINFO: This text is used as quickinfo in the status line.

Using reference techniques

If you want to refer to GUI defintions from other programs or work with dynamic texts, you must remember that the fields are assigned to the program in which the status is defined.

If you define a status which is used by several programs through a function module call, you must create the fields for dynamic texts in the same function group in which the status was created. Do not create the fields in the program calling the function module. In this case you can use a field name - field contents assignment table to allow the caller to define dynamic texts in the interface.

If the call takes place using SET PF-STATUS ... OF PROGRAM, there is not reasonable interface for text transfer. Hpwever, fields must also be created and filled in called program prog.

If you are working with include menus, you msut create the fields for dynamic texts in the program for which the status was originally created, and not in the program containing the included menu.

History
Last changed by/on SAP  19970613 
SAP Release Created in