R_SrvcOrdLongTextTP
Long Text for Service Order
R_SrvcOrdLongTextTP is a Transactional CDS View that provides data about "Long Text for Service Order" in SAP S/4HANA. It reads from 2 data sources (I_ServiceDocument, I_ServiceDocumentLongText) and exposes 18 fields with key fields ServiceOrder, TextObjectType, Language, SrvcDocLogTextIdentifier.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocument | ServiceOrder | inner |
| I_ServiceDocumentLongText | ServiceText | from |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Long Text for Service Order | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceOrder | I_ServiceDocumentLongText | ServiceDocument | |
| KEY | TextObjectType | I_ServiceDocumentLongText | TextObjectType | |
| KEY | Language | I_ServiceDocumentLongText | Language | |
| KEY | SrvcDocLogTextIdentifier | I_ServiceDocumentLongText | SrvcDocLogTextIdentifier | |
| TextObjectCategory | I_ServiceDocumentLongText | TextObjectCategory | ||
| ServiceDocumentLongTextUUID | I_ServiceDocumentLongText | ServiceDocumentLongTextUUID | ||
| ServiceObjectType | I_ServiceDocumentLongText | ServiceObjectType | ||
| ServiceOrderUUID | _ServiceOrderTP | ServiceOrderUUID | ||
| SrvcDocLongTextMimeType | I_ServiceDocumentLongText | SrvcDocLongTextMimeType | ||
| ServiceOrderLongText | I_ServiceDocumentLongText | ServiceDocumentLongText | ||
| ReferenceTextObjectCategory | I_ServiceDocumentLongText | ReferenceTextObjectCategory | ||
| ReferenceTextObjectType | I_ServiceDocumentLongText | ReferenceTextObjectType | ||
| ReferenceLongTextKey | I_ServiceDocumentLongText | ReferenceLongTextKey | ||
| SrvcDocLongTxtCreationDateTime | I_ServiceDocumentLongText | SrvcDocLongTxtCreationDateTime | ||
| SrvcDocLongTextCreatedByUser | I_ServiceDocumentLongText | SrvcDocLongTextCreatedByUser | ||
| SrvcDocLongTextChangedDateTime | I_ServiceDocumentLongText | SrvcDocLongTextChangedDateTime | ||
| SrvcDocLongTextChangedByUser | I_ServiceDocumentLongText | SrvcDocLongTextChangedByUser | ||
| _ServiceOrderTP | _ServiceOrderTP |
@EndUserText.label: 'Long Text for Service Order'
@VDM: {
viewType: #TRANSACTIONAL,
lifecycle.contract.type: #SAP_INTERNAL_API
}
@AccessControl: {
authorizationCheck: #MANDATORY,
personalData.blocking: #('TRANSACTIONAL_DATA')
}
@Metadata: {
ignorePropagatedAnnotations: true
}
@ObjectModel: {
usageType: {dataClass: #TRANSACTIONAL,
serviceQuality: #C,
sizeCategory: #L}
}
define view entity R_SrvcOrdLongTextTP
as select from I_ServiceDocumentLongText as ServiceText
inner join I_ServiceDocument as ServiceOrder on ServiceText.ServiceDocument = ServiceOrder.ServiceDocument
and ServiceText.ServiceDocumentItem = '000000'
and ServiceText.TextObjectCategory = 'CRM_ORDERH'
and ServiceOrder.ServiceObjectType = 'BUS2000116'
and ServiceOrder.ServiceDocumentIsQuotation is initial
and ServiceOrder.ServiceDocumentTemplateType is initial
association to parent R_ServiceOrderTP as _ServiceOrderTP on $projection.ServiceOrder = _ServiceOrderTP.ServiceOrder
{
key ServiceText.ServiceDocument as ServiceOrder,
key ServiceText.TextObjectType,
key ServiceText.Language,
key ServiceText.SrvcDocLogTextIdentifier,
ServiceText.TextObjectCategory,
ServiceText.ServiceDocumentLongTextUUID,
ServiceText.ServiceObjectType,
_ServiceOrderTP.ServiceOrderUUID,
ServiceText.SrvcDocLongTextMimeType,
@Semantics.text:true
ServiceText.ServiceDocumentLongText as ServiceOrderLongText,
ServiceText.ReferenceTextObjectCategory,
ServiceText.ReferenceTextObjectType,
ServiceText.ReferenceLongTextKey,
ServiceText.SrvcDocLongTxtCreationDateTime,
ServiceText.SrvcDocLongTextCreatedByUser,
ServiceText.SrvcDocLongTextChangedDateTime,
ServiceText.SrvcDocLongTextChangedByUser,
/* Associations */
_ServiceOrderTP
}
where
ServiceText.ServiceObjectType = 'BUS2000116'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SERVICEDOCUMENT",
"I_SERVICEDOCUMENTLONGTEXT",
"R_SERVICEORDERTP"
],
"ASSOCIATED":
[
"R_SERVICEORDERTP"
],
"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