11-22-2021 1:01 PM
Hello Abap-Gurus,
2. if i call BAPI_MATERIAL_AVAILABILITY after BAPI_SALESORDER_SIMULATE to get prices for material and customer comination the Simulation works and returns the prices. However right after i call BAPI_MATERIAL_AVAILABILITY it does not return the available quantity with the same input of point 1, where it previously returned the available quantity.
Could you clear why BAPI_MATERIAL_AVAILABILITY is returning 0 as available quantity after calling BAPI_SALESORDER_SIMULATE ?
Best Regards
Shobhan Rana
11-23-2021 2:47 PM
Done it by preventing not to run the BAPI_AVAILABILITY_CHECK second time for the same material number when it had already happened the Price simulation.
11-22-2021 1:14 PM
Hello,
The documentation mentions that this runs the same interface as BAPI_SALESORDER_CREATEFROMDAT1 bapi-so-simu-doc.jpg
Maybe you can do a BAPI_TRANSACTION_ROLLBACK and then run the BAPI_MATERIAL_AVAILABILITY and check.. some updates running hence unable to check myself for now..
Regards,
Vijay
11-23-2021 8:17 AM
How do you say that BAPI_TRANSACTION_ROLLBACK will help when it is mearly all about data read?
11-23-2021 2:47 PM
Done it by preventing not to run the BAPI_AVAILABILITY_CHECK second time for the same material number when it had already happened the Price simulation.