P_WashoutQuantity

DDL: P_WASHOUTQUANTITY SQL: PWASHOUTQTY Type: view COMPOSITE

P_WashoutQuantity is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_AssignmentData, I_TrdgContrAssignmentData) and exposes 4 fields with key fields ContractNum, ContractItem.

Data Sources (2)

SourceAliasJoin Type
I_AssignmentData Assignment inner
I_TrdgContrAssignmentData ContractAssignment from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PWASHOUTQTY view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY ContractNum I_TrdgContrAssignmentData ContractNum Trading Contract
KEY ContractItem I_TrdgContrAssignmentData ContractItem Purchase Contract Item
TrdgContrItemWashoutQuantity
AssignmentUoM I_TrdgContrAssignmentData AssignmentQuantityUoM Assigned UoM

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_WashoutQuantity.
-- 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: PWASHOUTQTY

CREATE VIEW P_WashoutQuantity AS
SELECT
  ContractAssignment.ContractNum AS ContractNum,
  ContractAssignment.ContractItem AS ContractItem,
  sum ( ContractAssignment.AssignmentQuantity ) AS TrdgContrItemWashoutQuantity,
  ContractAssignment.AssignmentQuantityUoM AS AssignmentUoM
FROM I_TrdgContrAssignmentData AS ContractAssignment
INNER JOIN I_AssignmentData AS Assignment ON /* join condition not captured in parsed metadata */
;