C_PhysInvtryDocSrlNmbrObjPage

DDL: C_PHYSINVTRYDOCSRLNMBROBJPAGE SQL: CPIDOCSNOP Type: view CONSUMPTION

PI Document Serial Number Object Page

C_PhysInvtryDocSrlNmbrObjPage is a Consumption CDS View that provides data about "PI Document Serial Number Object Page" in SAP S/4HANA. It reads from 1 data source (I_PhysInvtryDocSrlNmbr) and exposes 8 fields with key fields PhysicalInventoryDocument, FiscalYear, PhysicalInventoryDocumentItem, SerialNumber. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_PhysInvtryDocSrlNmbr I_PhysInvtryDocSrlNmbr from

Associations (2)

CardinalityTargetAliasCondition
[1..1] C_PhysInvtryDocHdrObjPage _PhysInvtryDocHdrObjPage $projection.PhysicalInventoryDocument = _PhysInvtryDocHdrObjPage.PhysicalInventoryDocument and $projection.FiscalYear = _PhysInvtryDocHdrObjPage.FiscalYear
[1..1] C_PhysInvtryDocItemObjPage _PhysInvtryDocItemObjPage $projection.PhysicalInventoryDocument = _PhysInvtryDocItemObjPage.PhysicalInventoryDocument and $projection.FiscalYear = _PhysInvtryDocItemObjPage.FiscalYear and $projection.PhysicalInventoryDocumentItem = _PhysInvtryDocItemObjPage.PhysicalInventoryDocumentItem

Annotations (11)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName CPIDOCSNOP view
EndUserText.label PI Document Serial Number Object Page view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private false view
VDM.viewType #CONSUMPTION view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY PhysicalInventoryDocument PhysicalInventoryDocument Physical Inventory Document
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY PhysicalInventoryDocumentItem PhysicalInventoryDocumentItem Physical Inventory Document Item
KEY SerialNumber SerialNumber Serial Number
SerialNumberIsInBooks
SerialNumberIsCounted
Plant _PhysInvtryDocHdrObjPage Plant Valuation Area
_PhysInvtryDocItemObjPage _PhysInvtryDocItemObjPage

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_PhysInvtryDocSrlNmbrObjPage.
-- 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.
-- SQL view name: CPIDOCSNOP

CREATE VIEW C_PhysInvtryDocSrlNmbrObjPage AS
SELECT
  PhysicalInventoryDocument,
  FiscalYear,
  PhysicalInventoryDocumentItem,
  SerialNumber,
  cast( SerialNumberIsInBooks as pi_item_sn_book_inv_ind preserving type) AS SerialNumberIsInBooks,
  cast( SerialNumberIsCounted as pi_item_sn_counted_ind preserving type) AS SerialNumberIsCounted,
  _PhysInvtryDocHdrObjPage.Plant AS Plant
FROM I_PhysInvtryDocSrlNmbr
LEFT OUTER JOIN C_PhysInvtryDocHdrObjPage AS _PhysInvtryDocHdrObjPage ON PhysicalInventoryDocument = _PhysInvtryDocHdrObjPage.PhysicalInventoryDocument AND FiscalYear = _PhysInvtryDocHdrObjPage.FiscalYear  -- association [1..1]
LEFT OUTER JOIN C_PhysInvtryDocItemObjPage AS _PhysInvtryDocItemObjPage ON PhysicalInventoryDocument = _PhysInvtryDocItemObjPage.PhysicalInventoryDocument AND FiscalYear = _PhysInvtryDocItemObjPage.FiscalYear AND PhysicalInventoryDocumentItem = _PhysInvtryDocItemObjPage.PhysicalInventoryDocumentItem  -- association [1..1]
;