Fonction SAP BAPI_MATPHYSINV_CHANGECOUNT - Change Count for Certain Items of a Physical Inventory Document

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
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

Paramètre Reférence Long. Facultatif Description
ITEMS BAPI_PHYSINV_COUNT_ITEMS 139 Items for which count should be changed
RETURN BAPIRET2 548 Return messages
SERIALNUMBERS BAPI_PHYSINV_SERIALNUMBERS 93 X

Functionality
The ChangeCount method allows you to change the count for physicalinventory document items that have already been counted in a physicalinventory document.

Notes
INCLUDE BAPI_BERECHTIGUNG

  • M_ISEG_WZL,,Physical inventory: Count in plant

  • Transfer
    The key fields of the physical inventory document ((PhysInventory andFiscalYear) have to be transferred as import parameters to the method.You can also transfer a variance in percentage (parameterPercentageVariance).
    The data for each item is imported in the Items table.
    Confirmations
    INCLUDE BAPI_RET

    Further information
    INCLUDE BAPI_INVENTUR_WEITERINF
    Ensure that you transfer the unit of entry to the method as an importparameter (ITEMS), otherwise the method issues an error message.

    Description
    INCLUDE BAPI_KEYFIELD

    Description
    INCLUDE BAPI_DATAELEMENT
    Variance in %

    Description
    INCLUDE BAPI_KEYFIELD

    Description
    This table is used to transfer the data for the items in the physicalinventory document for which the count is to be changed.
    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 materials that are 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 counted is zero, you should 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

          Default
          INCLUDE BAPI_INVENTUR_RETURN

          Description
          INCLUDE BAPI_DATAELEMENT
          Serial number