Skip to Content
Apr 28, 2022 at 08:40 AM

Recalculate Sales Order (in batch).


We create sales orders using an LSMW which is using the CREATESALESFROMDATA2 BAPI.

For some reason, when the Sales Order is created it does not calculate the values, like you would see if you editing the sales order via VA02 and pressed [Enter]. When this happens there is code which calculates and inserts an extra item in the order. So for some reason this is not happening when the Sales Order is created by the LSMW, which in turn creates am IDOC and when processed (automatically) creates the Sales Order.

Is there any control other the sales Order IDOC that needs to ensure that all standard flow is run when the Sales order is created?.