R_SrvcQtanLongTextTP

DDL: R_SRVCQTANLONGTEXTTP Type: view_entity TRANSACTIONAL

Long Text for Service Quotation

R_SrvcQtanLongTextTP is a Transactional CDS View that provides data about "Long Text for Service Quotation" in SAP S/4HANA. It reads from 2 data sources (I_ServiceDocument, I_ServiceDocumentLongText) and exposes 17 fields with key fields ServiceQuotation, TextObjectType, Language, SrvcDocLogTextIdentifier.

Data Sources (2)

SourceAliasJoin Type
I_ServiceDocument ServiceQuotation inner
I_ServiceDocumentLongText ServiceText from

Annotations (9)

NameValueLevelField
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
ObjectModel.dataCategory #TEXT view
EndUserText.label Long Text for Service Quotation view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY ServiceQuotation 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
SrvcDocLongTextMimeType I_ServiceDocumentLongText SrvcDocLongTextMimeType
SrvcQtanLongText 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
_ServiceQuotationTP _ServiceQuotationTP
@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},
                dataCategory: #TEXT
}
@EndUserText.label: 'Long Text for Service Quotation'
define view entity R_SrvcQtanLongTextTP as select from I_ServiceDocumentLongText as ServiceText
    inner join   I_ServiceDocument         as ServiceQuotation on  ServiceText.ServiceDocument      = ServiceQuotation.ServiceDocument
                                                           and ServiceText.ServiceDocumentItem          = '000000'
                                                           and ServiceText.TextObjectCategory           = 'CRM_ORDERH'
                                                           and ServiceQuotation.ServiceObjectType           = 'BUS2000116'
                                                           and ServiceQuotation.ServiceDocumentIsQuotation  is not initial
                                                           and ServiceQuotation.ServiceDocumentTemplateType is initial

  association to parent R_ServiceQuotationTP as _ServiceQuotationTP on $projection.ServiceQuotation = _ServiceQuotationTP.ServiceQuotation

{
  key ServiceText.ServiceDocument         as ServiceQuotation,
  key ServiceText.TextObjectType,
      @Semantics.language:true
  key ServiceText.Language,
  key ServiceText.SrvcDocLogTextIdentifier,
      ServiceText.TextObjectCategory,
      
      ServiceText.ServiceDocumentLongTextUUID,
      ServiceText.ServiceObjectType,
      
      // _ServiceQuotationTP.ServiceQuotationUUID,


      ServiceText.SrvcDocLongTextMimeType,
      @Semantics.text:true
      ServiceText.ServiceDocumentLongText as SrvcQtanLongText,
      ServiceText.ReferenceTextObjectCategory,
      ServiceText.ReferenceTextObjectType,
      ServiceText.ReferenceLongTextKey,

      ServiceText.SrvcDocLongTxtCreationDateTime,
      ServiceText.SrvcDocLongTextCreatedByUser,
      ServiceText.SrvcDocLongTextChangedDateTime,
      ServiceText.SrvcDocLongTextChangedByUser,

      /* Associations */
      _ServiceQuotationTP
}
where
  ServiceText.ServiceObjectType = 'BUS2000116'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SERVICEDOCUMENT",
"I_SERVICEDOCUMENTLONGTEXT"
],
"ASSOCIATED":
[
"R_SERVICEQUOTATIONTP"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/