SAP Function /SPE/INB_DELIVERY_CONFIRM_DEC - BAPI zur Anlieferungsrückmeldung aus einem dezentralen System

Parameter Reference Type Length Default Optional Text
DELIVERY BAPIIBDLVHDRCON-DELIV_NUMB C 10
HEADER_CONTROL BAPIIBDLVHDRCTRLCON u 20
HEADER_CONTROL_SPL /SPE/BAPIIBDLVHDRCTRLCONF u 14 X
HEADER_DATA BAPIIBDLVHDRCON u 84
HEADER_DATA_SPL /SPE/BAPIIBDLVHDRCONF u 140 X Inbound delivery confirmation - add header parameters SPL
IV_SERVICE_CALL CHAR1 C 1 X External Service Call Flag
TECHN_CONTROL BAPIDLVCONTROL u 20 X

Parameter Reference Length Optional Text
EXTENSION1 BAPIEXTC 1000 X
EXTENSION2 BAPIEXT 332 X
HANDLING_UNIT_HEADER BAPIDLVHDUNHDR 457 X
HANDLING_UNIT_HEADER_CROSS BAPIDLVHDUNHDR 457 X Handling unit header data
HANDLING_UNIT_HEADER_EPC /SPE/BAPI_HU_HEADER_EPC 158 X structure for handling unit EPC data
HANDLING_UNIT_IDENTIFIERS /SPE/BAPIDLVHDUNID 71 X Handling Unit Identifiactions
HANDLING_UNIT_ITEM BAPIDLVHDUNITM 235 X
HANDLING_UNIT_ITEMS_EPC /SPE/BAPI_HU_ITEMS_EPC 174 X Struct for handling unit items EPCs
HANDLING_UNIT_ITEM_SPL /SPE/BAPIDLVHDUNITM 66 X Handling Unit Item
HANDLING_UNIT_SERNO BAPIDLVHDUNSERNO 126 X
HEADER_DEADLINES BAPIDLVDEADLN 34 X
HEADER_PARTNER BAPIDLVPARTNERCHG 81 X
HEADER_PARTNER_ADDR BAPIDLVPARTNADDRCHG 1508 X
ITEM_CONTROL BAPIIBDLVITEMCTRLCON 23 X
ITEM_DATA BAPIIBDLVITEMCON 272 X
ITEM_DATA_DOCU_BATCH /SPE/DOCUBATCH_DLV_ITEM_STY 23 X Assigned Documentary Batches per Delivery Item
ITEM_DATA_SPL /SPE/BAPIIBDLVITEMCONF 94 X BAPIIBDLVITEMCONF Inbound delivery additional item data
ITEM_SERIAL_NO BAPIDLVITMSERNO 106 X
RETURN BAPIRET2 548
TEXT_HEADER BAPIDLVTXTHDR 143 X Delivery Text Header
TEXT_LINES BAPIDLVTXTITEM 160 X Delivery Text Lines
TOKENREFERENCE BAPITOKENREFERENCE 255 X

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 item data of the delivery is 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
        or alternatively
        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 notspecified.
        Error messages are recorded in the BAPI return parameter RETURN
        with the following message types.

        • E (ERROR)

        • W (WARNING)

        • I (INFORMATION)
        • Further information
          This part of the text is similar to function module BAPI_INB_DELIVERY_
          SAVEREPLICA and BAPI_OUTB_DELIVERY_CONFIRM_DEC
          If the BAPI is used as an external interface for an external system,the packing hierarchy should be described as usual by using externalidentification numbers for the packaging materialsHDL_UNIT_EXID_INTO/HDL_UNIT_EXID. The fields can be found in theHANDLING_UNIT_ITEM segment. You must copy the handling unit into theHDL_UNIT_EXID_INTO field when you report bakc to packing.
          If you report back batch splits that were created in the ERP, thehierarchy fields HIERARITEM and USEHIERITM must not containinformation.
          If you created split items in the Warehouse Management System and havereported back, these two hierarchy fields must contain information.
          If you are not using an SAP system as your decentralized WarehouseManagement System, the IDoc structure must be defined carefully whenthe return message is constructed. It is very important that thesegment sequence must not be altered.

          Description
          This segment contains the inbound delivery number.

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

          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
          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.

1619076/SPE/INB_DELIVERY_CONFIRM_DEC: Existence of IBD not checked
1449902SMQ2 entries for partial goods receipts from EWM are lost
1378886Parallelization of goods movements in ERP using qRFC