BAPI_PHYSINV_ITEM SAP (BAPI Communication Structure: Item of Phys. Inv. Doc.) Structure details

Dictionary Type: Structure
Description: BAPI Communication Structure: Item of Phys. Inv. Doc.




ABAP Code to SELECT data from BAPI_PHYSINV_ITEM
Related tables to BAPI_PHYSINV_ITEM
Access table BAPI_PHYSINV_ITEM




Structure field list including key, data, relationships and ABAP select examples

BAPI_PHYSINV_ITEM is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "BAPI Communication Structure: Item of Phys. Inv. Doc." Information within sap ABAP programs.

This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.

i.e. DATA: wa_BAPI_PHYSINV_ITEM TYPE BAPI_PHYSINV_ITEM.

The BAPI_PHYSINV_ITEM table consists of various fields, each holding specific information or linking keys about BAPI Communication Structure: Item of Phys. Inv. Doc. data available in SAP. These include FISCALYEAR (Fiscal Year), ITEM (Line Number), MATERIAL (Material Number), PLANT (Plant).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .

Delivery Class:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Cannot Be Enhanced


SAP BAPI_PHYSINV_ITEM structure fields - Full list of fields found in SAP data dictionary

Field Description Data Element Data Type length (Dec) Check table Conversion Routine Domain Name MemoryID SHLP
PHYSINVENTORYPhysical Inventory Document IBLNRCHAR10ALPHABELNRIBN
FISCALYEARFiscal Year GJAHRNUMC4GJAHRGJAHRGJR
ITEMLine Number DZEILENUMC3ZEILEPOS
MATERIALMaterial Number MATNRCHAR18MARAMATN1MATNRMATS_MAT1
PLANTPlant WERKS_DCHAR4MARCWERKSWRKH_T001W_C
STGE_LOCStorage Location LGORT_DCHAR4T001LLGORTLAG
BATCHBatch Number CHARG_DCHAR10MCHACHARGCHA
SPEC_STOCKSpecial Stock Indicator SOBKZCHAR1T148SOBKZ
STOCK_TYPEStock type BSTARCHAR1T064ABSTAR
SALES_ORDSales Order Number KDAUFCHAR10VBUKALPHAVBELNAUN
S_ORD_ITEMItem Number in Sales Order KDPOSNUMC6NUM06KPO
SCHED_LINEDelivery Schedule for Sales Order KDEINNUMC4NUM04
VENDORVendor Account Number ELIFNCHAR10LFA1ALPHALIFNRLIFKRED_C
CUSTOMERAccount Number of Customer EKUNNCHAR10KNA1ALPHAKUNNRKUN
PRODBINLOCDistribution of Differences PLPLACHAR10PLPLA
CHANGE_USERChanged by USNAACHAR12USNAM
CHANGE_DATEChanged On AEDATDATS8DATUM
COUNT_USERCounted By USNAZCHAR12USNAM
COUNT_DATEDate of last count DZLDATDATS8DATUM
PSTNG_NAMEAdjustment posting made by USNADCHAR12USNAM
PSTNG_DATEPosting Date in the Document BUDATDATS8DATUM
PH_INV_REFReference number for physical inventory XBLNICHAR16XBLNR
COUNTEDItem has been counted XZAELCHAR1XFELD
DIFF_POSTEDDifference posted XDIFFCHAR1XFELD
RECOUNTItem will be recounted XNZAECHAR1XFELD
DELETE_INDItem is Deleted XLOEKCHAR1XFELD
ALT_UNITHandling in Alternative Unit of Measure XAMEICHAR1XFELD
BOOK_QTYBook quantity immediately prior to count BUCHMQUAN13(3) MENGV13
ZERO_COUNTZero count XNULLCHAR1XFELD
QUANTITYQuantity MENGE_DQUAN13(3) MENG13
BASE_UOMBase Unit of Measure MEINSUNIT3T006CUNITMEINS
BASE_UOM_ISOISO code for unit of measurement ISOCD_UNITCHAR3T006IISOCD_UNIT
ENTRY_QNTQuantity in Unit of Entry ERFMGQUAN13(3) MENG13
ENTRY_UOMUnit of Entry ERFMEUNIT3T006CUNITMEINS
ENTRY_UOM_ISOISO code for unit of measurement ISOCD_UNITCHAR3T006IISOCD_UNIT
MAT_DOCNumber of Material Document MBLNRCHAR10ALPHABELNRMBN
DOC_YEARMaterial Document Year MJAHRNUMC4GJAHRGJAHRMJA
MATDOC_ITMItem in Material Document MBLPONUMC4MBLPOPOS
RECOUNTDOCNumber of recount document NBLNRCHAR10ALPHABELNR
DIFFERENCEDifference amount in local currency BAPI_DIFWRDEC23(4) BAPICURR
CURRENCYCurrency Key WAERSCUKY5TCURCWAERSFWS
CURRENCY_ISOISO currency code ISOCDCHAR3ISOCD
CC_PH_INVPhysical inventory indicator for cycle counting ABCINCHAR1T159CABCIN
WBS_ELEMENTWork Breakdown Structure Element (WBS Element) PS_POSIDCHAR24PROJNPS_POSIDPRO
SV_INC_VATValue at sales prices (incl. tax) BAPI_VKWRTDEC23(4) BAPICURR
SALES_VALExternally entered sales value in local currency BAPI_EXVKWDEC23(4) BAPICURR
BOOK_VALUEBook value based on sales prices (SP) at time of count BAPI_BUCHWDEC23(4) BAPICURR
VO_MATIndicates that the value-only material is to be inventoried XWARTCHAR1XFELD
SV_W_O_VATValue at sales prices excl. tax BAPI_VKWRADEC23(4) BAPICURR
DIFFSALCNTVATSales val. of inv. diffs (incl. tax) upon count entry BAPI_VKMZLDEC23(4) BAPICURR
DIFFSALCNTSales val. of inv. diffs (excl. tax) upon count entry BAPI_VKNZLDEC23(4) BAPICURR
VALCOUNTQNTValue of physical inventory count BAPI_WRTZLDEC23(4) BAPICURR
VALBOOKAMTValue of book quantity BAPI_WRTBMDEC23(4) BAPICURR
DIFF_VALUEInventory difference value upon count entry BAPI_DIWZLDEC23(4) BAPICURR
REASONReason for inventory diff. GRDIFNUMC4T157DMB_GRBEW
MATERIAL_EXTERNALLong Material Number for MATERIAL Field MGV_MATERIAL_EXTERNALCHAR40MATNR_EXT
MATERIAL_GUIDExternal GUID for MATERIAL Field MGV_MATERIAL_GUIDCHAR32MATNR_EGUID
MATERIAL_VERSIONVersion Number for MATERIAL Field MGV_MATERIAL_VERSIONCHAR10MATNWMATNR_VERS
PH_INV_REF_LONGPhys. Inv. Reference Number (Dependencies see Long Text) XBLNI_LONGCHAR35XBLNR_LONG

Key field Non-key field



How do I retrieve data from SAP structure BAPI_PHYSINV_ITEM using ABAP code?

As BAPI_PHYSINV_ITEM is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on BAPI_PHYSINV_ITEM as there is no data to select.

How to access SAP table BAPI_PHYSINV_ITEM

Within an ECC or HANA version of SAP you can also view further information about BAPI_PHYSINV_ITEM and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!