Skip to Content
0
Former Member
Oct 31, 2007 at 09:05 AM

ORDER_PARTNER BAPI_SALESORDER_CREATEFROMDAT2

28 Views

Dear everyone,

I tried different approach of filling the order partner parameter for the BAPI_SALESORDER_CREATEFROMDAT2 function. Unfortunately, i encounter the

following error:

When calling the function module "BAPI_SALESORDER_CREATEFROMDAT2", one of the

parameters

needed according to the interface description was not specified.

This parameter was "ORDER_PARTNERS".

*   Sold-to AG  partner mandatory fields
  MOVE 'SP' TO L_PARTNER-PARTN_ROLE.
  MOVE '0000100075' TO L_PARTNER-PARTN_NUMB.
  APPEND L_PARTNER.

*   Ship-to WE  partner mandatory fields
  MOVE 'SH' TO L_PARTNER-PARTN_ROLE.
  MOVE '0000100075' TO L_PARTNER-PARTN_NUMB.
  APPEND L_PARTNER.

*   EC  partner mandatory fields
  MOVE 'EC' TO L_PARTNER-PARTN_ROLE.
  MOVE '0000022053' TO L_PARTNER-PARTN_NUMB.
  APPEND L_PARTNER.

*   RE  partner mandatory fields
  MOVE 'BP' TO L_PARTNER-PARTN_ROLE.
  MOVE '0000100075' TO L_PARTNER-PARTN_NUMB.
  APPEND L_PARTNER.

*   RG  partner mandatory fields
  MOVE 'PY' TO L_PARTNER-PARTN_ROLE.
  MOVE '0000100075' TO L_PARTNER-PARTN_NUMB.
  APPEND L_PARTNER.

Regards,

Kit