Fonction SAP BAPI_MATPHYSINV_GETITEMS - Read list of physical inventory documents with items

Paramètre Reférence Long. Facultatif Description
ADJUST_STATUS_RA BAPI_PHYSINV_ADJUST_ST_RA 5 X Selection Options for Difference Posting Status
BATCH_RA BAPI_PHYSINV_BATCH_RA 23 X Selection Options for Batch
COUNT_STATUS_RA BAPI_PHYSINV_COUNT_ST_RA 5 X Selection Options for Count Status
FISCALYEAR_RA BAPI_PHYSINV_YEAR_RA 11 X Selection Options for Fiscal Year
GROUPING_CRIT_RA BAPI_PHYSINV_GROUP_CRIT_RA 23 X Selection Options for Grouping Criteria
HEADERS BAPI_PHYSINV_HEAD 190 Header Data of Phys. Inv. Docs
ITEMS BAPI_PHYSINV_ITEM 523 Item Data of the Phys. Inv. Documents
MATERIAL_RA BAPI_PHYSINV_MATERIAL_RA 39 X Selection Options for Material
PHYSINVENTORY_RA BAPI_PHYSINV_DOC_RA 23 X Selection Options for Phys. Inv. Doc.
PHYS_INV_NO_LONG_RA BAPI_PHYSINV_PH_INV_NO_LONG_RA 73 X Selection Options for Phys. Inv. No. (Long)
PHYS_INV_NO_RA BAPI_PHYSINV_PH_INV_NO_RA 35 X Selection Options for Phys. Inv. No.
PLANT_RA BAPI_PHYSINV_PLANT_RA 11 X Selection Options for Plant
PLAN_DATE_RA BAPI_PHYSINV_PLAN_DATE_RA 19 X Selection Options for Planned Count Date
RETURN BAPIRET2 548 Return Messages
STGE_LOC_RA BAPI_PHYSINV_STGE_LOC_RA 11 X Selection Options for Storage Location

Functionality
The GetItems method uses the selection criteria below to read theheader and item data for all physical inventory documents that meet thecriteria.

Notes
INCLUDE BAPI_BERECHTIGUNG

  • M_ISEG_WIB,,Plant authorization for physical
  • inventory
    Transfer
    The following criteria can be used to select the physical inventorydocuments:
    • Plant (PlantRa structure)

    • Storage location (StgeLocRa structure)

    • Physical inv. no. (PhysInvNoRa structure)

    • Physical inv. doc. (PhysinventoryRa structure)

    • Fiscal year (FiscalyearRa structure)

    • Planned count date (PlanDateRa structure)

    • Count status (CountStatusRa structure)

    • Status of adjustment posting (AdjustStatusRa structure

    • Grouping criterion (GroupingCritRa structure)

    • Material (MaterialRa structure)

    • Batch (BatchRa structure)

    • Confirmations
      INCLUDE BAPI_RET

      Further information
      INCLUDE BAPI_INVENTUR_WEITERINF

      Description
      INCLUDE BAPI_DATAELEMENT
      Status of difference posting

      Description
      INCLUDE BAPI_DATAELEMENT
      batch

      Description
      INCLUDE BAPI_DATAELEMENT
      Count status

      Description
      INCLUDE BAPI_KEYFIELD

      Description
      INCLUDE BAPI_DATAELEMENT
      Grouping criterion for physical inventory documentitems

      Description
      This structure contains the header data of the physical inventorydocument items.
      INCLUDE BAPI_DATAELEMENT

      Description
      This table contains the item data of the physical inventory documentitems.
      INCLUDE BAPI_DATAELEMENT

      Description
      INCLUDE BAPI_DATAELEMENT
      Material

      Description
      INCLUDE BAPI_KEYFIELD

      Description
      INCLUDE BAPI_DATAELEMENT
      Physical Inventory Number (Dependencies see LongText)

      Description
      INCLUDE BAPI_DATAELEMENT
      Physical inventory number

      Description
      INCLUDE BAPI_DATAELEMENT
      Plant

      Description
      INCLUDE BAPI_DATAELEMENT
      Planned count date

      Description
      INCLUDE BAPI_TABLE

      Value range
      INCLUDE BAPI_INVENTUR_RETURN

      Description
      INCLUDE BAPI_DATAELEMENT
      Storage location