I_CFinBillingDocument

DDL: I_CFINBILLINGDOCUMENT Type: view COMPOSITE

CFin Billing Document: Header

I_CFinBillingDocument is a Composite CDS View that provides data about "CFin Billing Document: Header" in SAP S/4HANA. It reads from 2 data sources (I_BillingDocument, I_CFinRpldBillingDocument) and exposes 54 fields with key fields SenderLogicalSystem, CentralFinanceBillingDocument, CentralFinanceBillingDocument. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_BillingDocument I_BillingDocument union_all
I_CFinRpldBillingDocument I_CFinRpldBillingDocument from

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_CFinBillingDocumentItem _Item $projection.SenderLogicalSystem = _Item.SenderLogicalSystem and $projection.CentralFinanceBillingDocument = _Item.CentralFinanceBillingDocument
[0..1] I_LogicalSystem _LogicalSystem $projection.SenderLogicalSystem = _LogicalSystem.LogicalSystem

Annotations (11)

NameValueLevelField
EndUserText.label CFin Billing Document: Header view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName ICFINCIROOT view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view

Fields (54)

KeyFieldSource TableSource FieldDescription
KEY SenderLogicalSystem SenderLogicalSystem
KEY CentralFinanceBillingDocument
SoldToParty SoldToParty
CreationDate CreationDate
CompanyCode CompanyCode
SDDocumentCategory SDDocumentCategory
CancelledBillingDocument CancelledBillingDocument
BillingDocumentDate BillingDocumentDate
TransactionCurrency TransactionCurrency
AccountingExchangeRate AccountingExchangeRate
ExchangeRateDate ExchangeRateDate
PayerParty PayerParty
AdditionalValueDays AdditionalValueDays
SDPricingProcedure SDPricingProcedure
PricingDocument PricingDocument
TaxDepartureCountry TaxDepartureCountry
BillingDocumentIsCancelled BillingDocumentIsCancelled
VATRegistrationOrigin VATRegistrationOrigin
BillingDocumentCategory BillingDocumentCategory
_SDDocumentCategory _SDDocumentCategory
_TransactionCurrency _TransactionCurrency
_PayerParty _PayerParty
_TaxDepartureCountry _TaxDepartureCountry
_CompanyCode _CompanyCode
_Item _Item
_LogicalSystem _LogicalSystem
_VATRegistrationOrigin _VATRegistrationOrigin
KEY CentralFinanceBillingDocument
SoldToParty SoldToParty
CreationDate CreationDate
CompanyCode CompanyCode
SDDocumentCategory SDDocumentCategory
CancelledBillingDocument CancelledBillingDocument
BillingDocumentDate BillingDocumentDate
TransactionCurrency TransactionCurrency
AccountingExchangeRate AccountingExchangeRate
ExchangeRateDate ExchangeRateDate
PayerParty PayerParty
AdditionalValueDays AdditionalValueDays
SDPricingProcedure SDPricingProcedure
PricingDocument PricingDocument
TaxDepartureCountry TaxDepartureCountry
BillingDocumentIsCancelled BillingDocumentIsCancelled
VATRegistrationOrigin VATRegistrationOrigin
BillingDocumentCategory BillingDocumentCategory
_SDDocumentCategory _SDDocumentCategory
_TransactionCurrency _TransactionCurrency
_PayerParty _PayerParty
_TaxDepartureCountry _TaxDepartureCountry
_CompanyCode _CompanyCode
_Item _Item
_LogicalSystem _LogicalSystem
_VATRegistrationOrigin _VATRegistrationOrigin
_BillingDocumentCategory _BillingDocumentCategory
@EndUserText.label: 'CFin Billing Document: Header'
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM: {
  viewType: #COMPOSITE,
  lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@AccessControl: {
  authorizationCheck: #NOT_REQUIRED,
  personalData.blocking: #('TRANSACTIONAL_DATA')
}
@AbapCatalog: {
  sqlViewName: 'ICFINCIROOT',
  preserveKey: true,
  compiler.compareFilter: true
}
@ObjectModel: {
   usageType: {
     dataClass:      #TRANSACTIONAL,
     serviceQuality: #C,
     sizeCategory:   #L
   }
}
define view I_CFinBillingDocument
  as select from I_CFinRpldBillingDocument
  //association [1] to target_data_source_name as _association_name on data_source_name.element_name = _association_name.target_element_name

  association [0..*] to I_CFinBillingDocumentItem as _Item      on $projection.SenderLogicalSystem           = _Item.SenderLogicalSystem
                                                               and $projection.CentralFinanceBillingDocument = _Item.CentralFinanceBillingDocument
{

  key   SenderLogicalSystem,
  key   cast( CFinReplicatedBillingDocument as fins_cfin_av_billing_document preserving type ) as CentralFinanceBillingDocument,

        SoldToParty,
        CreationDate,
        CompanyCode,
        SDDocumentCategory,
        CancelledBillingDocument,
        BillingDocumentDate,
        TransactionCurrency,
        AccountingExchangeRate,
        ExchangeRateDate,
        PayerParty,
        AdditionalValueDays,
        SDPricingProcedure,
        PricingDocument,
        TaxDepartureCountry,
        BillingDocumentIsCancelled,
        VATRegistrationOrigin,
        BillingDocumentCategory,

        // association

        _SDDocumentCategory,
        _TransactionCurrency,
        _PayerParty,
        _TaxDepartureCountry,
        _CompanyCode,
        _Item,
        _LogicalSystem,
        _VATRegistrationOrigin,
        _BillingDocumentCategory

}
union all select from I_BillingDocument
association [0..*] to I_CFinBillingDocumentItem as _Item          on  $projection.SenderLogicalSystem           = _Item.SenderLogicalSystem
                                                                  and $projection.CentralFinanceBillingDocument = _Item.CentralFinanceBillingDocument
association [0..1] to I_LogicalSystem           as _LogicalSystem on  $projection.SenderLogicalSystem = _LogicalSystem.LogicalSystem
{
      @ObjectModel.foreignKey.association: '_LogicalSystem'
  key cast( '          ' as logsys preserving type  )                          as SenderLogicalSystem,
  key cast( BillingDocument as fins_cfin_av_billing_document preserving type ) as CentralFinanceBillingDocument,

      SoldToParty,
      CreationDate,
      CompanyCode,
      SDDocumentCategory,
      CancelledBillingDocument,
      BillingDocumentDate,
      TransactionCurrency,
      AccountingExchangeRate,
      ExchangeRateDate,
      PayerParty,
      AdditionalValueDays,
      SDPricingProcedure,
      PricingDocument,
      TaxDepartureCountry,
      BillingDocumentIsCancelled,
      VATRegistrationOrigin,
      BillingDocumentCategory,

      // association

      _SDDocumentCategory,
      _TransactionCurrency,
      _PayerParty,
      _TaxDepartureCountry,
      _CompanyCode,
      _Item,
      _LogicalSystem,
      _VATRegistrationOrigin,
      _BillingDocumentCategory
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BILLINGDOCUMENT",
"I_CFINRPLDBILLINGDOCUMENT"
],
"ASSOCIATED":
[
"I_BILLINGDOCUMENTCATEGORY",
"I_CFINBILLINGDOCUMENTITEM",
"I_COMPANYCODE",
"I_COUNTRY",
"I_CURRENCY",
"I_CUSTOMER",
"I_LOGICALSYSTEM",
"I_SDDOCUMENTCATEGORY",
"I_VATREGISTRATIONORIGIN"
],
"BASE":
[
"I_CFINRPLDBILLINGDOCUMENT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/