Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
429

Dear all,

I have tried to put the partner, item and header in the BAPI. But i sill encounter an error which returns "parameter not specified ORDER_PARTNERS".


*       header mandatory fields
  MOVE 'TA' TO L_HEADER-DOC_TYPE.
  MOVE 'ABC' TO L_HEADER-SALES_ORG.
  MOVE '10' TO L_HEADER-DISTR_CHAN.


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

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

   MOVE 'DEXABC' TO L_ITEM-MATERIAL.
   APPEND L_ITEM.

Any parameters that i missed??

Regards,

Kit

2 REPLIES 2
Read only

Maciej_DomagaBa
Contributor
0 Likes
405

What about partner roles 'RE' and 'RG' (bill-to-party) ?

Read only

0 Likes
405

i tried before, the result is same.