R_SrvcQtanItemPriceElementTP
Service Quotation Item Price Element - TP
R_SrvcQtanItemPriceElementTP is a Transactional CDS View that provides data about "Service Quotation Item Price Element - TP" in SAP S/4HANA. It reads from 2 data sources (I_PricingElement, I_ServiceDocumentEnhcd) and exposes 15 fields with key fields ServiceQuotation, ServiceQuotationItem, PricingProcedureStep, PricingProcedureCounter. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_PricingElement | PricingElement | from |
| I_ServiceDocumentEnhcd | ServiceQuotation | inner |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | R_ServiceQuotationTP | _ServiceQuotationTP | $projection.ServiceQuotation = _ServiceQuotationTP.ServiceQuotation |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Service Quotation Item Price Element - TP | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceQuotation | I_ServiceDocumentEnhcd | ServiceDocument | |
| KEY | ServiceQuotationItem | |||
| KEY | PricingProcedureStep | I_PricingElement | PricingProcedureStep | |
| KEY | PricingProcedureCounter | I_PricingElement | PricingProcedureCounter | |
| PrcgProcedureCounterForHeader | I_PricingElement | PrcgProcedureCounterForHeader | ||
| ConditionType | I_PricingElement | ConditionType | ||
| ConditionRateValue | I_PricingElement | ConditionRateValue | ||
| ConditionCurrency | I_PricingElement | ConditionCurrency | ||
| ConditionQuantity | I_PricingElement | ConditionQuantity | ||
| ConditionQuantityUnit | I_PricingElement | ConditionQuantityUnit | ||
| ConditionInactiveReason | I_PricingElement | ConditionInactiveReason | ||
| _ServiceQuotationItemTP | _ServiceQuotationItemTP | |||
| _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 Item Price Element - TP'
@ObjectModel: {
usageType: {dataClass: #TRANSACTIONAL,
serviceQuality: #B,
sizeCategory: #L}
}
// @Metadata.allowExtensions: true
define view entity R_SrvcQtanItemPriceElementTP
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_ServiceQuotationItemTP as _ServiceQuotationItemTP on $projection.ServiceQuotation = _ServiceQuotationItemTP.ServiceQuotation
and $projection.ServiceQuotationItem = _ServiceQuotationItemTP.ServiceQuotationItem
association [1..1] to R_ServiceQuotationTP as _ServiceQuotationTP on $projection.ServiceQuotation = _ServiceQuotationTP.ServiceQuotation
{
@ObjectModel.foreignKey.association: '_ServiceQuotationTP'
key ServiceQuotation.ServiceDocument as ServiceQuotation,
@ObjectModel.foreignKey.association: '_ServiceQuotationItemTP'
key cast(PricingElement.PricingDocumentItem as crms4_number_int preserving type) as ServiceQuotationItem,
key PricingElement.PricingProcedureStep as PricingProcedureStep,
key PricingElement.PricingProcedureCounter as PricingProcedureCounter,
PricingElement.PrcgProcedureCounterForHeader as PrcgProcedureCounterForHeader,
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,
@ObjectModel.foreignKey.association: '_ConditionInactiveReason'
PricingElement.ConditionInactiveReason as ConditionInactiveReason,
// Associations
_ServiceQuotationItemTP,
_ServiceQuotationTP,
PricingElement._ConditionQuantityUnit as _ConditionQuantityUnit,
PricingElement._ConditionInactiveReason as _ConditionInactiveReason
}
where
ServiceQuotation.ServiceObjectType = 'BUS2000116'
and PricingElement.PricingDocumentItem is not initial
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PRICINGELEMENT",
"I_SERVICEDOCUMENTENHCD"
],
"ASSOCIATED":
[
"I_CONDITIONINACTIVEREASON",
"I_UNITOFMEASURE",
"R_SERVICEQUOTATIONITEMTP",
"R_SERVICEQUOTATIONTP"
],
"BASE":
[
"I_PRICINGELEMENT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA