P_RefundingQuantity

DDL: P_REFUNDINGQUANTITY SQL: PRFNDNGQTY Type: view CONSUMPTION

P_RefundingQuantity is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_SalesDocumentItemBasic, I_SalesDocumentBasic) and exposes 2 fields with key fields CustomerReturn, CustomerReturnItem. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_SalesDocumentItemBasic CustomerReturnItem from
I_SalesDocumentBasic SalesDocumentBasic inner

Associations (1)

CardinalityTargetAliasCondition
[0..1] P_RefundedQuantitySum _Refundedquantitysum $projection.CustomerReturn = _Refundedquantitysum.CustomerReturn and $projection.CustomerReturnItem = _Refundedquantitysum.CustomerReturnItem

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PRFNDNGQTY view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY CustomerReturn I_SalesDocumentItemBasic SalesDocument SD Document
KEY CustomerReturnItem I_SalesDocumentItemBasic SalesDocumentItem Sales Document Item

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_RefundingQuantity.
-- 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: PRFNDNGQTY

CREATE VIEW P_RefundingQuantity AS
SELECT
  CustomerReturnItem.SalesDocument AS CustomerReturn,
  CustomerReturnItem.SalesDocumentItem AS CustomerReturnItem
FROM I_SalesDocumentItemBasic AS CustomerReturnItem
INNER JOIN I_SalesDocumentBasic AS SalesDocumentBasic ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_RefundedQuantitySum AS _Refundedquantitysum ON CustomerReturn = _Refundedquantitysum.CustomerReturn AND CustomerReturnItem = _Refundedquantitysum.CustomerReturnItem  -- association [0..1]
;