P_ReleasedSalesContract

DDL: P_RELEASEDSALESCONTRACT SQL: PSDRELDSLSCONTR Type: view COMPOSITE

P_ReleasedSalesContract is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_SalesOrderItem) and exposes 4 fields with key fields SalesContract, SalesContractItem.

Data Sources (1)

SourceAliasJoin Type
I_SalesOrderItem I_SalesOrderItem from

Annotations (9)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
VDM.private true view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName PSDRELDSLSCONTR view
AbapCatalog.preserveKey true view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY SalesContract ReferenceSDDocument Reference Doc.
KEY SalesContractItem ReferenceSDDocumentItem Reference Item
SalesContractReleasedAmount
SalesContractReleasedQuantity

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_ReleasedSalesContract.
-- 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: PSDRELDSLSCONTR

CREATE VIEW P_ReleasedSalesContract AS
SELECT
  ReferenceSDDocument AS SalesContract,
  ReferenceSDDocumentItem AS SalesContractItem,
  sum(NetAmount) AS SalesContractReleasedAmount,
  sum(RequestedQuantityInBaseUnit) AS SalesContractReleasedQuantity
FROM I_SalesOrderItem
;