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 Sender Logical System
KEY CentralFinanceBillingDocument SD Document
SoldToParty SoldToParty Sold-to Party
CreationDate CreationDate Time Stamp
CompanyCode CompanyCode Receiver Company Code
SDDocumentCategory SDDocumentCategory Document Cat.
CancelledBillingDocument CancelledBillingDocument Canceld Bill.Dc
BillingDocumentDate BillingDocumentDate Billing Date
TransactionCurrency TransactionCurrency Transaction Currency
AccountingExchangeRate AccountingExchangeRate Exch.Rate Acct.
ExchangeRateDate ExchangeRateDate Translatn Date
PayerParty PayerParty Payer
AdditionalValueDays AdditionalValueDays Add. Value Days
SDPricingProcedure SDPricingProcedure Pric. Procedure
PricingDocument PricingDocument Document Condition
TaxDepartureCountry TaxDepartureCountry Tx Dep Ctry/Reg
BillingDocumentIsCancelled BillingDocumentIsCancelled Canceled
VATRegistrationOrigin VATRegistrationOrigin OriginSlsTxNo.
BillingDocumentCategory BillingDocumentCategory BillingCategory
_SDDocumentCategory _SDDocumentCategory
_TransactionCurrency _TransactionCurrency
_PayerParty _PayerParty
_TaxDepartureCountry _TaxDepartureCountry
_CompanyCode _CompanyCode
_Item _Item
_LogicalSystem _LogicalSystem
_VATRegistrationOrigin _VATRegistrationOrigin
KEY CentralFinanceBillingDocument SD Document
SoldToParty SoldToParty Sold-to Party
CreationDate CreationDate Time Stamp
CompanyCode CompanyCode Receiver Company Code
SDDocumentCategory SDDocumentCategory Document Cat.
CancelledBillingDocument CancelledBillingDocument Canceld Bill.Dc
BillingDocumentDate BillingDocumentDate Billing Date
TransactionCurrency TransactionCurrency Transaction Currency
AccountingExchangeRate AccountingExchangeRate Exch.Rate Acct.
ExchangeRateDate ExchangeRateDate Translatn Date
PayerParty PayerParty Payer
AdditionalValueDays AdditionalValueDays Add. Value Days
SDPricingProcedure SDPricingProcedure Pric. Procedure
PricingDocument PricingDocument Document Condition
TaxDepartureCountry TaxDepartureCountry Tx Dep Ctry/Reg
BillingDocumentIsCancelled BillingDocumentIsCancelled Canceled
VATRegistrationOrigin VATRegistrationOrigin OriginSlsTxNo.
BillingDocumentCategory BillingDocumentCategory BillingCategory
_SDDocumentCategory _SDDocumentCategory
_TransactionCurrency _TransactionCurrency
_PayerParty _PayerParty
_TaxDepartureCountry _TaxDepartureCountry
_CompanyCode _CompanyCode
_Item _Item
_LogicalSystem _LogicalSystem
_VATRegistrationOrigin _VATRegistrationOrigin
_BillingDocumentCategory _BillingDocumentCategory

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view I_CFinBillingDocument.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW I_CFinBillingDocument AS
SELECT
  SenderLogicalSystem,
  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
FROM I_CFinRpldBillingDocument
LEFT OUTER JOIN I_CFinBillingDocumentItem AS _Item ON SenderLogicalSystem = _Item.SenderLogicalSystem AND CentralFinanceBillingDocument = _Item.CentralFinanceBillingDocument  -- association [0..*]
LEFT OUTER JOIN I_LogicalSystem AS _LogicalSystem ON SenderLogicalSystem = _LogicalSystem.LogicalSystem  -- association [0..1]
-- UNION ALL with additional select branch(es): I_BillingDocument
;