R_CFinRpldBillingDocumentItem
CFin Replicated Billing Document Item
R_CFinRpldBillingDocumentItem is a Basic CDS View that provides data about "CFin Replicated Billing Document Item" in SAP S/4HANA. It reads from 1 data source (cfin_av_ci_item) and exposes 48 fields with key field CFinRpldBillingDocItemUUID. It has 11 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| cfin_av_ci_item | cfin_av_ci_item | from |
Associations (11)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | R_CFinRpldBillingDocument | _CFinRpldBillingDocument | $projection.CFinRpldBillingDocumentUUID = _CFinRpldBillingDocument.CFinRpldBillingDocumentUUID |
| [0..1] | I_LogicalSystem | _LogicalSystem | $projection.SourceSystemLogicalSystem = _LogicalSystem.LogicalSystem |
| [0..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [0..*] | I_MaterialText | _MaterialText | $projection.Material = _MaterialText.Material |
| [0..1] | I_Currency | _TransactionCurrency | $projection.TransactionCurrency = _TransactionCurrency.Currency |
| [0..1] | I_UnitOfMeasure | _BillingQuantityUnit | $projection.BillingQuantityUnit = _BillingQuantityUnit.UnitOfMeasure |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_SDDocumentCategory | _ReferenceSDDocumentCategory | $projection.ReferenceSDDocumentCategory = _ReferenceSDDocumentCategory.SDDocumentCategory |
| [0..1] | I_BillingPlanRule | _BillingPlanRule | $projection.BillingPlanRule = _BillingPlanRule.BillingPlanRule |
| [0..1] | I_UnitOfMeasure | _BaseUnit | $projection.BaseUnit = _BaseUnit.UnitOfMeasure |
| [0..1] | I_WBSElementBasicData | _WBSElementBasicData | $projection.WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | CFin Replicated Billing Document Item | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (48)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CFinRpldBillingDocItemUUID | cfin_av_ci_item | av_dbkey | DB Key |
| CFinRpldBillgDocItmParUUID | cfin_av_ci_item | av_parentkey | Parent Key | |
| CFinRpldBillingDocumentUUID | cfin_av_ci_item | av_rootkey | Root Key | |
| SourceSystemLogicalSystem | cfin_av_ci_item | fins_logsys | Logical system | |
| CFinReplicatedBillingDocument | ||||
| CFinRpldBillingDocumentItem | ||||
| Material | cfin_av_ci_item | matnr | Vehicle Model | |
| NetAmount | cfin_av_ci_item | netwr | Value | |
| TransactionCurrency | _CFinRpldBillingDocument | TransactionCurrency | Transaction Currency | |
| ReturnItemProcessingType | cfin_av_ci_item | shkzg | Returns | |
| BillingQuantity | cfin_av_ci_item | fkimg | Invoiced Qty | |
| BillingQuantityUnit | cfin_av_ci_item | vrkme | UoM for SubItm CCD | |
| Plant | cfin_av_ci_item | werks | Receiving Plant | |
| ReferenceSDDocumentCategory | cfin_av_ci_item | vgtyp | Trans. Type | |
| BillingPlanRule | cfin_av_ci_item | fareg | Billing Rule | |
| BillingQuantityInBaseUnit | cfin_av_ci_item | fklmg | Bill.Qty in SKU | |
| BaseUnit | cfin_av_ci_item | meins | Valuation Unit | |
| CFinReplicatedSalesDocument | cfin_av_ci_item | aubel | Trigger doc | |
| CFinRpldSalesDocumentItem | cfin_av_ci_item | aupos | Item | |
| ZeroVATRsn | cfin_av_ci_item | j_1arfz | Reason for Zero VAT | |
| ReferenceSDDocument | cfin_av_ci_item | vgbel | Reference Doc. | |
| WBSElementInternalID | ||||
| ControllingArea | cfin_av_ci_item | kokrs | Org. Value | |
| CostCenter | cfin_av_ci_item | kostl | Substitute CC | |
| ProfitCenter | cfin_av_ci_item | prctr | Profit Centers | |
| DepartureCountry | cfin_av_ci_item | aland | Dep. Ctry/Reg. | |
| TaxJurisdiction | cfin_av_ci_item | txjcd | Tax Jurisdict. | |
| BillingDocumentItemText | cfin_av_ci_item | arktx | Short Text | |
| TaxCode | cfin_av_ci_item | mwsk1 | Tax Code | |
| TaxRateValidityStartDate | cfin_av_ci_item | txdat_from | Tax Rate Valid-From | |
| TaxAmount | cfin_av_ci_item | mwsbp | Tax Amount | |
| Subtotal1Amount | cfin_av_ci_item | kzwi1 | Subtotal 1 | |
| Subtotal2Amount | cfin_av_ci_item | kzwi2 | Subtotal 2 | |
| Subtotal3Amount | cfin_av_ci_item | kzwi3 | Subtotal 3 | |
| Subtotal4Amount | cfin_av_ci_item | kzwi4 | Subtotal 4 | |
| Subtotal5Amount | cfin_av_ci_item | kzwi5 | Subtotal 5 | |
| Subtotal6Amount | cfin_av_ci_item | kzwi6 | Subtotal 6 | |
| _CFinRpldBillingDocument | _CFinRpldBillingDocument | |||
| _MaterialText | _MaterialText | |||
| _Material | _Material | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _BillingQuantityUnit | _BillingQuantityUnit | |||
| _Plant | _Plant | |||
| _ReferenceSDDocumentCategory | _ReferenceSDDocumentCategory | |||
| _BillingPlanRule | _BillingPlanRule | |||
| _BaseUnit | _BaseUnit | |||
| _WBSElementBasicData | _WBSElementBasicData | |||
| _LogicalSystem | _LogicalSystem |
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 R_CFinRpldBillingDocumentItem.
-- 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 R_CFinRpldBillingDocumentItem AS
SELECT
cfin_av_ci_item.av_dbkey AS CFinRpldBillingDocItemUUID,
cfin_av_ci_item.av_parentkey AS CFinRpldBillgDocItmParUUID,
cfin_av_ci_item.av_rootkey AS CFinRpldBillingDocumentUUID,
cfin_av_ci_item.fins_logsys AS SourceSystemLogicalSystem,
cast( cfin_av_ci_item.vbeln as fins_cfin_av_rpld_billing_doc preserving type ) AS CFinReplicatedBillingDocument,
cast( cfin_av_ci_item.posnr as fins_cfin_av_rpld_bill_doc_itm preserving type ) AS CFinRpldBillingDocumentItem,
cfin_av_ci_item.matnr AS Material,
cfin_av_ci_item.netwr AS NetAmount,
_CFinRpldBillingDocument.TransactionCurrency AS TransactionCurrency,
cfin_av_ci_item.shkzg AS ReturnItemProcessingType,
cfin_av_ci_item.fkimg AS BillingQuantity,
cfin_av_ci_item.vrkme AS BillingQuantityUnit,
cfin_av_ci_item.werks AS Plant,
cfin_av_ci_item.vgtyp AS ReferenceSDDocumentCategory,
cfin_av_ci_item.fareg AS BillingPlanRule,
cfin_av_ci_item.fklmg AS BillingQuantityInBaseUnit,
cfin_av_ci_item.meins AS BaseUnit,
cfin_av_ci_item.aubel AS CFinReplicatedSalesDocument,
cfin_av_ci_item.aupos AS CFinRpldSalesDocumentItem,
cfin_av_ci_item.j_1arfz AS ZeroVATRsn,
cfin_av_ci_item.vgbel AS ReferenceSDDocument,
cast( cfin_av_ci_item.ps_psp_pnr as ps_s4_pspnr preserving type ) AS WBSElementInternalID,
cfin_av_ci_item.kokrs AS ControllingArea,
cfin_av_ci_item.kostl AS CostCenter,
cfin_av_ci_item.prctr AS ProfitCenter,
cfin_av_ci_item.aland AS DepartureCountry,
cfin_av_ci_item.txjcd AS TaxJurisdiction,
cfin_av_ci_item.arktx AS BillingDocumentItemText,
cfin_av_ci_item.mwsk1 AS TaxCode,
cfin_av_ci_item.txdat_from AS TaxRateValidityStartDate,
cfin_av_ci_item.mwsbp AS TaxAmount,
cfin_av_ci_item.kzwi1 AS Subtotal1Amount,
cfin_av_ci_item.kzwi2 AS Subtotal2Amount,
cfin_av_ci_item.kzwi3 AS Subtotal3Amount,
cfin_av_ci_item.kzwi4 AS Subtotal4Amount,
cfin_av_ci_item.kzwi5 AS Subtotal5Amount,
cfin_av_ci_item.kzwi6 AS Subtotal6Amount
FROM cfin_av_ci_item
LEFT OUTER JOIN R_CFinRpldBillingDocument AS _CFinRpldBillingDocument ON CFinRpldBillingDocumentUUID = _CFinRpldBillingDocument.CFinRpldBillingDocumentUUID -- association [1..1]
LEFT OUTER JOIN I_LogicalSystem AS _LogicalSystem ON SourceSystemLogicalSystem = _LogicalSystem.LogicalSystem -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [0..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Material = _MaterialText.Material -- association [0..*]
LEFT OUTER JOIN I_Currency AS _TransactionCurrency ON TransactionCurrency = _TransactionCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BillingQuantityUnit ON BillingQuantityUnit = _BillingQuantityUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_SDDocumentCategory AS _ReferenceSDDocumentCategory ON ReferenceSDDocumentCategory = _ReferenceSDDocumentCategory.SDDocumentCategory -- association [0..1]
LEFT OUTER JOIN I_BillingPlanRule AS _BillingPlanRule ON BillingPlanRule = _BillingPlanRule.BillingPlanRule -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElementBasicData ON WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID -- association [0..1]
;
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