SAP Function BAPI_MATPHYSINV_COUNT - Enter Count for Certain Items of a Physical Inventory Document

Parameter Reference Type Length Default Optional Text
COUNT_DATE IIKPF-ZLDAT D 8 X Date of count
FISCALYEAR IKPF-GJAHR N 4 Fiscal Year
PERCENTAGE_VARIANCE IIKPF-ABWEI N 3 X Variance in % of inventory count to book quantity
PHYSINVENTORY IKPF-IBLNR C 10 Physical inventory document

Parameter Reference Length Optional Text
EXTENSIONIN BAPIPAREX 990 X Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
ITEMS BAPI_PHYSINV_COUNT_ITEMS 139 Items for which count should be entered
RETURN BAPIRET2 548 Return messages
SERIALNUMBERS BAPI_PHYSINV_SERIALNUMBERS 93 X Serial Numbers

Functionality
The Count method allows you to enter the count for items in a physicalinventory document that have not yet been counted.

Notes
INCLUDE BAPI_BERECHTIGUNG

  • M_ISEG_WZL,,Physical inventory: Count in plant

  • Transfer
    The key fields of the physical inventor document (PhysInventory andFiscalYear) have to be transferred to the method as import parameters.The count date (CountDate parameter) and a percentage variance(PercentageVariance parameter) can also be transferred.
    The data for each item is imported in the Items table.
    Ensure that you transfer the unit of entry as an import parameter(ITEMS) to the method, otherwise the method issues an error message.
    Confirmations
    INCLUDE BAPI_RET

    Further information
    INCLUDE BAPI_INVENTUR_WEITERINF

    Description
    INCLUDE BAPI_DATAELEMENT
    Count date

    Description
    INCLUDE BAPI_KEYFIELD

    Description
    INCLUDE BAPI_DATAELEMENT
    Variance in %

    Description
    INCLUDE BAPI_KEYFIELD

    Description
    This table is used to transfer data for the items in the physicalinventory document.
    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.
      • Entry quantity:

      • If the quantity of the material counted is greater than zero, the'Quantity in unit of entry' (ENTRY_QNT field) is to be filled. If thequantity is zero, you only have to set the indicator for zero count(ZERO_COUNT field).
        For value-only materials, the 'Sales value entered externally in localcurrency' (SALES_VAL field) should be imported instead of the 'Quantityin unit of entry'.
        The following fields can be filled:
        • Unit of entry (ENTRY_UOM field)

        • ISO code unit of measurement (ENTRY_UOM_ISO field)
        • Description
          INCLUDE BAPI_TABLE

          Value range
          INCLUDE BAPI_INVENTUR_RETURN

          Description
          INCLUDE BAPI_DATAELEMENT
          Serial number