C_PhysInvtryDocItemObjPage
PI Document Item Object Page
C_PhysInvtryDocItemObjPage is a Consumption CDS View that provides data about "PI Document Item Object Page" in SAP S/4HANA. It reads from 1 data source (P_PhysInvtryDocItem) and exposes 92 fields with key fields FiscalYear, PhysicalInventoryDocument, PhysicalInventoryDocumentItem. It has 9 associations to related views. Part of development package ODATA_MM_IM_PI_OBJECT_PAGE.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_PhysInvtryDocItem | P_PhysInvtryDocItem | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_Language | sylangu |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_PhysInvtryDocSrlNmbrObjPage | _PhysInvtryDocSrlNmbrObjPage | $projection.PhysicalInventoryDocument = _PhysInvtryDocSrlNmbrObjPage.PhysicalInventoryDocument and $projection.FiscalYear = _PhysInvtryDocSrlNmbrObjPage.FiscalYear and $projection.PhysicalInventoryDocumentItem = _PhysInvtryDocSrlNmbrObjPage.PhysicalInventoryDocumentItem |
| [0..1] | I_WBSElementByInternalKey | _WBSElement | $projection.WBSElementInternalID = _WBSElement.WBSElementInternalID and $projection.WBSElementInternalID <> '00000000' |
| [1..1] | I_Product | _Product | $projection.Material = _Product.Product |
| [1..1] | I_ProductPlant | _ProductPlant | $projection.Material = _ProductPlant.Product and $projection.Plant = _ProductPlant.Plant |
| [1..1] | I_Batch | _Batch | $projection.Material = _Batch.Material and $projection.Plant = _Batch.Plant and $projection.Batch = _Batch.Batch |
| [1..1] | I_GoodsMovementReasonControl | _GoodsMovementReasonControl | $projection.MovementTypeForReasonCode = _GoodsMovementReasonControl.GoodsMovementType |
| [1..1] | I_PhysInvtryReasonCode | _PhysInvtryReasonCode | $projection.MovementTypeForReasonCode = _PhysInvtryReasonCode.GoodsMovementType and $projection.ReasonForPhysInvtryDifference = _PhysInvtryReasonCode.ReasonForPhysInvtryDifference |
| [0..1] | I_PhysInvtryDocPrintCount | _PhysInvtryDocPrintCount | $projection.PhysicalInventoryDocument = _PhysInvtryDocPrintCount.PhysicalInventoryDocument and $projection.FiscalYear = _PhysInvtryDocPrintCount.FiscalYear and $projection.PhysicalInventoryDocumentItem = _PhysInvtryDocPrintCount.PhysicalInventoryDocumentItem |
| [0..1] | E_PhysInvtryDocumentItem | _Extension | $projection.FiscalYear = _Extension.FiscalYear and $projection.PhysicalInventoryDocument = _Extension.PhysicalInventoryDocument and $projection.PhysicalInventoryDocumentItem = _Extension.PhysicalInventoryDocumentItem |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | PI Document Item Object Page | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.private | false | view | |
| VDM.viewType | #CONSUMPTION | view | |
| UI.headerInfo.typeName | Physical Inventory Document Item | view | |
| UI.headerInfo.title.label | Physical Inventory Document Item | view | |
| UI.headerInfo.title.value | PhysicalInventoryDocumentItem | view |
Fields (92)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | PhysicalInventoryDocument | PhysicalInventoryDocument | Physical Inventory Document | |
| KEY | PhysicalInventoryDocumentItem | PhysicalInventoryDocumentItem | Physical Inventory Document Item | |
| SitnNumberOfInstances | ||||
| PhysInvtrySitnID | PhysInvtrySitnID | |||
| Material | Material | Vehicle Model | ||
| Language | ||||
| Plant | Plant | Valuation Area | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| WarehouseStorageBin | ||||
| Batch | RealProductBatch | |||
| ValuationType | ValuationType | Valuation Type | ||
| InventorySpecialStockType | InventorySpecialStockType | Special Stock Type | ||
| MovementTypeForReasonCode | MovementTypeForReasonCode | |||
| GoodsMovementType | GoodsMovementType | Movement Type | ||
| GoodsMovementReasonControl | _GoodsMovementReasonControl | GoodsMovementReasonControl | ||
| PhysicalInventoryStockType | PhysicalInventoryStockType | Stock Type | ||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| ScheduleLine | ScheduleLine | Schedule Line | ||
| Supplier | Supplier | Supplier | ||
| Customer | Customer | Sold-to Party | ||
| LastChangeUser | LastChangeUser | User Name | ||
| LastChangeUserDescription | ||||
| LastChangeDate | LastChangeDate | Time Stamp | ||
| CountedByUser | CountedByUser | Counted By | ||
| CountedByUserDescription | ||||
| PhysicalInventoryLastCountDate | PhysicalInventoryLastCountDate | Count Date | ||
| AdjustmentPostingMadeByUser | AdjustmentPostingMadeByUser | Adjustment Posting Made By | ||
| AdjmtPostingMadeByUserDesc | ||||
| PostingDate | PostingDate | Posting Date for GR | ||
| PhysInventoryReferenceNumber | PhysInventoryReferenceNumber | Physical Inventory Reference | ||
| PhysicalInventoryStatusText | ||||
| IsHandledInAltvUnitOfMsr | IsHandledInAltvUnitOfMsr | Without Unit of Measure Proposal | ||
| PhysicalInventoryItemIsZero | PhysicalInventoryItemIsZero | Zero Counted | ||
| QuantityInUnitOfEntry | QuantityInUnitOfEntry | Quantity in UnE | ||
| Quantity | Quantity | Value | ||
| BookQtyBfrCountInMatlBaseUnit | BookQtyBfrCountInMatlBaseUnit | Book Quantity | ||
| DifferenceQuantityInBaseUnit | DifferenceQuantityInBaseUnit | |||
| MaterialBaseUnit | MaterialBaseUnit | Valuation Unit | ||
| UnitOfEntry | UnitOfEntry | Unit of Entry | ||
| Currency | Currency | Valuation Crcy | ||
| SlsPriceAmountInCoCodeCrcy | SlsPriceAmountInCoCodeCrcy | Sales Price Book Value | ||
| PhysInvtryCtAmtInCoCodeCrcy | PhysInvtryCtAmtInCoCodeCrcy | Counted Quantity Value | ||
| BookQtyAmountInCoCodeCrcy | BookQtyAmountInCoCodeCrcy | Book Value | ||
| DifferenceAmountInCoCodeCrcy | DifferenceAmountInCoCodeCrcy | Difference Val. | ||
| DiffCountedBookAmtInCoCodeCry | DiffCountedBookAmtInCoCodeCry | |||
| EnteredSlsAmtInCoCodeCrcy | EnteredSlsAmtInCoCodeCrcy | Sales Price Counted Value | ||
| DiffSlsPrcAmtInCoCodeCrcy | DiffSlsPrcAmtInCoCodeCrcy | |||
| IsValueOnlyMaterial | IsValueOnlyMaterial | Is Value-Only Material | ||
| MaterialDocument | MaterialDocument | Material Doc. | ||
| MaterialDocumentYear | MaterialDocumentYear | Material Document Year | ||
| MaterialDocumentItem | MaterialDocumentItem | Material Document Item | ||
| PhysInvtryRecountDocument | PhysInvtryRecountDocument | Recount Doc. | ||
| CycleCountType | Cycle Count Type | |||
| NmbrOfPhysInvtryPerFiscalYear | NmbrOfPhysInvtryPerFiscalYear | |||
| PhysInvtryIntvlForCycCounting | PhysInvtryIntvlForCycCounting | |||
| PhysInvtryFloatTimeCycCounting | PhysInvtryFloatTimeCycCounting | |||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| WBSElement | _WBSElement | WBSElement | WBS Internal ID | |
| WBSDescription | _WBSElement | WBSDescription | WBS Element Name | |
| ProductCategory | ProductCategory | Prod Category | ||
| ReasonForPhysInvtryDifference | ReasonForPhysInvtryDifference | Difference Reason | ||
| CrossPlantConfigurableMaterial | CrossPlantConfigurableMaterial | Cross-Plant Configurable Material | ||
| PhysInvtryDiffIsDistributed | PhysInvtryDiffIsDistributed | Difference Distributed | ||
| PhysicalInventoryNumber | ||||
| MaterialName | ||||
| PhysicalInventoryItemIsCounted | PhysicalInventoryItemIsCounted | Is Counted | ||
| PhysInvtryDifferenceIsPosted | PhysInvtryDifferenceIsPosted | Is Difference Posted | ||
| PhysInvtryItemIsDeleted | PhysInvtryItemIsDeleted | Is Deleted | ||
| PhysInvtryDocHasQtySnapshot | ||||
| SalesPriceValuationIsActive | ||||
| SerialNumberProfile | _ProductPlant | SerialNumberProfile | SerialNoProfile | |
| _PhysInvtryDocSrlNmbrObjPage | _PhysInvtryDocSrlNmbrObjPage | |||
| UnitOfMeasure | ||||
| _Material | _Material | |||
| _Plant | _Plant | |||
| _StorageLocation | _StorageLocation | |||
| _Customer | _Customer | |||
| _Supplier | _Supplier | |||
| _InventorySpecialStockType | _InventorySpecialStockType | |||
| _PhysInvtryReasonCode | _PhysInvtryReasonCode | |||
| _GoodsMovementType | _GoodsMovementType | |||
| _PhysicalInventoryStockType | _PhysicalInventoryStockType | |||
| _ProductCategory | _ProductCategory | |||
| _CrossPlantConfigurableMatl | _CrossPlantConfigurableMatl | |||
| _SupplierCompanyByPlant | _SupplierCompanyByPlant | |||
| _CustomerCompanyByPlant | _CustomerCompanyByPlant | |||
| _GoodsMovementReasonControl | _GoodsMovementReasonControl | |||
| _Product | _Product | |||
| _ProductPlant | _ProductPlant | |||
| _Batch | _Batch |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view C_PhysInvtryDocItemObjPage.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- Parameters: P_Language : sylangu
CREATE VIEW C_PhysInvtryDocItemObjPage AS
SELECT
FiscalYear,
PhysicalInventoryDocument,
PhysicalInventoryDocumentItem,
P_PhysInvtryDocItem._SitnInstceIndicator.SitnNumberOfInstances AS SitnNumberOfInstances,
PhysInvtrySitnID,
Material,
Plant,
StorageLocation,
P_PhysInvtryDocItem._ProductStorageLocation.WarehouseStorageBin AS WarehouseStorageBin,
RealProductBatch AS Batch,
ValuationType,
InventorySpecialStockType,
MovementTypeForReasonCode,
GoodsMovementType,
_GoodsMovementReasonControl.GoodsMovementReasonControl AS GoodsMovementReasonControl,
PhysicalInventoryStockType,
SalesOrder,
SalesOrderItem,
ScheduleLine,
Supplier,
Customer,
LastChangeUser,
P_PhysInvtryDocItem._LastChangeUser.UserDescription AS LastChangeUserDescription,
LastChangeDate,
CountedByUser,
P_PhysInvtryDocItem._CountedByUser.UserDescription AS CountedByUserDescription,
PhysicalInventoryLastCountDate,
AdjustmentPostingMadeByUser,
P_PhysInvtryDocItem._AdjustmentPostingMadeByUser.UserDescription AS AdjmtPostingMadeByUserDesc,
PostingDate,
PhysInventoryReferenceNumber,
_PhysInvtryStatusT[1: Language=$parameters.P_Language].PhysicalInventoryStatusText AS PhysicalInventoryStatusText,
IsHandledInAltvUnitOfMsr,
PhysicalInventoryItemIsZero,
QuantityInUnitOfEntry,
Quantity,
BookQtyBfrCountInMatlBaseUnit,
DifferenceQuantityInBaseUnit,
MaterialBaseUnit,
UnitOfEntry,
Currency,
SlsPriceAmountInCoCodeCrcy,
PhysInvtryCtAmtInCoCodeCrcy,
BookQtyAmountInCoCodeCrcy,
DifferenceAmountInCoCodeCrcy,
DiffCountedBookAmtInCoCodeCry,
EnteredSlsAmtInCoCodeCrcy,
DiffSlsPrcAmtInCoCodeCrcy,
IsValueOnlyMaterial,
MaterialDocument,
MaterialDocumentYear,
MaterialDocumentItem,
PhysInvtryRecountDocument,
cast( CycleCountType as mmim_cycle_count_type ) AS CycleCountType,
NmbrOfPhysInvtryPerFiscalYear,
PhysInvtryIntvlForCycCounting,
PhysInvtryFloatTimeCycCounting,
WBSElementInternalID,
_WBSElement.WBSElement AS WBSElement,
_WBSElement.WBSDescription AS WBSDescription,
ProductCategory,
ReasonForPhysInvtryDifference,
CrossPlantConfigurableMaterial,
PhysInvtryDiffIsDistributed,
P_PhysInvtryDocItem._PhysInvtryDocHeader.PhysicalInventoryNumber AS PhysicalInventoryNumber,
_Material._Text[1: Language=$session.system_language].MaterialName AS MaterialName,
PhysicalInventoryItemIsCounted,
PhysInvtryDifferenceIsPosted,
PhysInvtryItemIsDeleted,
P_PhysInvtryDocItem._PhysInvtryDocHeader.PhysInvtryDocHasQtySnapshot AS PhysInvtryDocHasQtySnapshot,
P_PhysInvtryDocItem._PhysInvtryDocHeader.SalesPriceValuationIsActive AS SalesPriceValuationIsActive,
_ProductPlant.SerialNumberProfile AS SerialNumberProfile,
cast( cast( '10' as char3) as msehi) AS UnitOfMeasure
FROM P_PhysInvtryDocItem
LEFT OUTER JOIN C_PhysInvtryDocSrlNmbrObjPage AS _PhysInvtryDocSrlNmbrObjPage ON PhysicalInventoryDocument = _PhysInvtryDocSrlNmbrObjPage.PhysicalInventoryDocument AND FiscalYear = _PhysInvtryDocSrlNmbrObjPage.FiscalYear AND PhysicalInventoryDocumentItem = _PhysInvtryDocSrlNmbrObjPage.PhysicalInventoryDocumentItem -- association [0..*]
LEFT OUTER JOIN I_WBSElementByInternalKey AS _WBSElement ON WBSElementInternalID = _WBSElement.WBSElementInternalID AND WBSElementInternalID <> '00000000' -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product -- association [1..1]
LEFT OUTER JOIN I_ProductPlant AS _ProductPlant ON Material = _ProductPlant.Product AND Plant = _ProductPlant.Plant -- association [1..1]
LEFT OUTER JOIN I_Batch AS _Batch ON Material = _Batch.Material AND Plant = _Batch.Plant AND Batch = _Batch.Batch -- association [1..1]
LEFT OUTER JOIN I_GoodsMovementReasonControl AS _GoodsMovementReasonControl ON MovementTypeForReasonCode = _GoodsMovementReasonControl.GoodsMovementType -- association [1..1]
LEFT OUTER JOIN I_PhysInvtryReasonCode AS _PhysInvtryReasonCode ON MovementTypeForReasonCode = _PhysInvtryReasonCode.GoodsMovementType AND ReasonForPhysInvtryDifference = _PhysInvtryReasonCode.ReasonForPhysInvtryDifference -- association [1..1]
LEFT OUTER JOIN I_PhysInvtryDocPrintCount AS _PhysInvtryDocPrintCount ON PhysicalInventoryDocument = _PhysInvtryDocPrintCount.PhysicalInventoryDocument AND FiscalYear = _PhysInvtryDocPrintCount.FiscalYear AND PhysicalInventoryDocumentItem = _PhysInvtryDocPrintCount.PhysicalInventoryDocumentItem -- association [0..1]
LEFT OUTER JOIN E_PhysInvtryDocumentItem AS _Extension ON FiscalYear = _Extension.FiscalYear AND PhysicalInventoryDocument = _Extension.PhysicalInventoryDocument AND PhysicalInventoryDocumentItem = _Extension.PhysicalInventoryDocumentItem -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA