I_ServiceDocumentItemSuccessor
Service Document Item Successor
I_ServiceDocumentItemSuccessor is a Basic CDS View that provides data about "Service Document Item Successor" in SAP S/4HANA. It reads from 1 data source (crmd_brelvonai) and exposes 20 fields with key fields ServiceDocumentItmRelationUUID, ServiceDocItmRltnSqncNumber. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| crmd_brelvonai | crmd_brelvonai | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_ServiceDocumentItemEnhcd | _ServiceDocItm | $projection.ServiceDocItmSuccessorUUID = _ServiceDocItm.ServiceDocumentItemUUID and $projection.ServiceDocItmSuccssrBusObjType = _ServiceDocItm.ServiceDocumentItemObjectType |
| [0..1] | I_UnitOfMeasure | _BaseUnit | $projection.SrvcDocItmDocFlowQuantityUnit = _BaseUnit.UnitOfMeasure |
| [0..1] | I_Currency | _TransactionCurrency | $projection.SrvcDocItmDocFlowCurrency = _TransactionCurrency.Currency |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Service Document Item Successor | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | I_ServiceDocumentItemSuccssr_2 | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | ISERVDOCITMSUCC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceDocumentItmRelationUUID | relationid | ||
| KEY | ServiceDocItmRltnSqncNumber | posno | ||
| ServiceDocumentItemCharUUID | objkey_a | |||
| ServiceDocItmSuccssrCharUUID | objkey_b | |||
| ServiceDocumentItmRelationType | breltyp | |||
| CharcLength | ||||
| ServiceDocumentItemUUID | ||||
| ServiceDocumentItemObjectType | objtype_a | |||
| ServiceDocumentItmRelationKind | vona_kind | |||
| ServiceDocItmSuccessorUUID | ||||
| ServiceDocItmSuccssrBusObjType | objtype_b | |||
| SrvcDocItmDocFlowQuantityUnit | quantity_unit | |||
| SrvcDocItmDocFlowQuantity | quantity | |||
| SrvcDocItmDocFlowCurrency | currency | |||
| SrvcDocumentItmDocFlowAmount | value | |||
| SrvcDocItmDocFlowBillingInfo | doc_info | |||
| SrvcDocItmDocFlowQtyIsDiffnt | qty_difference | |||
| _ServiceDocItm | _ServiceDocItm | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _BaseUnit | _BaseUnit |
@EndUserText.label: 'Service Document Item Successor'
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM: {
viewType: #BASIC,
lifecycle.contract.type: #PUBLIC_LOCAL_API,
lifecycle.status: #DEPRECATED,
lifecycle.successor: 'I_ServiceDocumentItemSuccssr_2'
}
@AccessControl: {
authorizationCheck: #CHECK,
personalData.blocking: #('TRANSACTIONAL_DATA')
}
@AbapCatalog: {
sqlViewName: 'ISERVDOCITMSUCC',
compiler.compareFilter: true ,
preserveKey: true
}
@ObjectModel: {
// representativeKey: 'ServiceDocumentItmRelationUUID',
usageType: {
dataClass: #TRANSACTIONAL,
serviceQuality: #A,
sizeCategory: #XL
}
}
//@Analytics.dataCategory: #DIMENSION
//@Metadata.allowExtensions:true
@Metadata.ignorePropagatedAnnotations: true
/*
1902 CE: Data preview might give you an error because hextobin conversion may not work on properly on junk data. Hence dump occurs.
To view the data, you have to apply the condition "CharcLength = 32" to get the results for Service scenario only.
1911 CE: DO not use hextobin converted attribute.
*/
/*
If there is any new Business object addition in service document view (e.g. BUS2000116 )
then the same business object has to be added in DCL "I_ServiceDocumentItemSuccessor" as well.
*/
/* !!!DONOT USE THIS VIEW. SOON IT IS GOING TO BE DEPRECATED!!! */
define view I_ServiceDocumentItemSuccessor
as select from crmd_brelvonai
association [1] to I_ServiceDocumentItemEnhcd as _ServiceDocItm on $projection.ServiceDocItmSuccessorUUID = _ServiceDocItm.ServiceDocumentItemUUID
and $projection.ServiceDocItmSuccssrBusObjType = _ServiceDocItm.ServiceDocumentItemObjectType
association [0..1] to I_UnitOfMeasure as _BaseUnit on $projection.SrvcDocItmDocFlowQuantityUnit = _BaseUnit.UnitOfMeasure
association [0..1] to I_Currency as _TransactionCurrency on $projection.SrvcDocItmDocFlowCurrency = _TransactionCurrency.Currency
{
key relationid as ServiceDocumentItmRelationUUID,
key posno as ServiceDocItmRltnSqncNumber,
objkey_a as ServiceDocumentItemCharUUID,
objkey_b as ServiceDocItmSuccssrCharUUID,
breltyp as ServiceDocumentItmRelationType,
/* CRMT_BRELVONAI */
length(objkey_a) as CharcLength,
hextobin(objkey_a) as ServiceDocumentItemUUID,
objtype_a as ServiceDocumentItemObjectType,
vona_kind as ServiceDocumentItmRelationKind,
hextobin(objkey_b) as ServiceDocItmSuccessorUUID,
objtype_b as ServiceDocItmSuccssrBusObjType,
@ObjectModel.foreignKey.association: '_BaseUnit'
@Semantics.unitOfMeasure:true
quantity_unit as SrvcDocItmDocFlowQuantityUnit,
//@DefaultAggregation: #SUM
@Semantics: { quantity : {unitOfMeasure: 'SrvcDocItmDocFlowQuantityUnit'} }
quantity as SrvcDocItmDocFlowQuantity,
// @ObjectModel.foreignKey.association: '_TransactionCurrency'
@API.element.releaseState: #DEPRECATED
@Semantics.currencyCode:true
currency as SrvcDocItmDocFlowCurrency,
@API.element.releaseState: #DEPRECATED
@Semantics: { amount : {currencyCode: 'SrvcDocItmDocFlowCurrency'} }
value as SrvcDocumentItmDocFlowAmount,
doc_info as SrvcDocItmDocFlowBillingInfo,
qty_difference as SrvcDocItmDocFlowQtyIsDiffnt,
//Associations
_ServiceDocItm,
_TransactionCurrency,
_BaseUnit
}
where
objtype_b like 'BUS2000%'
or objtype_b = 'VBAP'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"CRMD_BRELVONAI"
],
"ASSOCIATED":
[
"I_CURRENCY",
"I_SERVICEDOCUMENTITEMENHCD",
"I_UNITOFMEASURE"
],
"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