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

ORDER_PARTNER BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
438

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

1 REPLY 1
Read only

Former Member
0 Likes
381

hi kit,

Their is no problem with order partners,

instead of move statement, try assignment statements.

kindly give total program, may be u assigned structures in wrong way while calling bapi, or you might forgot to give 'BAPI_TRANSACTION_COMMIT'

comeback with your observations

regards,

Pavan