Skip to Content
Oct 09, 2019 at 10:47 AM

BAPI_SALESORDERSIMULATE to return custom fields



We're using BAPI_SALESORDERSIMULATE in order to simulate the creation of an order an retrieving data like conditions. We'd like, however, to get back from the simulation some calculated custom fields which are in VBAK/VBAP as well. We've debugged the BAPI and it has it on memory (FM SD_ORDER_CREATE has it but it does not return that info). We've explored the extension structure but it seems it's only for input fields. Is there any proper way to do this? We've considered calling directly SD_ORDER_CREATE but it's not a good solution.

Thanks in advance!