I_CFinBillingDocument
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)
| Source | Alias | Join Type |
|---|---|---|
| I_BillingDocument | I_BillingDocument | union_all |
| I_CFinRpldBillingDocument | I_CFinRpldBillingDocument | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_CFinBillingDocumentItem | _Item | $projection.SenderLogicalSystem = _Item.SenderLogicalSystem and $projection.CentralFinanceBillingDocument = _Item.CentralFinanceBillingDocument |
| [0..1] | I_LogicalSystem | _LogicalSystem | $projection.SenderLogicalSystem = _LogicalSystem.LogicalSystem |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA