I_CAExtractDocumentHeader

DDL: I_CAEXTRACTDOCUMENTHEADER Type: view_entity BASIC Package: FKK_AUDIT

Header Data for FICA Extracted Doc

I_CAExtractDocumentHeader is a Basic CDS View that provides data about "Header Data for FICA Extracted Doc" in SAP S/4HANA. It reads from 1 data source (dfkkko_short) and exposes 16 fields with key fields CompanyCode, FiscalYear, CADocumentNumber. It has 3 associations to related views. Part of development package FKK_AUDIT.

Data Sources (1)

SourceAliasJoin Type
dfkkko_short dfkkko_short from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_CompanyCode _CompCode $projection.CompanyCode = _CompCode.CompanyCode
[0..1] I_Currency _Currency $projection.TransactionCurrency = _Currency.Currency
[1..1] I_CADocumentExtract _CADocExtract $projection.CADocumentExtract = _CADocExtract.CADocumentExtract

Annotations (7)

NameValueLevelField
EndUserText.label Header Data 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 (16)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode bukrs Value
KEY FiscalYear gjahr Settlement Year
KEY CADocumentNumber Reopen
TransactionCurrency Transaction Currency
DocumentDate Journal Entry Date
CAPostingDate budat Posting Date
CADocumentType blart Rep. rec. doc. type
ReferenceDocumentType Reference Document Type
OriginalReferenceDocument awkey RefKey GJE
CAReconciliationKey fikey Reconcil. Key
CAReversedDocumentNumber Reversed Doc.
CAReversalDocumentNumber Revers.document
CADocumentExtract extract_id Extract ID
_CompCode _CompCode
_Currency _Currency
_CADocExtract _CADocExtract

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_CAExtractDocumentHeader.
-- 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_CAExtractDocumentHeader AS
SELECT
  bukrs AS CompanyCode,
  gjahr AS FiscalYear,
  cast(opbel as opbel_gfn_kk preserving type ) AS CADocumentNumber,
  cast(waers as fis_rwcur preserving type ) AS TransactionCurrency,
  cast(bldat as fis_bldat preserving type ) AS DocumentDate,
  budat AS CAPostingDate,
  blart AS CADocumentType,
  cast(awtyp as fis_awtyp preserving type ) AS ReferenceDocumentType,
  awkey AS OriginalReferenceDocument,
  fikey AS CAReconciliationKey,
  cast(stbel as stbel_gfn_kk preserving type ) AS CAReversedDocumentNumber,
  cast(storb as storb_gfn_kk preserving type ) AS CAReversalDocumentNumber,
  extract_id AS CADocumentExtract
FROM dfkkko_short
LEFT OUTER JOIN I_CompanyCode AS _CompCode ON CompanyCode = _CompCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON TransactionCurrency = _Currency.Currency  -- association [0..1]
LEFT OUTER JOIN I_CADocumentExtract AS _CADocExtract ON CADocumentExtract = _CADocExtract.CADocumentExtract  -- association [1..1]
;