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