‎2009 Jun 23 6:34 AM
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
‎2009 Jun 23 6:39 AM
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.
‎2009 Jun 23 6:45 AM
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