‎2007 Sep 04 9:47 AM
Dear Friends,
I have defined all the mandatory fields in my BAPI, BAPI_SALESORDER_CREATEFROMDAT1. But even after defining the partners in Order_partners in my BAPI, i am getting an error message saying "Please fill Sold-to-party or ship-to-party". Can any one plse suggest me whether i need to give partner data any where in the BAPI other than order_partners. Plse help in this regard. I am in need of it urgently.
Regards,
Santosh Kumar Mukka.
‎2007 Sep 04 10:03 AM
Hi,
have you also filled the partner function (PARTN_ROLE field,AG = Sold to party, RG = Ship to party) in you bapi?
Kostas
Message was edited by:
Kostas Tsioubris
‎2007 Sep 04 11:14 AM
I filled PARTNER_ROLE as 'AG' in my BAPI but not 'WE'. lt is giving error actually.
‎2007 Sep 04 11:36 AM
Hi,
you should fill both PARTN_ROLE (with 'AG')and PARTN_NUMB (with sold2 or ship2 number) in ORDER_PARTNERS
Regards.
‎2007 Sep 04 11:38 AM
‎2007 Sep 04 11:55 AM
Hi,
I'm sure you have to enter the sold to party as a bare minimum with the partner role set to = SP. If you don't enter a ship to it will take the sold to and use that. I can't think of anything else that needs the partner in - and there is nothing ni the documentation as yuo say.
Gareth.
Also, forgot to say, that the ship to needs WE as the partner role. Also look at OSS note 93091 for more info according to the help.
Message was edited by:
Gareth @ Atos Origin UK
‎2007 Sep 04 10:14 AM
Hi,
Have you checked the documentation for the function module? I'm pretty sure it explains all of the required data to run it successfully. Also, I'm curious why you are using BAPI_SALESORDER_CREATEFROMDAT1 and not BAPI_SALESORDER_CREATEFROMDAT2 - what version of SAP are you working on? (I'm guessing it must be prior to 46a.)
Gareth.
‎2007 Sep 04 11:13 AM
Hi Gareth,
Actually here I am working in SAP-India for AFS Package. I am not using exactly BAPI_SALESORDER_CREATEFROMDAT1. But I am using /AFS/BAPI_SALESORD_CREATEFDATA. I gave the same inputs as mentioned in the function documentation in BAPI_SALESORDER_CREATEFROMDAT1. But instead of giving multiple possible entries, I am getting the same errors.
Regards,
Santosh Kumar Mukka.