P_ConvertedSalesQuotation

DDL: P_CONVERTEDSALESQUOTATION SQL: PSDCNVRTDSLSQTAN Type: view COMPOSITE

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

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 PSDCNVRTDSLSQTAN view
AbapCatalog.preserveKey true view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY SalesQuotation ReferenceSDDocument
KEY SalesQuotationItem ReferenceSDDocumentItem
CnvrtdSalesQuotationNetAmount
CnvrtdSalesQuotationQuantity
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #L
@VDM.private: true
@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AbapCatalog.sqlViewName: 'PSDCNVRTDSLSQTAN'
@AbapCatalog.preserveKey:true

define view P_ConvertedSalesQuotation
as select from I_SalesOrderItem
{
    key ReferenceSDDocument as SalesQuotation,
    
    key ReferenceSDDocumentItem as SalesQuotationItem,

    sum(NetAmount) as CnvrtdSalesQuotationNetAmount,
    
    sum(RequestedQuantityInBaseUnit) as CnvrtdSalesQuotationQuantity
}
where ReferenceSDDocumentCategory = 'B'
group by ReferenceSDDocument, ReferenceSDDocumentItem