Ansicht
Dokumentation

SDOK_RELA_CREATE - Create relationship

SDOK_RELA_CREATE - Create relationship

PERFORM Short Reference   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module creates a relationship based on a specific relationship class.

Specify the relationship class of the new relationship when calling the function module. You have the option to manually specify the relationship ID as a DCE-compatible GUID. Otherwise, KPro sets the relationship ID automatically.

You can specify attributes for the new relationship. If the relationship class contains mandatory attributes, the relationship can only be created once all mandatory attributes have been specified on the interface, or have been inherited from attributes of the relationship class. Another prerequisite for creating the relationship is that you have to specify the current combination of relationship class, source document, and target document as a possible combination. Use the class maintenance function to do this.

Example

Notes

  • The specification of a relationship class is optional because it is not possible to set a meaningful default class. However, if you call the function without having specified any relationship class, an exception occurs.
  • The ID of a document or a relationship has no semantic content, and is usually specified by KPro. It only makes sense for the application to specify the ID if the ID in question is already in use by the application. In this case, the ID must be DCE-compatible, and it must be transferred as a 32-character hex character string. This is necessary in order to avoid the possibility of duplicating an ID already in use.
  • Attributes generated by KPro are not available as export parameters in the table PROPERTIES. If you want to view these attributes, you have to use SDOK_RELA_PROPERTIES_GET.

Further information





Parameters

CLIENT
FROM_OBJECT
OBJECT_ID
PROPERTIES
RELATION_CLASS
RELATION_UNIQUE_ID
TO_OBJECT
X_SUPPRESS_PARTNER_CHECK

Exceptions

BAD_CLASS
BAD_PROPERTIES
DUPLICATE_RELATION_ID
EXCEPTION_IN_EXIT
FROM_OBJECT_NOT_EXISTING
MISSING_CLASS
MISSING_PROPERTIES
NOT_AUTHORIZED
TO_OBJECT_NOT_EXISTING
UNIQUE_AND_EXISTING

Function Group

SDCL

rdisp/max_wprun_time - Maximum work process run time   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 2474 Date: 20240523 Time: 054719     sap01-206 ( 52 ms )