I_CABillgDocSource
Quellposition des Abrechnungsbelegs
I_CABillgDocSource is a Basic CDS View that provides data about "Quellposition des Abrechnungsbelegs" in SAP S/4HANA. It reads from 1 data source (dfkkinvbill_s) and exposes 35 fields with key fields CABillgDocument, CABillgDocSourceItem. It has 11 associations to related views.
SAP Help Documentation
| Category | CDS Views for Transaction Data |
|---|
Purpose
This CDS view retrieves the source items of a billing document in Convergent Invoicing. This CDS view provides the data to answer the following business questions: On which billed items is the billing document based? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have a role with the following restriction types set to read access: BEGRU_KKINVBIL Authorization Groups for Billing Documents BUKRS Company Code You can use the Display Restriction Types app to find out in which business catalogs these restriction types are included.
Structure
Important Fields Important fields in this view include the following: Field Name Description CABillgDocument Billing Document CABillgDocSourceItem Source Item
Data Extraction
Data Extraction Type This CDS view is enabled for data extraction in full mode as well as in delta mode. Deltas are determined automatically by change data capture.
This CDS view retrieves the source items of a billing document in Convergent Invoicing. This CDS view provides the data to answer the following business questions: On which billed items is the billing document based? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have a role with the following restriction types set to read access: BEGRU_KKINVBIL Authorization Groups for Billing Documents BUKRS Company Code You can use the Display Restriction Types app to find out in which business catalogs these restriction types are included.
Structure
Important Fields Important fields in this view include the following: Field Name Description CABillgDocument Billing Document CABillgDocSourceItem Source Item
Data Extraction
Data Extraction Type This CDS view is enabled for data extraction in full mode as well as in delta mode. Deltas are determined automatically by change data capture.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| dfkkinvbill_s | invbill_s | from |
Associations (11)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CABillgDocHeader | _CABillgDocHeader | $projection.CABillgDocument = _CABillgDocHeader.CABillgDocument |
| [0..1] | I_CACnsmpnItmClass | _CACnsmpnItmClass | $projection.CACnsmpnItmClass = _CACnsmpnItmClass.CACnsmpnItmClass |
| [0..1] | I_CABllbleItmClass | _CABllbleItmClass | $projection.CABllbleItmClass = _CABllbleItmClass.CABllbleItmClass |
| [0..1] | I_CABllbleItmType | _CABllbleItmType | $projection.CABllbleItmType = _CABllbleItmType.CABllbleItmType |
| [0..1] | I_CABllbleItmSrceTransType | _CABllbleItmSrceTransType | $projection.CABllbleItmSourceTransType = _CABllbleItmSrceTransType.CABllbleItmSourceTransType |
| [0..1] | I_CABillgSubProcess | _CABillgSubprocess | $projection.CABillgSubprocess = _CABillgSubprocess.CABillgSubprocess |
| [0..1] | I_CABillgRecordType | _CABillgRecordType | $projection.CABillgRecordType = _CABillgRecordType.CABillgRecordType |
| [0..1] | I_CABllbleItmStatus | _CABllbleItmStatus | $projection.CABllbleItmStatus = _CABllbleItmStatus.CABllbleItmStatus |
| [0..1] | I_CABllbleItmRecordType | _CABllbleItmRecordType | $projection.CABllbleItmRecordType = _CABllbleItmRecordType.CABllbleItmRecordType |
| [0..1] | I_CABillgSourceTransRefTyp | _CABillgSourceTransRefTyp | $projection.CABillgSourceTransRefType = _CABillgSourceTransRefTyp.CABillgSourceTransRefType |
| [0..1] | I_CABllbleItmPrimaryType | _CABllbleItmPrimaryType | $projection.CABllbleItmPrimaryType = _CABllbleItmPrimaryType.CABllbleItmPrimaryType |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICAINVBILL_S | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Quellposition des Abrechnungsbelegs | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CABillgDocument | billdocno | Billing Doc. | |
| KEY | CABillgDocSourceItem | billdocsrcitem | Source Item | |
| CABillgGroupingSourceItems | src_group | Source Item Grp | ||
| CABillgRecordType | billdocrectype | Record Type | ||
| CABillgIsDocumentSimulated | simulated | Simulation Doc. | ||
| CABillgDocCreationDate | crdate | Sizing Date | ||
| CACnsmpnItmClass | Class | |||
| CABllbleItmClass | bitcat | Class | ||
| CABllbleItmStatus | bitstatus | Status | ||
| CABllbleItmRecordType | bitrectype | Record Type | ||
| CABllbleItmDatabaseTable | BIT DB Table | |||
| CABillgGroupingBillableItem | bit_grpno | Bill.Items Grp | ||
| CABillgSubprocess | subprocess | Subprocess | ||
| CABllbleItmType | bittype | Bill.Item Type | ||
| CABllbleItmSourceTransType | SrcTransType | |||
| CABillgSourceTransRefType | srcreftype | Reference Type | ||
| CABillgSourceTransRef | Reference | |||
| CABllbleItmPrimary | xprimary | Primary Item | ||
| CABllbleItmPrimaryType | reltype_primary | Rel. Type | ||
| CABllbleItmOriginMonth | Month of Origin | |||
| CABllbleItmCreationMonth | Creation Month | |||
| CABllbleItmAmount | bit_amount | Amount | ||
| CABllbleItmCurrency | bit_curr | Currency | ||
| CABllbleItmNumber | Number of Items | |||
| _CABillgDocHeader | _CABillgDocHeader | |||
| _CACnsmpnItmClass | _CACnsmpnItmClass | |||
| _CABllbleItmClass | _CABllbleItmClass | |||
| _CABllbleItmType | _CABllbleItmType | |||
| _CABllbleItmSrceTransType | _CABllbleItmSrceTransType | |||
| _CABillgSubprocess | _CABillgSubprocess | |||
| _CABillgRecordType | _CABillgRecordType | |||
| _CABllbleItmStatus | _CABllbleItmStatus | |||
| _CABllbleItmRecordType | _CABllbleItmRecordType | |||
| _CABillgSourceTransRefTyp | _CABillgSourceTransRefTyp | |||
| _CABllbleItmPrimaryType | _CABllbleItmPrimaryType |
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_CABillgDocSource.
-- 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.
-- SQL view name: ICAINVBILL_S
CREATE VIEW I_CABillgDocSource AS
SELECT
billdocno AS CABillgDocument,
billdocsrcitem AS CABillgDocSourceItem,
src_group AS CABillgGroupingSourceItems,
billdocrectype AS CABillgRecordType,
simulated AS CABillgIsDocumentSimulated,
crdate AS CABillgDocCreationDate,
cast(citcat as citcat_gfn_kk preserving type) AS CACnsmpnItmClass,
bitcat AS CABllbleItmClass,
bitstatus AS CABllbleItmStatus,
bitrectype AS CABllbleItmRecordType,
cast(bit_dbtab as bit_dbtab_gfn_kk preserving type) AS CABllbleItmDatabaseTable,
bit_grpno AS CABillgGroupingBillableItem,
subprocess AS CABillgSubprocess,
bittype AS CABllbleItmType,
cast(srctatype as srctatype_gfn_kk preserving type) AS CABllbleItmSourceTransType,
srcreftype AS CABillgSourceTransRefType,
cast(srcref as bill_srcref_kk_badi preserving type) AS CABillgSourceTransRef,
xprimary AS CABllbleItmPrimary,
reltype_primary AS CABllbleItmPrimaryType,
cast(bitmonth as bitmonth_no_conv_kk preserving type) AS CABllbleItmOriginMonth,
cast(bitcrmonth as bitcrmonth_no_conv_kk preserving type) AS CABllbleItmCreationMonth,
bit_amount AS CABllbleItmAmount,
bit_curr AS CABllbleItmCurrency,
cast(bit_number as bit_number_gfn_kk preserving type) AS CABllbleItmNumber
FROM dfkkinvbill_s AS invbill_s
LEFT OUTER JOIN I_CABillgDocHeader AS _CABillgDocHeader ON CABillgDocument = _CABillgDocHeader.CABillgDocument -- association [1..1]
LEFT OUTER JOIN I_CACnsmpnItmClass AS _CACnsmpnItmClass ON CACnsmpnItmClass = _CACnsmpnItmClass.CACnsmpnItmClass -- association [0..1]
LEFT OUTER JOIN I_CABllbleItmClass AS _CABllbleItmClass ON CABllbleItmClass = _CABllbleItmClass.CABllbleItmClass -- association [0..1]
LEFT OUTER JOIN I_CABllbleItmType AS _CABllbleItmType ON CABllbleItmType = _CABllbleItmType.CABllbleItmType -- association [0..1]
LEFT OUTER JOIN I_CABllbleItmSrceTransType AS _CABllbleItmSrceTransType ON CABllbleItmSourceTransType = _CABllbleItmSrceTransType.CABllbleItmSourceTransType -- association [0..1]
LEFT OUTER JOIN I_CABillgSubProcess AS _CABillgSubprocess ON CABillgSubprocess = _CABillgSubprocess.CABillgSubprocess -- association [0..1]
LEFT OUTER JOIN I_CABillgRecordType AS _CABillgRecordType ON CABillgRecordType = _CABillgRecordType.CABillgRecordType -- association [0..1]
LEFT OUTER JOIN I_CABllbleItmStatus AS _CABllbleItmStatus ON CABllbleItmStatus = _CABllbleItmStatus.CABllbleItmStatus -- association [0..1]
LEFT OUTER JOIN I_CABllbleItmRecordType AS _CABllbleItmRecordType ON CABllbleItmRecordType = _CABllbleItmRecordType.CABllbleItmRecordType -- association [0..1]
LEFT OUTER JOIN I_CABillgSourceTransRefTyp AS _CABillgSourceTransRefTyp ON CABillgSourceTransRefType = _CABillgSourceTransRefTyp.CABillgSourceTransRefType -- association [0..1]
LEFT OUTER JOIN I_CABllbleItmPrimaryType AS _CABllbleItmPrimaryType ON CABllbleItmPrimaryType = _CABllbleItmPrimaryType.CABllbleItmPrimaryType -- 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