A_ServiceQtanItemPriceElement

DDL: A_SERVICEQTANITEMPRICEELEMENT Type: view_entity COMPOSITE Package: ODATA_CRMS4_SERVICEQUOTATION

Price Element of Srvc Quotation Item

A_ServiceQtanItemPriceElement is a Composite CDS View that provides data about "Price Element of Srvc Quotation Item" in SAP S/4HANA. It reads from 2 data sources (I_PricingElement, I_ServiceDocumentEnhcd) and exposes 11 fields with key fields ServiceQuotation, ServiceQuotationItem, PricingProcedureStep, PricingProcedureCounter. It has 1 association to related views. Part of development package ODATA_CRMS4_SERVICEQUOTATION.

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 (11)

NameValueLevelField
EndUserText.label Price Element of Srvc Quotation Item view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API 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

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY ServiceQuotation I_ServiceDocumentEnhcd ServiceDocument
KEY ServiceQuotationItem
KEY PricingProcedureStep I_PricingElement PricingProcedureStep
KEY PricingProcedureCounter I_PricingElement PricingProcedureCounter
ServiceDocumentIsQuotation I_ServiceDocumentEnhcd ServiceDocumentIsQuotation
ConditionType I_PricingElement ConditionType
ConditionRateValue I_PricingElement ConditionRateValue
ConditionCurrency I_PricingElement ConditionCurrency
ConditionQuantity I_PricingElement ConditionQuantity
ConditionQuantityUnit I_PricingElement ConditionQuantityUnit
_ServiceQuotation _ServiceQuotation
@EndUserText.label: 'Price Element of Srvc Quotation Item'
@VDM: {
  viewType: #COMPOSITE,
  lifecycle.contract.type: #PUBLIC_REMOTE_API
}
@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking: #('TRANSACTIONAL_DATA')
}
@ObjectModel: {
   createEnabled: true,
   updateEnabled: true,
   deleteEnabled: true,
   usageType: {
     dataClass:      #TRANSACTIONAL,
     serviceQuality: #B,
     sizeCategory:   #XXL
   }
}
@Metadata.ignorePropagatedAnnotations: true
define view entity A_ServiceQtanItemPriceElement
  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 cast(PricingElement.PricingDocumentItem as crms4_number_int preserving type) as ServiceQuotationItem,

  key PricingElement.PricingProcedureStep,
  key PricingElement.PricingProcedureCounter,

      ServiceQuotation.ServiceDocumentIsQuotation,
      PricingElement.ConditionType,

      PricingElement.ConditionRateValue,

      PricingElement.ConditionCurrency,

      @Semantics.quantity.unitOfMeasure: 'ConditionQuantityUnit'
      PricingElement.ConditionQuantity,

      PricingElement.ConditionQuantityUnit,

      //Expose associations

      _ServiceQuotation
}
where
      PricingElement.PricingDocumentItem != '000000' //Ignore Header conditions