I_BillingDocumentType_2

DDL: I_BILLINGDOCUMENTTYPE_2 Type: view_entity BASIC

Billing Document Type

I_BillingDocumentType_2 is a Basic CDS View (Dimension) that provides data about "Billing Document Type" in SAP S/4HANA. It reads from 1 data source (I_BillingProcessDocumentType) and exposes 11 fields with key field BillingDocumentType.

Data Sources (1)

SourceAliasJoin Type
I_BillingProcessDocumentType I_BillingProcessDocumentType from

Annotations (17)

NameValueLevelField
AbapCatalog.entityBuffer.definitionAllowed true view
AccessControl.authorizationCheck #NOT_REQUIRED view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
Analytics.internalName #LOCAL view
Consumption.ranked true view
EndUserText.label Billing Document Type view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.representativeKey BillingDocumentType view
ObjectModel.sapObjectNodeType.name BillingDocumentType view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
Search.searchable true view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY BillingDocumentType
SDDocumentCategory SDDocumentCategory
IncrementItemNumber IncrementItemNumber
BillingDocumentCategory BillingDocumentCategory
BillgDocTextDetnProcedure
BillgDocItemTextDetnProcedure
_Text _Text
_SDDocumentCategory _SDDocumentCategory
_BillingDocumentCategory _BillingDocumentCategory
_BillgDocTextDetnProcedure _BillgProcDocTxtDetnProcedure
_BillgDocItemTextDetnProcedure _BillgProcDocItmTxtDetnProced
@AbapCatalog.entityBuffer.definitionAllowed: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Analytics.dataCategory: #DIMENSION
@Analytics.dataExtraction.enabled: true
@Analytics.internalName: #LOCAL
@Consumption.ranked: true
@EndUserText.label: 'Billing Document Type'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION
@ObjectModel.representativeKey: 'BillingDocumentType'
@ObjectModel.sapObjectNodeType.name: 'BillingDocumentType'
@ObjectModel.supportedCapabilities: [ #ANALYTICAL_DIMENSION,
                                      #CDS_MODELING_DATA_SOURCE,
                                      #CDS_MODELING_ASSOCIATION_TARGET,
                                      #SQL_DATA_SOURCE,
                                      #SEARCHABLE_ENTITY,
                                      #EXTRACTION_DATA_SOURCE ]
@ObjectModel.usageType: { dataClass: #CUSTOMIZING, serviceQuality: #A, sizeCategory: #S }
@Search.searchable: true
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #BASIC

define root view entity I_BillingDocumentType_2
  as select from I_BillingProcessDocumentType

  composition of exact one to many I_BillingDocumentTypeText_2 as _Text

{
      @Search.defaultSearchElement: true
      @Search.ranking: #HIGH
      @ObjectModel.text.association: '_Text'
  key cast ( BillingProcessDocumentType as billingdocumenttype preserving type)              as BillingDocumentType,
      @ObjectModel.foreignKey.association: '_SDDocumentCategory'
      SDDocumentCategory,
      IncrementItemNumber,
      @ObjectModel.foreignKey.association: '_BillingDocumentCategory'
      BillingDocumentCategory,
      @ObjectModel.foreignKey.association: '_BillgDocTextDetnProcedure'
      cast ( BillgProcDocTxtDetnProcedure as billgdoctextdetnprocedure preserving type)      as BillgDocTextDetnProcedure,
      @ObjectModel.foreignKey.association: '_BillgDocItemTextDetnProcedure'
      cast ( BillgProcDocItmTxtDetnProced as billgdocitemtextdetnprocedure preserving type ) as BillgDocItemTextDetnProcedure,

      _Text,
      _SDDocumentCategory,
      _BillingDocumentCategory,
      _BillgProcDocTxtDetnProcedure                                                          as _BillgDocTextDetnProcedure,
      _BillgProcDocItmTxtDetnProced                                                          as _BillgDocItemTextDetnProcedure
}
where
     SDDocumentCategory = 'M' // Invoice

  or SDDocumentCategory = 'N' // Invoice Canceled

  or SDDocumentCategory = 'O' // Credit Memo

  or SDDocumentCategory = 'P' // Debit Memo

  or SDDocumentCategory = 'S' // Credit Memo Canceled

  or SDDocumentCategory = 'U' // Pro Forma Invoice

  or SDDocumentCategory = '5' // Intercompany Invoice

  or SDDocumentCategory = '6' // Intercompany Credit Memo

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BILLINGPROCESSDOCUMENTTYPE"
],
"ASSOCIATED":
[
"I_BILLINGDOCUMENTCATEGORY",
"I_BILLINGDOCUMENTTYPETEXT_2",
"I_SDDOCUMENTCATEGORY",
"I_SDDOCUMENTTEXTDETNPROCEDURE"
],
"BASE":
[
"I_BILLINGPROCESSDOCUMENTTYPE"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/