abapbapisap-erpfunction-module

FM to simulate Delivery without Reference Sales Order


Is there other known FM that can be used to simulate deliveries aside from FM SD_SCD_SIMULATE_DELIVERIES? This FM SD_SCD_SIMULATE_DELIVERIES needs SALES_ORDER as mandatory importing parameter and I don't have SALES_ORDER. Please advise.

Thanks!

-CZa


Solution

  • For creating deliveries without reference to a sales order, you can use BAPI_OUTB_DELIVERY_CREATENOREF.

    Parameter | Opt. | Description

    Import

    Export

    Parameter | Opt | Direction | Description

    Tables

    I'm not sure if there is such a BAPI that only simulates an outbound delivery. A workaround you could use is to call this BAPI without calling BAPI_TRANSACTION_COMMIT, and then do a ROLLBACK WORK in case there was already a COMMIT.