Application Development 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: 

BAPI_SALESORDER_CREATEFROMDATA2 and VA01 issue

former_member418469
Participant
0 Kudos

I have added a message in SAVE_DOCUMENT_PREPARE - VBAP-KZWI2 is 0 then display error message.

I create a sales order in VA01 entering basic data without entering pricing(auto), when saving it first goes to PRICING_COMPLETE function to determine pricing and goes to SAVE_DOCUMENT_PREPARE. Similarly when I try with function BAPI_SALESORDER_CREATEFROMDATA2, it goes first to SAVE_DOCUMENT_PREPARE and then goes to PRICING_COMPLETE. In VA01 pricing value is picked no error and bapi value is not picked.

What is the reason?

1 REPLY 1

ennowulff
Active Contributor
0 Kudos

That's a strange beahviour...

If it does not work may be you should try a different exit like USEREXIT_PRICING_PREPARE*

Cheers
~Enno