Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Oct 05, 2007 at 01:44 PM

    Please go through this link:

    /people/rammanohar.tiwari/blog/2005/10/10/generic-object-services-gos--in-background

    Please give me reward points

    Thanks

    Murali Poli

    Add comment
    10|10000 characters needed characters exceeded