A_BillingDocumentText

DDL: A_BILLINGDOCUMENTTEXT Type: view COMPOSITE Package: ODATA_SD_BIL_BD_API_V2

Header Text

A_BillingDocumentText is a Composite CDS View that provides data about "Header Text" in SAP S/4HANA. It reads from 2 data sources (I_BillingDocument, P_BillingDocumentText) and exposes 8 fields with key fields BillingDocument, Language, LongTextID. It has 1 association to related views. Part of development package ODATA_SD_BIL_BD_API_V2.

Data Sources (2)

SourceAliasJoin Type
I_BillingDocument BillingDocument inner
P_BillingDocumentText P_BillingDocumentText from

Associations (1)

CardinalityTargetAliasCondition
[1..1] A_BillingDocument _BillingDocument _BillingDocument.BillingDocument = $projection.BillingDocument

Annotations (15)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Header Text view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
AbapCatalog.sqlViewName ASDBILTEXT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.createEnabled false view
ObjectModel.updateEnabled false view
ObjectModel.deleteEnabled false view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
Metadata.ignorePropagatedAnnotations true view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY BillingDocument I_BillingDocument BillingDocument
KEY Language Language
KEY LongTextID LongTextID
LongText LongText
BillingDocumentType I_BillingDocument BillingDocumentType
SalesOrganization I_BillingDocument SalesOrganization
DistributionChannel I_BillingDocument DistributionChannel
_BillingDocument _BillingDocument
@ClientHandling.algorithm:#SESSION_VARIABLE
@EndUserText.label: 'Header Text'
@VDM: {
  viewType: #COMPOSITE,
  lifecycle.contract.type: #PUBLIC_REMOTE_API
}
@AbapCatalog: {
sqlViewName:  'ASDBILTEXT',
compiler.compareFilter: true,
preserveKey:true
}

@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking: #('TRANSACTIONAL_DATA')
}

@ObjectModel: {
   createEnabled: false,
   updateEnabled: false,
   deleteEnabled: false,
   usageType: {
    dataClass: #TRANSACTIONAL,
    serviceQuality: #C,
    sizeCategory: #XL
   }
}
@Metadata.ignorePropagatedAnnotations: true

define view A_BillingDocumentText
  as select from P_BillingDocumentText( P_SAPClient : $session.client, P_td_object : 'VBBK' ) as BillingText
    inner join   I_BillingDocument                                 as BillingDocument on  BillingDocument.BillingDocument = BillingText.BillingDocument
                                                                                               
  association [1..1] to A_BillingDocument as _BillingDocument on _BillingDocument.BillingDocument = $projection.BillingDocument
{
      @ObjectModel.readOnly: true
  key BillingDocument.BillingDocument,

  key Language,
  key LongTextID,
      @ObjectModel.virtualElement
      @ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_SD_BIL_S4H_STXL_BILDOC'
      LongText,

      // For Access control

      @Consumption.hidden: true
      BillingDocument.BillingDocumentType,
      @Consumption.hidden: true
      BillingDocument.SalesOrganization,
      @Consumption.hidden: true
      BillingDocument.DistributionChannel,

      _BillingDocument // Make association public

}

where BillingDocument.BillingDocumentIsTemporary = ' '