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

Error in Creating Bapi_salesorder_createfromdat1

Former Member
0 Likes
886

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.

7 REPLIES 7
Read only

kostas_tsioubris
Contributor
0 Likes
750

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

Read only

0 Likes
750

I filled PARTNER_ROLE as 'AG' in my BAPI but not 'WE'. lt is giving error actually.

Read only

0 Likes
750

Hi,

you should fill both PARTN_ROLE (with 'AG')and PARTN_NUMB (with sold2 or ship2 number) in ORDER_PARTNERS

Regards.

Read only

0 Likes
750

Also , partner role AG refers to a sold-to customer!

Read only

0 Likes
750

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

Read only

Former Member
0 Likes
750

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.

Read only

0 Likes
750

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.