11-15-2018 3:58 AM
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?
11-16-2018 3:22 PM
That's a strange beahviour...
If it does not work may be you should try a different exit like USEREXIT_PRICING_PREPARE*
Cheers
~Enno