I_CAExtractDocumentGLItem
Offsetting Items for FICA Extracted Doc
I_CAExtractDocumentGLItem is a Basic CDS View that provides data about "Offsetting Items for FICA Extracted Doc" in SAP S/4HANA. It reads from 1 data source (dfkkopk_short) and exposes 18 fields with key fields CompanyCode, FiscalYear, CADocumentNumber, CAExtractDocumentItem. It has 4 associations to related views. Part of development package FKK_AUDIT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| dfkkopk_short | dfkkopk_short | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CAExtractDocumentHeader | _DocHeader | $projection.CompanyCode = _DocHeader.CompanyCode and $projection.FiscalYear = _DocHeader.FiscalYear and $projection.CADocumentNumber = _DocHeader.CADocumentNumber |
| [1..1] | I_CompanyCode | _CompCode | $projection.CompanyCode = _CompCode.CompanyCode |
| [0..1] | I_BusinessArea | _BusinessArea | $projection.BusinessArea = _BusinessArea.BusinessArea |
| [0..1] | I_Segment | _Segment | $projection.Segment = _Segment.Segment |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Offsetting Items for FICA Extracted Doc | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | bukrs | Value | |
| KEY | FiscalYear | gjahr | Settlement Year | |
| KEY | CADocumentNumber | Reopen | ||
| KEY | CAExtractDocumentItem | opupk | Item | |
| BusinessArea | Business Area | |||
| GLAccount | Transfer acct | |||
| CAAmountInLocalCurrency | betrh | Local Crcy Amt | ||
| CAAmountInTransactionCurrency | betrw | Reduction Amt | ||
| TaxCode | Tax Code | |||
| Segment | Segment number | |||
| CATaxRate | stprz | Tax rate | ||
| ValueDate | valut | Value date | ||
| TransactionCurrency | _DocHeader | TransactionCurrency | Transaction Currency | |
| CompanyCodeCurrency | ||||
| _CompCode | _CompCode | |||
| _DocHeader | _DocHeader | |||
| _BusinessArea | _BusinessArea | |||
| _Segment | _Segment |
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_CAExtractDocumentGLItem.
-- 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_CAExtractDocumentGLItem AS
SELECT
bukrs AS CompanyCode,
gjahr AS FiscalYear,
cast(opbel as opbel_gfn_kk preserving type ) AS CADocumentNumber,
opupk AS CAExtractDocumentItem,
cast(cast(gsber as abap.char(4)) as fis_rbusa preserving type ) AS BusinessArea,
cast(hkont as fis_racct preserving type ) AS GLAccount,
betrh AS CAAmountInLocalCurrency,
betrw AS CAAmountInTransactionCurrency,
cast(mwskz as fis_mwskz preserving type ) AS TaxCode,
cast(cast(segment as abap.char(10)) as fb_segment preserving type ) AS Segment,
stprz AS CATaxRate,
valut AS ValueDate,
_DocHeader.TransactionCurrency AS TransactionCurrency,
_DocHeader._CADocExtract.CompanyCodeCurrency AS CompanyCodeCurrency
FROM dfkkopk_short
LEFT OUTER JOIN I_CAExtractDocumentHeader AS _DocHeader ON CompanyCode = _DocHeader.CompanyCode AND FiscalYear = _DocHeader.FiscalYear AND CADocumentNumber = _DocHeader.CADocumentNumber -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompCode ON CompanyCode = _CompCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_BusinessArea AS _BusinessArea ON BusinessArea = _BusinessArea.BusinessArea -- association [0..1]
LEFT OUTER JOIN I_Segment AS _Segment ON Segment = _Segment.Segment -- 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