02-05-2014 10:44 AM
Hi All,
My requirement is to create a sales order using BAPI and to have multiple email ids to the Sold To.
I am using the BAPI BAPI_SALESORDER_CREATEFROMDAT2 to create the SO.
I have written logic to update the Sold to Address with Email by linking the internal tables ORDER_PARTNERS and PARTNERADDRESSES.
However, I am not able to create Sold To with multiple Email IDs.
Kindly let me know how to handle this scenario?
02-05-2014 11:22 AM
Hi Venky
Just a guess.....what happens if you have multiple lines in PARTNERADDRESSES for one partner, but with different email address? (The second line just has the email address for the same ADDR_NO)?
Regards,
Modak
02-06-2014 8:39 AM
Hi Modak,
I tried to upload data with multiple lines (Email address for the same addr_no).
Result: System is updating only second record. (First record is ignored).
Regards,
Bharani.
02-06-2014 8:51 AM
Hi Venky / Bharani
Try putting a break point in SD_SALES_PARTNER_MAINTAIN and executing the code. There you may find how actually the partner addresses are getting stored.
Maybe there is a way to create implicit enhancement and add another email
regards,
Modak
02-06-2014 8:54 AM
02-05-2014 2:22 PM
Hi,
Try with BAPI to change the sales order once the order has been created. I change bapi i think you can add multiple mail id.
Regards
Sachin
02-06-2014 8:40 AM
Hi Sachin,
BAPI to change may work, however, it may show in the change log and it is against the requirement.
Regards,
Venky.
02-05-2014 10:52 PM
I'm guessing this is needed for the output distribution to multiple emails. In such case I'd suggest to send output to Contact partner (CP) instead. Otherwise even if you somehow "feed" multiple emails into Sold-to address, I'm not sure the output program would "eat" it. At minimum just try that in VA01 - you won't be able to do in BAPI something that is not possible in the transaction.
05-27-2016 9:34 AM