P_RefundedQuantitySum

DDL: P_REFUNDEDQUANTITYSUM SQL: PREFNDEDQTYSUM Type: view CONSUMPTION

P_RefundedQuantitySum is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (P_RefundedQuantity) and exposes 5 fields with key fields CustomerReturn, CustomerReturnItem.

Data Sources (1)

SourceAliasJoin Type
P_RefundedQuantity Refundedquantity from

Annotations (7)

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

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY CustomerReturn P_RefundedQuantity CustomerReturn SD Document
KEY CustomerReturnItem P_RefundedQuantity CustomerReturnItem Sales Document Item
ReturnQuantity
CustReturnItmRefundedQty
RefundedQuantityInBaseUnit

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_RefundedQuantitySum.
-- 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: PREFNDEDQTYSUM

CREATE VIEW P_RefundedQuantitySum AS
SELECT
  Refundedquantity.CustomerReturn AS CustomerReturn,
  Refundedquantity.CustomerReturnItem AS CustomerReturnItem,
  sum(Refundedquantity.ReturnQuantity) AS ReturnQuantity,
  sum(Refundedquantity.CustReturnItmRefundedQty) AS CustReturnItmRefundedQty,
  sum(Refundedquantity.RefundedQuantityInBaseUnit) AS RefundedQuantityInBaseUnit
FROM P_RefundedQuantity AS Refundedquantity
;