R_SrvcOrdLongTextTP

DDL: R_SRVCORDLONGTEXTTP Type: view_entity TRANSACTIONAL

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)

SourceAliasJoin Type
I_ServiceDocument ServiceOrder inner
I_ServiceDocumentLongText ServiceText from

Annotations (8)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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":""
}
}*/