SAP Function BAPI_INB_DELIVERY_CONFIRM_DEC - BAPI for Inbound Delivery Verification from a Decentralized System

Parameter Reference Type Length Default Optional Text
DELIVERY BAPIIBDLVHDRCON-DELIV_NUMB C 10 Inbound Del. Number
HEADER_CONTROL BAPIIBDLVHDRCTRLCON u 20 Control Data Confirmation Header Data
HEADER_CONTROL_SPL /SPE/BAPIIBDLVHDRCTRLCONF u 14 X Inbound Delivery Confirmation - Add Header Parameters SPL
HEADER_DATA BAPIIBDLVHDRCON u 84 Header Data
TECHN_CONTROL BAPIDLVCONTROL u 20 X Technical Control Data

Parameter Reference Length Optional Text
EXTENSION1 BAPIEXTC 1000 X Data Container (Unstructured)
EXTENSION2 BAPIEXT 332 X Data Container (Structured)
HANDLING_UNIT_HEADER BAPIDLVHDUNHDR 457 X Handling Unit Header Data
HANDLING_UNIT_ITEM BAPIDLVHDUNITM 235 X Handling Unit Item Data
HANDLING_UNIT_SERNO BAPIDLVHDUNSERNO 126 X Handling Unit Serial Numbers
HEADER_DEADLINES BAPIDLVDEADLN 34 X Header Deadlines
HEADER_PARTNER BAPIDLVPARTNERCHG 81 X Delivery: Partner Change
HEADER_PARTNER_ADDR BAPIDLVPARTNADDRCHG 1508 X Delivery: Address Change for Partner
ITEM_CONTROL BAPIIBDLVITEMCTRLCON 23 X Control Data Confirmation Item Data
ITEM_DATA BAPIIBDLVITEMCON 272 X Item Data
ITEM_DATA_SPL /SPE/BAPIIBDLVITEMCONF 94 X BAPIIBDLVITEMCONF Inbound Delivery Additional Item Data
ITEM_SERIAL_NO BAPIDLVITMSERNO 106 X BAPI Delivery Serial Numbers Item
RETURN BAPIRET2 548 Return Parameters
TOKENREFERENCE BAPITOKENREFERENCE 255 X Reference of CSL Token

