P_PhysInvtryDocHdrItemTotals

DDL: P_PHYSINVTRYDOCHDRITEMTOTALS SQL: PPIDOCHDRITMTOT Type: view CONSUMPTION

P_PhysInvtryDocHdrItemTotals is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_PhysInvtryDocItem, I_PhysInvtryDocItem) and exposes 3 fields with key fields PhysicalInventoryDocument, FiscalYear.

Data Sources (2)

SourceAliasJoin Type
I_PhysInvtryDocItem a from
I_PhysInvtryDocItem b inner

Annotations (7)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName PPIDOCHDRITMTOT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY PhysicalInventoryDocument I_PhysInvtryDocItem PhysicalInventoryDocument Physical Inventory Document
KEY FiscalYear I_PhysInvtryDocItem FiscalYear G/L Fiscal Year
Plant I_PhysInvtryDocItem Plant Valuation Area

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 P_PhysInvtryDocHdrItemTotals.
-- 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: PPIDOCHDRITMTOT

CREATE VIEW P_PhysInvtryDocHdrItemTotals AS
SELECT
  a.PhysicalInventoryDocument AS PhysicalInventoryDocument,
  a.FiscalYear AS FiscalYear,
  a.Plant AS Plant
FROM I_PhysInvtryDocItem AS a
INNER JOIN I_PhysInvtryDocItem AS b ON /* join condition not captured in parsed metadata */
;