Entering content frame

Procedure documentation Defining Reference Attributes Locate the document in its SAP Library structure

Reference attributes are persistent attributes that represent references to other persistent objects. In order to store the type of referenced object, you must assign a class identifier to the reference attribute, in addition to the object reference. This identifies the class of the referenced object and provides an implicit link to the storage location in which the required entry is kept. Without this link the system would have to search through all tables with GUIDs as primary keys.

Procedure

To determine the assignment of a reference attribute, you must:

  1. Select the corresponding table field of type OS_GUID by double-clicking the name of the field.
  2. The Editing Area is filled with the appropriate values. The attribute name and description are copied. The system places suggested values in the fields Visibility, Access, and Assignment type. The field Attribute type remains blank.

  3. Change the suggested values in the Editing Area:
  4. - For assignment type:
    Copy the entry Object reference.

    - For the attribute type:
    Enter the name of the persistent class that the reference refers to.

    - For the attribute name (if required).

    - For the description (if required).

    This graphic is explained in the accompanying text

  5. Accept the attribute assignment with RETURN or by choosing This graphic is explained in the accompanying text.
  6. To assign a class indicator, select the corresponding table field of type OS_GUID by double-clicking.
  7. The Editing Area is filled with suggested values. The attribute name and description are copied. The system fills the fields Visibility, Access, and Assignment type with suggested values. The field Attribute type remains blank.

  8. Enter the name of the reference attribute for the attribute name from step 1.
  9. Select Class identifier for assignment type.
  10. This graphic is explained in the accompanying text

  11. Accept the class identifier with RETURN or by choosing This graphic is explained in the accompanying text.
  12. Carry out the next step following the procedure in the section Defining persistence representation.

 

 

 

Leaving content frame