I_CAExtractDocumentGLItem

DDL: I_CAEXTRACTDOCUMENTGLITEM Type: view_entity BASIC Package: FKK_AUDIT

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)

SourceAliasJoin Type
dfkkopk_short dfkkopk_short from

Associations (4)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;