R_SrvcQtanPriceElementTP

DDL: R_SRVCQTANPRICEELEMENTTP Type: view_entity TRANSACTIONAL

Service Quotation Price Element - TP

R_SrvcQtanPriceElementTP is a Transactional CDS View that provides data about "Service Quotation Price Element - TP" in SAP S/4HANA. It reads from 2 data sources (I_PricingElement, I_ServiceDocumentEnhcd) and exposes 14 fields with key fields ServiceQuotation, PricingProcedureStep, PricingProcedureCounter.

Data Sources (2)

SourceAliasJoin Type
I_PricingElement PricingElement from
I_ServiceDocumentEnhcd ServiceQuotation inner

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Service Quotation Price Element - TP view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY ServiceQuotation I_ServiceDocumentEnhcd ServiceDocument
KEY PricingProcedureStep I_PricingElement PricingProcedureStep
KEY PricingProcedureCounter I_PricingElement PricingProcedureCounter
ConditionType I_PricingElement ConditionType
ConditionRateValue I_PricingElement ConditionRateValue
ConditionCurrency I_PricingElement ConditionCurrency
ConditionQuantity I_PricingElement ConditionQuantity
ConditionQuantityUnit I_PricingElement ConditionQuantityUnit
ConditionAmount I_PricingElement ConditionAmount
TransactionCurrency I_PricingElement TransactionCurrency
ConditionInactiveReason I_PricingElement ConditionInactiveReason
_ServiceQuotationTP _ServiceQuotationTP
_ConditionQuantityUnit I_PricingElement _ConditionQuantityUnit
_ConditionInactiveReason I_PricingElement _ConditionInactiveReason
@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking: #('TRANSACTIONAL_DATA')
}
@VDM: {
  viewType: #TRANSACTIONAL,
  lifecycle.contract.type: #SAP_INTERNAL_API
}
@Metadata:
{
  ignorePropagatedAnnotations: true
}
@EndUserText.label: 'Service Quotation Price Element - TP'
@ObjectModel: {
   usageType: {dataClass:      #TRANSACTIONAL,
                serviceQuality: #B,
                sizeCategory:   #L}
}

define view entity R_SrvcQtanPriceElementTP
  as select from I_PricingElement       as PricingElement
    inner join   I_ServiceDocumentEnhcd as ServiceQuotation on  ServiceQuotation.PricingDocument   = PricingElement.PricingDocument
                                                            and ServiceQuotation.ServiceObjectType = 'BUS2000116'
                                                            and ServiceQuotation.ServiceDocumentIsQuotation is not initial

  association to parent R_ServiceQuotationTP as _ServiceQuotationTP on $projection.ServiceQuotation = _ServiceQuotationTP.ServiceQuotation

{

  key ServiceQuotation.ServiceDocument        as ServiceQuotation,

  key PricingElement.PricingProcedureStep     as PricingProcedureStep,

  key PricingElement.PricingProcedureCounter  as PricingProcedureCounter,

      PricingElement.ConditionType            as ConditionType,

      PricingElement.ConditionRateValue       as ConditionRateValue,

      PricingElement.ConditionCurrency        as ConditionCurrency,

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

      @ObjectModel.foreignKey.association: '_ConditionQuantityUnit'
      PricingElement.ConditionQuantityUnit    as ConditionQuantityUnit,

      @DefaultAggregation:#NONE
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      PricingElement.ConditionAmount          as ConditionAmount,

      PricingElement.TransactionCurrency      as TransactionCurrency,

      @ObjectModel.foreignKey.association: '_ConditionInactiveReason'
      PricingElement.ConditionInactiveReason  as ConditionInactiveReason,

      //Associations

      _ServiceQuotationTP,

      PricingElement._ConditionQuantityUnit   as _ConditionQuantityUnit,
      PricingElement._ConditionInactiveReason as _ConditionInactiveReason

}

where
      ServiceQuotation.ServiceObjectType = 'BUS2000116'
  and PricingElement.PricingDocumentItem is initial
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PRICINGELEMENT",
"I_SERVICEDOCUMENTENHCD"
],
"ASSOCIATED":
[
"I_CONDITIONINACTIVEREASON",
"I_UNITOFMEASURE",
"R_SERVICEQUOTATIONTP"
],
"BASE":
[
"I_PRICINGELEMENT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/