Start of Content Area

Procedure documentation Creating Structures  Locate the document in its SAP Library structure

Procedure

  1. In the initial screen of the ABAP Dictionary, enter the structure name in field Data type and choose This graphic is explained in the accompanying textCreate.
  2. A dialog box appears in which you must select the type category.

  3. Select Structure and choose This graphic is explained in the accompanying text.
  4. The maintenance screen for structures appears.

  5. Enter an explanatory short text in the field Short text.
  6. You can for example find the structure at a later time using this short text.

    Carry out the following steps for all the components you want to insert in the structure.

    You can also include structures, tables or views instead of individual components. The procedure here is described in Inserting an Include.

  7. Enter a name in column Components.
  8. If you want to insert the structure as an include in a transparent table at a later time, the component names may not be longer than 16 characters.

  9. Enter the name of the type whose attributes should be used in the component in field Component name. You can enter any type (data element, structure or table type) here.
  10. If you want to add components by entering the data type and length directly, choose Built-in type. You can now enter values for fields DTyp, Length, Dec.places, and Short description. With Component type you can switch back to the screen for entering references to existing types.

    You can also enter a Reference Type in the Component Type field. If you enter a class, interface, or generic reference (ANY, OBJECT, or DATA) in the Component Type field, the R type field is set automatically. If you enter a reference type already defined in the Dictionary as a reference type, a blue arrow appears in the D type column.

    If the type defined in the ABAP Dictionary or the built-in type is a reference type, set the indicator in the R Type column.

    You can combine components with direct type definition and components that are defined by referencing an existing type as you like.

  11. The reference field and reference table must be specified for components of type CURR (currency) and QUAN (quantity).
  12. You can make these entries on the Currency/quantity fields tab page.

  13. Now maintain the foreign keys of the structure.
  14. Proceed as when maintaining the foreign keys of a table (see Creating Foreign Keys).

  15. Choose Search Help, if you want to assign a search help to a structure field that points to a data element. Enter the name of a search help in the dialog box that appears. See Attaching a Search Help to a Table or Structure Field.
  16. Save your entries once you have defined all the components of the structure.
  17. You are asked to assign the structure a development class. You can change the development class later with Goto ® Change object directory entry.

  18. Choose an enhancement category. For more information, see Structure Enhancements.
  19. Choose This graphic is explained in the accompanying text.

Result

The structure is now activated. The runtime object of the structure is created. At activation, a log is written; it can be displayed with Utilities ® Activation log. If errors occurred when the structure was activated, the activation log is automatically displayed.

Other Options

End of Content Area