SAP Function BAPI_MATPHYSINV_CREATE_MULT - Create Physical Inventory Document

Parameter Reference Type Length Default Optional Text
HEAD BAPI_PHYSINV_CREATE_HEAD u 132 Header data of phys. inv. doc.
MAXITEMS AM07M-MAXPO N 5 X Max. number of items that may have a new document

Parameter Reference Length Optional Text
ITEMS BAPI_PHYSINV_CREATE_ITEMS 172 Physical inventory document item data
RETURN BAPIRET2 548 Confirmations

Functionality
You can use the CreateMultiple method to create one or more physicalinventory documents.

Notes
INCLUDE BAPI_BERECHTIGUNG

  • M_ISEG_WIB,,plant authorization for physical
  • inventory
    Transfer
    The header data of the physical inventory document is transferred withthe help of the 'head' structure. The data for the individual items isimported in the 'Items' table. There is also a parameter calledMaxItems, which you can use to define the maximum number of items thateach physical inventory document contains.
    Confirmations
    INCLUDE BAPI_RET

    Further information
    INCLUDE BAPI_INVENTUR_WEITERINF

    Description
    This structure contains the header data for the physical inventorydocument that is to be created.
    INCLUDE BAPI_DATAELEMENT
    The following fields have to be filled:

    • Plant (PLANT field)

    • Stor. location (STGE_LOC field)

    • The following fields can be filled:
      • Special stock (SPEC_STOCK field)

      • Document date (DOC_DATE field)

      • Planned date of inv.count (PLAN_DATE field)

      • Posting block (POST_BLOCK field)

      • Freeze book inv. balance (FREEZEBOOKINV field)

      • Inlude batches with del. flag (DEL_BATCHES field)

      • Phys. inv. number (PHYS_INV_NO field)

      • Inventory ref. number (PHYS_INV_REF field)

      • Type of grouping criterion (GROUPING_TYPE field)
      • Description
        When you create a physical inventory document, you can specify themaximum number of items that each physical inventory document shouldcontain. If there are too many items to fit in one document, the systemcreates the required number of documents.
        If batch management requirement is active for a material, the systemcarries out batch determination and creates a physical inventory itemfor each batch (this also applies for split valuation).

        Default
        If this parameter is not imported, the system automatically uses themaximum upper limit of 300 items for each physical inventory document.
        See also MAXPO.

        Description
        This table is used to transfer the data for the items in the physicalinventory document.
        INCLUDE BAPI_DATAELEMENT
        The following fields must be filled:

        • Material (MATERIAL field)

        • Stock type (STOCK_TYPE field)

        • The following fields can be filled:
          • Batch (BATCH field)

          • Alternative unit of measure (ALT_UNIT field)

          • If the parameter SPEC_STOCK in the HEAD sructure been filled, theparameters belonging to this special stock type must be filled:
            • Sales order number (SALES_ORD field)

            • Item number in sales order (S_ORD_ITEM field)

            • Vendor (VENDOR field)

            • Customer (CUSTOMER field)

            • Work breakdown structure element (WBS_ELEMENT field)
            • Description
              INCLUDE BAPI_TABLE

              Value range
              INCLUDE BAPI_INVENTUR_RETURN