C_PhysInvtryDocHdrObjPage
PI Document Header Object Page
C_PhysInvtryDocHdrObjPage is a Consumption CDS View that provides data about "PI Document Header Object Page" in SAP S/4HANA. It reads from 1 data source (I_PhysInvtryDocHeader) and exposes 38 fields with key fields PhysicalInventoryDocument, FiscalYear. It has 4 associations to related views. Part of development package ODATA_MM_IM_PI_OBJECT_PAGE.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PhysInvtryDocHeader | I_PhysInvtryDocHeader | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_PhysInvtryDocItemObjPage | _PhysInvtryDocItemObjPage | $projection.PhysicalInventoryDocument = _PhysInvtryDocItemObjPage.PhysicalInventoryDocument and $projection.FiscalYear = _PhysInvtryDocItemObjPage.FiscalYear |
| [1..1] | C_PhysInvtryDocHdrItemTotals | _PhysInvtryDocHdrItemTotals | $projection.PhysicalInventoryDocument = _PhysInvtryDocHdrItemTotals.PhysicalInventoryDocument and $projection.FiscalYear = _PhysInvtryDocHdrItemTotals.FiscalYear |
| [0..1] | P_PhysInvtryCountSitnInstOfDoc | _PhysInvtryCountSitnInstOfDoc | $projection.PhysicalInventoryDocument = _PhysInvtryCountSitnInstOfDoc.PhysicalInventoryDocument and $projection.FiscalYear = _PhysInvtryCountSitnInstOfDoc.FiscalYear |
| [0..*] | R_PhysInvtryOutpRequestItem | _PhysInvtryOutpRequestItem | $projection.PhysicalInventoryDocument = _PhysInvtryOutpRequestItem.PhysicalInventoryDocument and $projection.FiscalYear = _PhysInvtryOutpRequestItem.FiscalYear and _PhysInvtryOutpRequestItem.OperationIsPrinted <> 'N' |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | PI Document Header Object Page | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.createEnabled | false | view | |
| ObjectModel.updateEnabled | false | view | |
| ObjectModel.deleteEnabled | false | view | |
| VDM.private | false | view | |
| VDM.viewType | #CONSUMPTION | view | |
| UI.headerInfo.typeName | Physical Inventory Document | view | |
| UI.headerInfo.typeNamePlural | Physical Inventory Documents | view | |
| UI.headerInfo.title.label | Physical Inventory Document | view | |
| UI.headerInfo.title.value | PhysicalInventoryDocumentTitle | view | |
| Consumption.semanticObject | PhysicalInventoryDocument | view |
Fields (38)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PhysicalInventoryDocument | PhysicalInventoryDocument | Physical Inventory Document | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| PhysicalInventoryDocumentTitle | ||||
| SitnNumberOfInstances | _PhysInvtryCountSitnInstOfDoc | SitnNumberOfInstances | ||
| InventoryTransactionType | InventoryTransactionType | Trans. Ev. Type | ||
| Plant | Plant | Valuation Area | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| InventorySpecialStockType | InventorySpecialStockType | Special Stock Type | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| PhysInventoryPlannedCountDate | PhysInventoryPlannedCountDate | Plan.Count date | ||
| PhysicalInventoryLastCountDate | PhysicalInventoryLastCountDate | Count Date | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| CreatedByUserName | CreatedByUserName | Person Resp. | ||
| CreatedByUserDescription | ||||
| PostingIsBlockedForPhysInvtry | PostingIsBlockedForPhysInvtry | Posting Block | ||
| xmlPhysInvtryAdjustmentPostingSts | ||||
| PhysInventoryReferenceNumber | PhysInventoryReferenceNumber | Physical Inventory Reference | ||
| PhysInvtryDeletionStatus | PhysInvtryDeletionStatus | Deletion Status | ||
| PhysInvtryDocHasQtySnapshot | PhysInvtryDocHasQtySnapshot | Book Inventory Freeze | ||
| PhysicalInventoryGroupType | PhysicalInventoryGroupType | Grouping Type | ||
| PhysicalInventoryGroup | PhysicalInventoryGroup | Grpg Crit. | ||
| PhysicalInventoryNumber | PhysicalInventoryNumber | Physical Inventory Number | ||
| PhysicalInventoryDocumentDesc | PhysicalInventoryDocumentDesc | Description | ||
| PhysicalInventoryType | PhysicalInventoryType | |||
| IsChangeDocumentsEnabled | ||||
| PhysInvtryRecountSourceDoc | ||||
| _PhysInvtryDocItemObjPage | _PhysInvtryDocItemObjPage | |||
| _PhysInvtryOutpRequestItem | _PhysInvtryOutpRequestItem | |||
| _Plant | _Plant | |||
| _StorageLocation | _StorageLocation | |||
| _PhysInvtryCountSts | _PhysInvtryCountSts | |||
| _PhysInvtryDeletionSts | _PhysInvtryDeletionSts | |||
| _PhysInvtryPostSts | _PhysInvtryPostSts | |||
| _InventorySpecialStockType | _InventorySpecialStockType | |||
| _InventoryTransactionType | _InventoryTransactionType | |||
| _PhysInvtryGroupType | _PhysInvtryGroupType | |||
| _PhysInvtryType | _PhysInvtryType |
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_PhysInvtryDocHdrObjPage.
-- 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.
CREATE VIEW C_PhysInvtryDocHdrObjPage AS
SELECT
PhysicalInventoryDocument,
FiscalYear,
ltrim(concat_with_space(PhysicalInventoryDocument, FiscalYear, 1), '0') AS PhysicalInventoryDocumentTitle,
_PhysInvtryCountSitnInstOfDoc.SitnNumberOfInstances AS SitnNumberOfInstances,
InventoryTransactionType,
Plant,
StorageLocation,
InventorySpecialStockType,
DocumentDate,
PhysInventoryPlannedCountDate,
PhysicalInventoryLastCountDate,
PostingDate,
FiscalPeriod,
CreatedByUserName,
I_PhysInvtryDocHeader._CreatedByUser.UserDescription AS CreatedByUserDescription,
PostingIsBlockedForPhysInvtry,
PhysInventoryReferenceNumber,
PhysInvtryDeletionStatus,
PhysInvtryDocHasQtySnapshot,
PhysicalInventoryGroupType,
PhysicalInventoryGroup,
PhysicalInventoryNumber,
PhysicalInventoryDocumentDesc,
PhysicalInventoryType,
cast ( '' as boole_d preserving type ) AS IsChangeDocumentsEnabled,
cast ( ' ' as pi_source_document preserving type ) AS PhysInvtryRecountSourceDoc
FROM I_PhysInvtryDocHeader
LEFT OUTER JOIN C_PhysInvtryDocItemObjPage AS _PhysInvtryDocItemObjPage ON PhysicalInventoryDocument = _PhysInvtryDocItemObjPage.PhysicalInventoryDocument AND FiscalYear = _PhysInvtryDocItemObjPage.FiscalYear -- association [0..*]
LEFT OUTER JOIN C_PhysInvtryDocHdrItemTotals AS _PhysInvtryDocHdrItemTotals ON PhysicalInventoryDocument = _PhysInvtryDocHdrItemTotals.PhysicalInventoryDocument AND FiscalYear = _PhysInvtryDocHdrItemTotals.FiscalYear -- association [1..1]
LEFT OUTER JOIN P_PhysInvtryCountSitnInstOfDoc AS _PhysInvtryCountSitnInstOfDoc ON PhysicalInventoryDocument = _PhysInvtryCountSitnInstOfDoc.PhysicalInventoryDocument AND FiscalYear = _PhysInvtryCountSitnInstOfDoc.FiscalYear -- association [0..1]
LEFT OUTER JOIN R_PhysInvtryOutpRequestItem AS _PhysInvtryOutpRequestItem ON PhysicalInventoryDocument = _PhysInvtryOutpRequestItem.PhysicalInventoryDocument AND FiscalYear = _PhysInvtryOutpRequestItem.FiscalYear AND _PhysInvtryOutpRequestItem.OperationIsPrinted <> 'N' -- association [0..*]
;
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