No linkage between order and credit memo

No linkage between order and credit memo

Postby Baris3213 » Mon Feb 24, 2003 6:32 pm

Hi,

when we send a credit memo from MM to SUS, there's no linkage created between the original order and the credit memo, so I can't see the credit memo in SUS doc flow. Can somebody help me out with that? We have SUS1.0 SP04. Thanks.

Regards,
Mike78
Baris3213
.
.
 
Posts: 1
Joined: Mon Feb 24, 2003 6:32 pm

Postby Christin4834 » Mon Feb 24, 2003 6:49 pm

Hi,

this probably because of an error in the function module
'CRM_M1O_MAP_INBOUND', as linkage is created the wrong way. It should be like that:

Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
  1. include LCRM_M1O_COMMUNICATIONF14
  2. ...
  3.  
  4.   IF sy-subrc NE 0.
  5.     EXIT.
  6.   ENDIF.
  7.  
  8. *  ls_object_a-objkey   = <lf_orderadm_h>-orderadm_h_guid. "delete
  9.   ls_object_a-objkey = lv_guid. "insert
  10.   ls_object_a-objtype  = lc_objtype.
  11. *  ls_object_b-objkey   = lv_guid. "delete
  12.   ls_object_b-objkey = <lf_orderadm_h>-orderadm_h_guid. "insert
  13.   ls_object_b-objtype  = lc_objtype.
  14.  
  15.   CALL FUNCTION 'BINARY_RELATION_CREATE'
  16.     EXPORTING
  17.       obj_rolea            = ls_object_a
  18.       obj_roleb            = ls_object_b
  19.       relationtype         = 'VONA'
  20. *    FIRE_EVENTS          = 'X'
  21. *  IMPORTING
  22. *    BINREL               =
  23. *  TABLES
  24. *    BINREL_ATTRIB        =
  25.      EXCEPTIONS
  26.        no_model             = 1
  27.        internal_error       = 2
  28.        unknown              = 3
  29.        OTHERS               = 4
  30.             .
  31.   IF sy-subrc <> 0.
  32.     EXIT.
  33.   ENDIF.
  34.  
GeSHi ©


I marked the changes with 'insert' and 'delete', so you could check out. You should ask SAP support to get a note for that.

Regards,
Tim2
Christin4834
.
.
 
Posts: 1
Joined: Mon Feb 24, 2003 6:49 pm


Return to Sonstige Module BW, SRM, Berechtigung etc.

Who is online

Users browsing this forum: No registered users and 14 guests