Fonction SAP BAPI_CUSTSCHEDULAGREE_CONFDELV - Customer Sched. Agreement: Confirmation of Delivery; Document Flow Update

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
SALESDOCUMENT BAPIVBELN-VBELN C 10 Sales Document

Paramètre Reférence Long. Facultatif Description
DLVITEM BAPISDDLVITEM 41 BAPI: Delivery Confirmation
DLVITEMDATA BAPISDDLVITEMDATA 56 BAPI: Delivery Confirmation Data
RETURN BAPIRET2 548 X Return Parameter
TOKENREFERENCE CSL_TR_EXS 255 X CSL: Data Element CSL_TR_EXT as Structure (BAPI Tab.Arg.)

Functionality
You can use this method to make a delivery confrmation in the SDscheduling agreement.

Example
1. Generating delivery for a scheduling agreement item.
2. Changing a delivery item.
3. Posting of goods issue for delivery.
4. Deleting a delivery item or a delivery.

Notes
1. Required information
The order number must be entered in the structure SALESDOCUMENT.
The structure DLVITEM must be filled for every order item. If thedeletion indicator DELETEFLAG is not set here, the structureDLVITEMDATA must also be filled for these items.
2. Database Commit Control
The BAPI does not execute a database commit. Therefore the runningapplication must initiate the commit so that changes to the databasecan be made. The BAPI BAPI_TRANSACTION_COMMIT is available for this.
INCLUDE SD_BAPIVBELN_DOCU OBJECT DOKU ID TX

Description
This structure indicates the order item to which the deliveryconfirmation refers. It also shows the delivery item and an indicatorshowing whether the stated delivery item has been deleted.

Value range

  • ITM_NUMBER

  • Order item, to which the confirmation refers
    • DELIV_NUMB, DELIV_ITEM

    • Delivery and delivery item resulting from the order itemn beliefert
      • DELETEFLAG:

      • ' ' = Delivery item is regenerated or changed
        'X' = Delivery item was deleted

        Description
        This structure gives the order all the relevant data for deliveryconfirmation for each order item.
        You must fill all the fields, with the following exceptions:

        • DLV_QTY or DLV_QTY_FLO must be entered

        • DLV_UNIT or DLV_UNIT_ISO must be entered

        • DLV_QTY_STOCK or DLV_QTY_ST_FLO must be entered
        • Value range

          • ITM_NUMBER

          • Order item, to which the delivery confirmation refers
            • DLV_QTY

            • Delivery quantity in delivery units
              • DLV_QTY_FLO

              • Delivery quantity in delivery units as floating point number
                • DLV_UNIT

                • Delivery quantity
                  • DLV_UNIT_ISO

                  • Delivery quantity in ISO Code. This delivery unit is called up if thefield DLV_UNIT_ISO is not filled.
                    • DLV_QTY_STOCK

                    • Delivery quantity in base unit of measure (stockkeeping unit)
                      • DLV_QTY_ST_FLO

                      • Delivery quantity in base unit of measure (stockkeeping unit) asfloating point number
                        • GOODSMVSTA

                        • 'A': Goods issue has not taken place
                          'B': Goods issue has partly taken place (is not currently supported)unterstützt)
                          'C': Goods issue has taken place
                          INCLUDE SD_BAPI_RETURN OBJECT DOKU ID TX