A_ServiceQtanPriceElement

DDL: A_SERVICEQTANPRICEELEMENT Type: view COMPOSITE

Price Element of Service Quotation

A_ServiceQtanPriceElement is a Composite CDS View that provides data about "Price Element of Service Quotation" in SAP S/4HANA. It reads from 2 data sources (I_PricingElement, I_ServiceDocumentEnhcd) and exposes 9 fields with key fields ServiceQuotation, PricingProcedureStep, PricingProcedureCounter. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_PricingElement PricingElement from
I_ServiceDocumentEnhcd ServiceQuotation inner

Associations (1)

CardinalityTargetAliasCondition
[1..1] A_ServiceQuotation _ServiceQuotation $projection.ServiceQuotation = _ServiceQuotation.ServiceQuotation

Annotations (15)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Price Element of Service Quotation view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
AbapCatalog.sqlViewName ASRVQTANPRIELEM view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view
Metadata.ignorePropagatedAnnotations true view
AbapCatalog.preserveKey true view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY ServiceQuotation I_ServiceDocumentEnhcd ServiceDocument
KEY PricingProcedureStep PricingProcedureStep
KEY PricingProcedureCounter PricingProcedureCounter
ConditionType ConditionType
ConditionRateValue ConditionRateValue
ConditionCurrency ConditionCurrency
ConditionQuantity ConditionQuantity
ConditionQuantityUnit ConditionQuantityUnit
_ServiceQuotation _ServiceQuotation
@ClientHandling.algorithm:#SESSION_VARIABLE
@EndUserText.label: 'Price Element of Service Quotation'
@VDM: {
  viewType: #COMPOSITE,
  lifecycle.contract.type: #PUBLIC_REMOTE_API
}
@AbapCatalog: {
  sqlViewName: 'ASRVQTANPRIELEM',
  compiler.compareFilter: true
}
@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking: #('TRANSACTIONAL_DATA')
}
@ObjectModel: {
   createEnabled: true,
   updateEnabled: true,
   deleteEnabled: true,
   usageType: {
     dataClass:      #TRANSACTIONAL,
     serviceQuality: #B,
     sizeCategory:   #XXL
   }
}
@Metadata.ignorePropagatedAnnotations: true
@AbapCatalog.preserveKey:true 

define view A_ServiceQtanPriceElement
  as select from I_PricingElement       as PricingElement
    inner join   I_ServiceDocumentEnhcd as ServiceQuotation on  ServiceQuotation.PricingDocument   = PricingElement.PricingDocument
                                                            and ServiceQuotation.ServiceObjectType = 'BUS2000116'

  association [1..1] to A_ServiceQuotation as _ServiceQuotation on $projection.ServiceQuotation = _ServiceQuotation.ServiceQuotation

{
        @ObjectModel.readOnly: true
    key ServiceQuotation.ServiceDocument    as ServiceQuotation,
  
    key PricingProcedureStep,
    key PricingProcedureCounter,
  
        ConditionType,
   
        ConditionRateValue,
  
        ConditionCurrency,
   
        @Semantics.quantity.unitOfMeasure: 'ConditionQuantityUnit'
        ConditionQuantity,
  
        @Semantics.unitOfMeasure: true
        ConditionQuantityUnit,
  
          //Expose associations

        _ServiceQuotation
}
where
  PricingDocumentItem = '000000' //Ignore Item conditions 

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PRICINGELEMENT",
"I_SERVICEDOCUMENTENHCD"
],
"ASSOCIATED":
[
"A_SERVICEQUOTATION"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/