Ansicht
Dokumentation

BINARY_RELATION_DELETE - Delete a Binary Relationship

BINARY_RELATION_DELETE - Delete a Binary Relationship

General Material Data   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The module deletes a relationship between the two transferred roles (and thus objects). The type of the relationship must be entered.

The relationship is deleted from the application table that is entered in the relationship type in the table VRBINRELATION.

The module does not contain a COMMIT WORK - command. It is the opposite to BINARY_RELATION_CREATE with the same interface. You can find parameter documentation there.

Example

....

DATA: OBJ_ROLA LIKE BORIDENT,

OBJ_ROLB LIKE BORIDENT,

RELATION LIKE BRELTYP-RELTYPE.

....

RELATION = 'CALL'.

OBJ_ROLA-OBJTYPE = 'BUS2032'.

OBJ_ROLA-LOGSYS = T000-LOGSYS.

OBJ_ROLA-OBJKEY = BELNR.

OBJ_ROLB-OBJTYPE = 'COMM_ORDER'.

OBJ_ROLB-LOGSYS = CALLID.

OBJ_ROLB-OBJKEY = T000-LOGSYS.

CALL FUNCTION 'BINARY_RELATION_DELETE'

EXPORTING

OBJ_ROLEA = obj_rolea

OBJ_ROLEB = obj_roleb

RELATIONTYPE = relationtype

EXCEPTIONS

ENTRY_NOT_EXISTING = 1

INTERNAL_ERROR = 2

NO_RELATION = 3

NO_ROLE = 4

OTHERS = 5.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.





Parameters

FIRE_EVENTS
OBJ_ROLEA
OBJ_ROLEB
RELATIONTYPE

Exceptions

ENTRY_NOT_EXISTING
INTERNAL_ERROR
NO_RELATION
NO_ROLE

Function Group

BREL

RFUMSV00 - Advance Return for Tax on Sales/Purchases   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 2017 Date: 20240523 Time: 173459     sap01-206 ( 37 ms )