P_DGR_Sttl_PrepareData

DDL: P_DGR_STTL_PREPAREDATA SQL: PDGRSTTLPREPD Type: view COMPOSITE

P_DGR_Sttl_PrepareData is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_DGR_Sttl_1stAppliedDate, I_SettlementUnitHeader) and exposes 15 fields.

Data Sources (2)

SourceAliasJoin Type
P_DGR_Sttl_1stAppliedDate AppliedDate left_outer
I_SettlementUnitHeader Sttl from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PDGRSTTLPREPD view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view

Fields (15)

KeyFieldSource TableSource FieldDescription
SettlementUnitUUID I_SettlementUnitHeader SettlementUnitUUID
ApplicationUUID I_SettlementUnitHeader ContractApplicationUUID
ApplicationVersion I_SettlementUnitHeader ContractApplicationVersion
ContractNumber I_SettlementUnitHeader ContractNum
ContractItem I_SettlementUnitHeader ContractItem Purchase Contract Item
ContractCommodityItem I_SettlementUnitHeader ContractCommodityItem
SettlementCreatedOnDateTime I_SettlementUnitHeader SettlementCreatedOn
clientNULLasSettlementCreatedOnDate
SettlementStatus I_SettlementUnitHeader SettlmtCat Settl. Category
SettlementStatusObject I_SettlementUnitHeader SettlementStatusObject
ContractQtyCancellationUUID I_SettlementUnitHeader ContractQtyCancellationUUID
SettlementType I_SettlementUnitHeader SettlementType Settlement Type
SettlmtDoc I_SettlementUnitHeader SettlmtDoc Settlement Doc.
SettlmtDocYear I_SettlementUnitHeader SettlmtDocYear
StatusCode I_SettlementUnitHeader StatusCode Statuscode

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_DGR_Sttl_PrepareData.
-- 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: PDGRSTTLPREPD

CREATE VIEW P_DGR_Sttl_PrepareData AS
SELECT
  Sttl.SettlementUnitUUID AS SettlementUnitUUID,
  Sttl.ContractApplicationUUID AS ApplicationUUID,
  Sttl.ContractApplicationVersion AS ApplicationVersion,
  Sttl.ContractNum AS ContractNumber,
  Sttl.ContractItem AS ContractItem,
  Sttl.ContractCommodityItem AS ContractCommodityItem,
  Sttl.SettlementCreatedOn AS SettlementCreatedOnDateTime,
  tstmp_to_dats( Sttl.SettlementCreatedOn, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as SettlementCreatedOnDate AS clientNULLasSettlementCreatedOnDate,
  Sttl.SettlmtCat AS SettlementStatus,
  Sttl.SettlementStatusObject AS SettlementStatusObject,
  Sttl.ContractQtyCancellationUUID AS ContractQtyCancellationUUID,
  Sttl.SettlementType AS SettlementType,
  Sttl.SettlmtDoc AS SettlmtDoc,
  Sttl.SettlmtDocYear AS SettlmtDocYear,
  Sttl.StatusCode AS StatusCode
FROM I_SettlementUnitHeader AS Sttl
LEFT OUTER JOIN P_DGR_Sttl_1stAppliedDate AS AppliedDate ON /* join condition not captured in parsed metadata */
;