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

BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
488

I am using a program that calls the function module BAPI_SALESORDER_CREATEFROMDAT2 to create sales orders. The function module works fine except for the situation where I am trying to create a direct sales order. The function module errors out and says that I need to enter a purchasing group. I have looked at all of the fields you can pass the function module and have been unable to find anything that looks like it might be a purcahsing group. Is there a way to do this?

thanks.

2 REPLIES 2
Read only

Former Member
0 Likes
457

I had a similar problem where I also got that error message. But instead of passing the purchasing group in - which we couldn't - we just maintained it on the material (tab purchasing). In that case it is automatically passed in when the material iss added to the order. That resolved the issue.

Hope that helps,

Michael

Read only

Former Member
0 Likes
457

Unfortunately that is not an option for us. I had found that fix as well and the option was vetoed.