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 Sales Order Using BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
563

Hi Everyone,

We have a requirement to create sales order from flat file using BAPI. Everything was working well until we encounter a customer with credit control limit setup.

Using the partners table for BAPi, the sold to customer is enter at header level, and we have this requirement to add the payer at item level. This is where the error is occuring. Upon debugging, I found out that the customer has a credit limit setup at FD33, and has a record found in KNKK, which is giving the error "Credit limit customer differs from credit limit customer in header".

However, duting manual creation of sales order via VA01, this error is not encountered.

Any ideas or suggesstions on how we can move forward with SO creation using BAPI with customers where credit management is setup?

Thanks,

Louisse

3 REPLIES 3
Read only

Former Member
0 Likes
468

Any ideas pls? Any thoughts?

Thanks,

Louisse

Read only

Former Member
0 Likes
468

This has not been answered.

Read only

lijisusan_mathews
Active Contributor
0 Likes
468

If thats not working..

try BAPI_SALESORDER_CREATEFROMDAT2

If BAPI is not working. try creating a bdc for the same if there's not error on trying from VA01