Fonction SAP BAPI_MATPHYSINV_POSTDIFF - Post differences for certain items in a phys. inv. document

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
FISCALYEAR IKPF-GJAHR N 4 Fiscal Year
PHYSINVENTORY IKPF-IBLNR C 10 Physical inventory document
PSTNG_DATE IKPF-BUDAT D 8 X Posting date in the document
THRESHOLD_VALUE BAPICURR-BAPICURR P 12 X Threshold value for inventory differences

Paramètre Reférence Long. Facultatif Description
ITEMS BAPI_PHYSINV_POST_ITEMS 129 X Items of phys. inv. doc. that are to be posted
RETURN BAPIRET2 548 Return messages

Functionality
The PostDifferences method allows you to post differences for physicalinventory documents that have been counted.

Notes
INCLUDE BAPI_BERECHTIGUNG

  • M_ISEG_WDB,,Plant authorization for inventory
  • difference posting

    Further information
    Transfer
    The key fields of the physical inventory document (PhysInventory andFiscalYear) must be transferred to the method as import parameters. Youcan also transfer a threshold value for physical inventory differences(ThresholdValue parameter) and the posting date (Pstng date field). Thedata for each item is imported in the Items table.
    Confirmations
    INCLUDE BAPI_RET

    Further information
    INCLUDE BAPI_INVENTUR_WEITERINF

    Description
    INCLUDE BAPI_KEYFIELD

    Description
    INCLUDE BAPI_KEYFIELD

    Description
    INCLUDE BAPI_DATAELEMENT
    Posting date

    Description
    INCLUDE BAPI_DATAELEMENT
    Threshold value for inventory differences

    Description
    The items in a physical inventory document for which an inventorydifference should be posted are to be included in the Items table,provided that the count has already been entered for these items.
    INCLUDE BAPI_DATAELEMENT
    The following fields must be filled:

    • Line number (ITEM field

    • Material number (MATERIAL field)

    • Batch (BATCH field)

    • The BATCH field only has to be filled for material that is handled inbatches.
      • Inspection lot number (INSP_LOT_NO field)

      • The INSP_LOT_NO field only has to be filled if you work with inspectionlots in Quality Management for this material. The material must alsohave a negative inventory difference (entry quantity is less than thebook quantity) for the 'quality inspection' stock type.
        The following fields can be filled:
        • Reason for inventory difference (REASON field)
        • Description
          INCLUDE BAPI_TABLE

          Value range
          INCLUDE BAPI_INVENTUR_RETURN