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

Reg: BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
574

Hi All..

I am using BAPI_SALESORDER_CREATEFROMDAT2 for creating sales order..Creation of Order is successfull.

1. I am passing item details to table ORDER_ITEMS_IN

2. Partner details to ORDER_PARTNERS and Partner addresses to PARTNERADDRESSES

Address numbers are being generated inside this BAPI...

The problem here is if two items have same ship to partners, then two different address numbers are getting generated by which two differrent deliveries will be created. How can make changes to my code in such a way that same address number need to be generated for both the items which have same ship to partner...

Thanks,

Ravee

2 REPLIES 2
Read only

Former Member
0 Likes
432

are your partners not created in R/3.. and are u trying to create them using BAPI **DAT2.

If your partners are already in R/3, then you can provide them in ORDER_PARTNERS.

Do not map anything to PARTNERADDRESSES

Hope this helps.

Read only

0 Likes
432

Hi Gary,

Thanks for your reply...

I am creating all the partners before creating the order...That is the reason I am passing all the partner information to the ORDER_PARTNERS and their addresses to PARTNERADDRESSES.

Thanks,

Ravee