Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

SD: BAPI_SALESORDER_CREATEFROMDAT2 run in simulation (testrun set): How to get pricing details/conditions?

$
0
0

Hi there,

 

I advised to to use this BAPI for one to create sales order and 2nd also to 'simulate' the sales order. Simulation is done by setting the testrun flag in the interface.

 

How to get access to pricing elements in simulation running BAPI_SALESORDER_CREATEFROMDAT2?

But the task at hand includes to 'report' the pricing details (XKOMV) to the caller. That works fine in creation in user exits 'USEREXIT_SAVE_DOCUMENT_PREPARE' or 'USEREXIT_SAVE_DOCUMENT' to get access to the pricing details.

 

Unfortunately these exists are not called when the testing flag is set - and what is the best way to get access to the pricing elements/conditions here?

Any idea?

BAPI_SALESORDER_SIMULATE

I am aware of the BAPI_SALESORDER_SIMULATE - but let's assume that this would not be an option here?

Can it be done?

 

Thanks for your input,

CN


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>