Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Create a Link between Work Order and Reapir Order

IREAPIRORDER is the reapir order(IW54)

AUFNR is the work order (IW31)

w_relation = 'VONA'.

fs_obj_rolea-objtype = 'BUS2032'.

fs_obj_rolea-objkey = REAPIRORDER.

fs_obj_roleb-objtype = 'BUS2007'.

fs_obj_roleb-objkey = AUFNR.

CALL FUNCTION 'BINARY_RELATION_CREATE_COMMIT'

EXPORTING

obj_rolea = fs_obj_rolea

obj_roleb = fs_obj_roleb

relationtype = w_relation

IMPORTING

binrel = fs_binrel

  • TABLES

  • BINREL_ATTRIB =

EXCEPTIONS

no_model = 1

internal_error = 2

unknown = 3

OTHERS = 4.

CALL FUNCTION 'BINARY_RELATION_CREATE_COMMIT'

EXPORTING

obj_rolea = fs_obj_roleb

obj_roleb = fs_obj_rolea

relationtype = w_relation

IMPORTING

binrel = fs_binrel

  • TABLES

  • BINREL_ATTRIB =

EXCEPTIONS

no_model = 1

internal_error = 2

unknown = 3

OTHERS = 4.

The link is not getting created

Tags:

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question