SAP Function BAPI_REL_CREATERELATION - Create Relationship

Parameter Reference Type Length Default Optional Text
OBJECTS BAPIRELC u 185 Relationship Between Two BOR Objects

Parameter Reference Type Length Text
RETURN BAPIRET2 u 548 Return Parameter

Parameter Reference Length Optional Text
RELATIONATTRIBUTES BAPIRELA 268 X Attribute of a Binary Relationship

Functionality
You can create a binary relationship with this function module. Proceedas follows:
Enter the BOR identifiers of the business objects to be linked and therelationship type in the structure OBJECTS.
If a relationship is to be marked as for creation in a remote system,you must set OBJECTS-REMOTE = 'X'.
If the relationship has attributes, you can enter these in the tableRELATIONATTRIBUTES.

Notes
To create several relationships at the same time, use the functionmodule BAPI_REL_MASSCREATERELATION.
To delete a relationship, use BAPI_REL_DELETERELATION.

Further information
BINARY_RELATION_CREATE
BAPI_REL_REMOTECREATERELATION
BAPI_REL_MASSCREATERELATION
INCLUDE BAPI_REL_RETURN OBJECT DOKU ID TX

Description
INCLUDE BAPI_REL_RELATIONATTRIBUTES OBJECT DOKU ID TX