Entering content frameProcedure documentation Creating Data Elements Locate the document in its SAP Library structure

Procedure

  1. In the initial screen of the ABAP Dictionary, select object type Data type, enter the data element name and choose This graphic is explained in the accompanying textCreate.
  2. A dialog box appears.

  3. Select the data element and choose This graphic is explained in the accompanying text.
  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 Data type tab page, define the Structure link 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 Structure link 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 describe a reference type, choose Reference type and then Referenced type. Enter the name of the referenced type. This can be the name of a class or of an interface, a generic reference to ANY, OBJECT or DATA or a reference to a type defined in the Dictionary. If you want the reference type to be a predefined Dictionary type, select Reference to a predefined type. Enter the type, the number of places and possibly the decimal places.

  9. On the Field label tab page you can 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 This graphic is explained in the accompanying text.

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

Example

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.

 

 

Leaving content frame