A_ServiceOrderItemPriceElement
Price Element of Service Order Item
A_ServiceOrderItemPriceElement is a Composite CDS View that provides data about "Price Element of Service Order Item" in SAP S/4HANA. It reads from 2 data sources (I_PricingElement, I_ServiceDocumentEnhcd) and exposes 10 fields with key fields ServiceOrder, ServiceOrderItem, PricingProcedureStep, PricingProcedureCounter. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_PricingElement | PricingElement | from |
| I_ServiceDocumentEnhcd | ServiceOrder | inner |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | A_ServiceOrder | _ServiceOrder | $projection.ServiceOrder = _ServiceOrder.ServiceOrder |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Price Element of Service Order Item | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| AbapCatalog.sqlViewName | ASRVORDITMPRELEM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceOrder | I_ServiceDocumentEnhcd | ServiceDocument | |
| KEY | ServiceOrderItem | |||
| KEY | PricingProcedureStep | PricingProcedureStep | ||
| KEY | PricingProcedureCounter | PricingProcedureCounter | ||
| ConditionType | ConditionType | |||
| ConditionRateValue | ConditionRateValue | |||
| ConditionCurrency | ConditionCurrency | |||
| ConditionQuantity | ConditionQuantity | |||
| ConditionQuantityUnit | ConditionQuantityUnit | |||
| _ServiceOrder | _ServiceOrder |
@ClientHandling.algorithm:#SESSION_VARIABLE
@EndUserText.label: 'Price Element of Service Order Item'
@VDM: {
viewType: #COMPOSITE,
lifecycle.contract.type: #PUBLIC_REMOTE_API
}
@AbapCatalog: {
sqlViewName: 'ASRVORDITMPRELEM',
compiler.compareFilter: true,
preserveKey: true
}
@AccessControl: {
authorizationCheck: #CHECK,
personalData.blocking: #('TRANSACTIONAL_DATA')
}
@ObjectModel: {
createEnabled: true,
updateEnabled: true,
usageType: {
dataClass: #TRANSACTIONAL,
serviceQuality: #B,
sizeCategory: #XXL
}
}
@Metadata.ignorePropagatedAnnotations: true
define view A_ServiceOrderItemPriceElement
as select from I_PricingElement as PricingElement
inner join I_ServiceDocumentEnhcd as ServiceOrder on ServiceOrder.PricingDocument = PricingElement.PricingDocument
and ServiceOrder.ServiceObjectType = 'BUS2000116'
association [1..1] to A_ServiceOrder as _ServiceOrder on $projection.ServiceOrder = _ServiceOrder.ServiceOrder
{
@ObjectModel.readOnly: true
key ServiceOrder.ServiceDocument as ServiceOrder,
key cast(PricingDocumentItem as crms4_number_int preserving type) as ServiceOrderItem,
key PricingProcedureStep,
key PricingProcedureCounter,
ConditionType,
//@ObjectModel.readOnly: true
//PricingDateTime,
//@ObjectModel.readOnly: true
//ConditionCalculationType,
//@ObjectModel.readOnly: true
//ConditionBaseValue,
ConditionRateValue,
ConditionCurrency,
//PriceDetnExchangeRate,
@Semantics.quantity.unitOfMeasure: 'ConditionQuantityUnit'
ConditionQuantity,
@Semantics.unitOfMeasure: true
ConditionQuantityUnit,
//Expose associations
_ServiceOrder
}
where
PricingDocumentItem != '000000' //Ignore Header conditions
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PRICINGELEMENT",
"I_SERVICEDOCUMENTENHCD"
],
"ASSOCIATED":
[
"A_SERVICEORDER"
],
"BASE":
[],
"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