Creating Data Elements 

Procedure

  1. In the initial screen of the ABAP Dictionary, select object type Data type, enter the data element name and choose Create.
  2. A dialog box appears.

  3. Select the data element and choose .
  4. The maintenance screen for data elements appears.

  5. Enter an explanatory short text in the field Short text.
  6. The short text appears as title in the F1 help for all the screen fields referring to this data element.

  7. On the Definition tab page, define the data type , number of places and possibly the number of decimal places of the data element. You can define these attributes by specifying a domain or by direct type entry.
  8. If the data element should have the type attributes of a domain, you only have to select Domain and enter the domain name in the corresponding field. You can also define a new domain and create it by navigating to the domain maintenance screen by double-clicking (see Creating Domains).

    If you want to enter the type attributes directly, select Direct type entry. Entries are now possible in the fields Data type, Number of places and Decimal places.

    If the data element should be a reference to a class or an interface, select Reference type. Enter the name of the class or interface in the Reference field. You can also enter OBJECT or DATA if the data element should implement a generic reference to objects or data objects.

  9. On the Field label tab page you can (optionally) maintain text information (short, medium, and long field labels and the title) for the data element.
  10. You can use this text information in input templates to represent fields that refer to this data element.

  11. Save the data element.
  12. You are asked to assign the data element a development class.

  13. Choose .

Result

The data element is activated. You can find information about the activation flow in the activation log, which you can display with Utilities ® Activation log. If errors occurred when activating the data element, the activation log is automatically displayed.

Other Options

For example, if a user only has authorization for company code 001, this company code can be stored in memory under the corresponding parameter ID at the beginning of a transaction. Fields referring to the data element for the company code are then automatically filled with the value 001 in all subsequent screen templates. In this case, the corresponding parameter ID must be only entered in the data element for the company code.