Tables involved:
- SRRELROLES - Object Relationship Service: Roles
- Enter Object Key (OBJKEY), if possible pass in object type (OBJTYPE) as well.
- Get Type of role (ROLETYPE) and the Role GUID (ROLEID)
- ORBRELTYP - Object Relationship Binary Link Type
- Stores the relationship between 2 roles
- Pass Type of Role (SRRELROLES- ROLETYPE) to either ROLE_A or ROLE_B
- ORTBRELTYP - Text table of ORBRELTYP
- SMZB_BINREL - Object Relationship Service: Generic Binary Links
- Depends on what table is specified in ORBRELTYP- DBTABLE
- If Type of Role (SRRELROLES-ROLETYPE) exists in ORBRELTYP-ROLE_A, pass SRRELROLES-ROLEID to SMZB_BINREL-ROLE_A and vice versa.
- Get Either ROLE_A or ROLE_B
- Back to SRRELROLES, pass SMZB_BINREL-ROLE_A or ROLE_B to SRRELROLES-ROLEID, and you will get the object key of the other object
Other useful Tables:
- ORROLETYP: Object Relationship Service object role types
- Return Description of Object Role
- TOJTB: Business object repository: Basic data
- Return the Business Object Information