P_RFDYTotalConfirmationByMat

DDL: P_RFDYTOTALCONFIRMATIONBYMAT SQL: PRFDYTOTCONFIRM Type: view COMPOSITE

P_RFDYTotalConfirmationByMat is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_RFDYRqmtWthCalcAndImpactFigs) and exposes 6 fields with key field RFDYMaterialUUID.

Data Sources (1)

SourceAliasJoin Type
P_RFDYRqmtWthCalcAndImpactFigs P_RFDYRqmtWthCalcAndImpactFigs from

Annotations (6)

NameValueLevelField
VDM.private true view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName PRFDYTOTCONFIRM view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY RFDYMaterialUUID RFDYMaterialUUID Material ID
RFDYWorklistUUID RFDYWorklistUUID Worklist ID
ConfirmedQuantityInBaseUnit
RequestedQuantityInBaseUnit
NumberOfRqmtsWithConfDeficit
Loss

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_RFDYTotalConfirmationByMat.
-- 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: PRFDYTOTCONFIRM

CREATE VIEW P_RFDYTotalConfirmationByMat AS
SELECT
  RFDYMaterialUUID,
  RFDYWorklistUUID,
  cast(sum(ConfirmedQuantityInBaseUnit) as bsatp_sum_cnfqty) AS ConfirmedQuantityInBaseUnit,
  cast(sum(RequestedQuantityInBaseUnit) as bsatp_sum_reqqty) AS RequestedQuantityInBaseUnit,
  cast(sum(IsRqmtWithConfirmationDeficit) as atp_r4d_backordered_items) AS NumberOfRqmtsWithConfDeficit,
  cast(sum(Loss) as atp_r4d_impact) AS Loss
FROM P_RFDYRqmtWthCalcAndImpactFigs
;