Functionality
You can use this method to report back inbound deliveries from a WMsystem to an Enterprise Resource Planning (ERP) system. Essentially,such as report would include:

  • Header data from the delivery,

  • that must always be reported back.
    • Delivery items,

    • whereby you only need to report those items that have changed.
      • Packaging data,

      • which you do not have to report if the delivery does not contain anypackaging data. However, if delivery items have been packed, then youmust always report back the complete packing hierarchy. Any packagingdata you do not report back is deleted.

        Example
        Three examples of how to use the BAPI are explained below:
        RESET N1
        Reporting back of an unpacked inbound delivery withoutchanges
        Reporting back of an unpacked inbound delivery withchanges
        Reporting back of an packed inbound delivery withoutchanges
        For each of the segment types reported back, there follows a list ofparticular example fields.
        RESET N1
        The item data of the delivery is reported back unchanged, and thedelivery contains no packaging data.
        DELIVERY - Document number of the inbound delivery
        Field DELIV_NUMB - Delivery number
        HEADER_DATA - Header data of the inbound delivery
        Field DELIV_NUMB - Delivery number
        HEADER_CONTROL - Header control data
        Field DELIV_NUMB - Delivery number
        Feld POST_GI_FLG - Indicator: Post automatic goods movement
        The items of the delivery document are reported back changed, and thedelivery does not contain any packaging data.
        DELIVERY - Document number of inbound delivery
        Field DELIV_NUMB - Delivery number
        HEADER_DATA - Header data of the outbound delivery
        Field DELIV_NUMB - Delivery number
        HEADER_CONTROL - Header control data
        Field DELIV_NUMB - Delivery number
        Field POST_GI_FLG - Indicator: Post automatic goods movement
        ITEM_DATA - Item data
        Field DELIV_NUMB - Delivery number
        Field DELIV_ITEM - Delivery item
        Field DLV_QTY - Delivery quantity in sales unit of measure, oralternatively
        Field DLV_QTY_IMUNIT - Actual delivery quantity in stockkeeping unit
        ITEM_CONTROL - Item control data
        Field DELIV_NUMB - Delivery number
        Field DELIV_ITEM - Delivery item
        Field CHG_DELQTY - Change delivery quantity
        The item data in the delivery document is confirmed unchanged and thedelivery does not contain any packaging data.
        DELIVERY - Document number of the inbound delivery
        Field DELIV_NUMB - Delivery number
        HEADER_DATA - Header data of the inbound delivery
        Field DELIV_NUMB - Delivery number
        HEADER_CONTROL - Header control data
        Field DELIV_NUMB - Delivery number
        Field POST_GI_FLG - Indicator: Post automatic goods movement
        HANLDING_UNIT_HEADER - Handling unit header data
        Field DELIV_NUMB - Delivery number
        Field HDL_UNIT - Internal handling unit number
        Field HDL_UNIT_EXID - External handling unit number
        HANDLING_UNIT_ITEM - Handling unit item
        Field DELIV_NUMB - Delivery number
        Field HDL_UNIT_INTO - Handling unit into which will be packed
        Field HDL_UNIT_EXID_INTO - Number of the handling unit into which willbe packed
        If the delivery contains packaging data, then as well as the above-listed header data (DELIVERY, HEADER_DATA, and HEADER_CONTROL) anddelivery item data (ITEM_DATA and ITEM_CONTROL), you must also reportback the current packing hierarchy.
        To do this, fill the segments of type HANDLING_UNIT_HEADER andHANDLING_UNIT_ITEM. If you want to report an empty handling unit, thenyou should only fill the segement of type HANDLING_UNIT_HEADER. Note,that handling units created in the central system for the inbounddelivery are deleted if you do not report them back.
        Material number, plant, quantities in floating values, volumes, weightsand their units are copied from the delivery document, if not specified.
        Error messages are recorded in the BAPI return parameter RETURN with thefollowing message types:

        • E (ERROR)

        • W (WARNING)

        • I (INFORMATION)
        • Further information
          If you use the BAPI as an external interface for an external system, youshould describe the packing hierarchy as usual, using externalidentification numbers HDL_UNIT_EXID_INTO/HDL_UNIT_EXID for thepackaging materials. The fields are contained in the HANDLING_UNIT_ITEMsegment. You must copy the handling unit into the HDL_UNIT_EXID_INTOfield when you report back to packing.
          If you report back batch splits that were created in the ERP system, youcannot fill the hierarchy fields HIERARITEM and USEHIERITM.
          If you created split items in the WM system and have reported back,these two hierarchy fields must contain information.
          If you are not using an ERP system as your decentralized WarehouseManagement System, the IDoc structure must be defined carefully when thereturn message is constructed. In particular, you are not allowed toalter the segment sequence.

          Description
          This segment contains the inbound delivery number.

          Description
          This structure contains the control data for confirming the headerinformation.

          Description
          This structure contains additional control data for the completionconfirmation of the header data.

          Description
          The general header data of the inbound delivery is passed on to thistable.

          Description
          With this parameter you can cause an abnormal end in the receivingsystem by setting the field DEBUG_FLG to X. Through this abnormal endyou can reimport the IDOC into the receiving system with the respectiveBREAK-POINTs.

          Description
          Customer enhancement segment.
          Unstructured data container that can be used as required.

          Value range
          Structure BAPIEXTC
          Field1 CHAR(250)
          Field2 CHAR(250)
          Field3 CHAR(250)
          Field4 CHAR(250)

          Description
          Customer enhancement segment
          Structured data container that can be used as required

          Value range
          Structure BAPIEXT
          PARAMETER CHAR(30)
          ROW INT (8)
          FIELD CHAR(30)
          VALUE CHAR(250)
          TYPE CHAR(5)
          LENGTH INT(4)

          Description
          Header data of the handling units is passed on to this table.

          Description
          Item data of the handling units is passed on to this table.
          übergeben.

          Description
          Enter the serial numbers for a handling unit item.
          For materials with a serial number requirement, you can enter theserial numbers of the HU here.

          Description
          In this table, header dates are passed on in time stamp format(YYYYMMDDHHMMSS). In field BAPIDLVDEADLN-TIMETYPE the individual datefields are qualified as follows:
          - WSHDRLFDAT Delivery date
          - WSHDRWADAT Goods receipt date (planned)
          - WSHDRWADTI Goods receipt date (actual)

          Description
          The segment HEADER_PARTNER is used to enter changes to partners.
          If business partners are not entered as mandatory partners in thedelivery, you can delete business partners by making an entry in theHEADER_PARTNER table with indicator UPD_MODE_PARTN = D.
          You can change data for existing business partners by making an entryin the HEADER_PARTNER table with indicator UPD_MODE_PARTN = U.
          If the assigned partner determination procedure permits you to add newbusiness partners, you can add new partners by setting the indicatorUPD_MODE_PARTN = I in the delivery.
          You must not delete mandatory partner functions, If you need to deletea mandatory partner, the corresponding partner function must beretained. Where necessary, the system creates an entry in theincompletion log.
          You cannot change partners in functions that have been agreed to beunchangeable. The system rejects any requests to make these changes.This is not the same for address data, which must always be changeable.

          Description
          The segment HEADER_PARTNER_ADDR is used to enter address changes forthe delivery partner. To change addresses, you must set theUPD_MODE_ADR indicator to 'U'.

          Description
          This segment contains the control data for confirming the item data.

          Description
          General item data is passed on here.

          Description
          Additional item data is transferred here.

          Description
          Entry of serial numbers for delivery items.
          For materials with a serial number requirement, you must enter theserial numbers here. The system replaces the serial numbers assigned tothe delivery item with the new serial numbers.
          If you do not enter any serial numbers for the delivery item, thesystem deletes any serial numbers that had already been assigned.

          Exception:
          If you do not enter serial numbers for any of the items in thedelivery, the system retains the existing assignment of serial numbers.

          Description
          Here the messages are collected and returned to the caller.

          Description
          The partner system uses this parameter to deliver the token referencefor the CSL. The token is used to issue authorization to changedeliveries across systems. The delivery is blocked in one system if thepartner system opens the delivery in the change transaction, or ifchanges still need to be copied in the partner system in order toachieve a consistent status between the two systems.

618283No error log when deleting deliveries