C_PhysInvtryDocHdrObjPage

DDL: C_PHYSINVTRYDOCHDROBJPAGE Type: view_entity CONSUMPTION Package: ODATA_MM_IM_PI_OBJECT_PAGE

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)

SourceAliasJoin Type
I_PhysInvtryDocHeader I_PhysInvtryDocHeader from

Associations (4)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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..*]
;