I_SAFTHeaderCA
SAF-T FI-CA Header
I_SAFTHeaderCA is a Composite CDS View that provides data about "SAF-T FI-CA Header" in SAP S/4HANA. It reads from 5 data sources (I_CompanyCode, I_FiscalYearVariant, I_CADocumentBPItemPhysical, I_FiscalCalendarDate, P_SAFTSumLineItemCA) and exposes 19 fields with key fields CompanyCode, FiscalYear, CADocumentNumber. It has 2 associations to related views.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| I_CompanyCode | _CompCode | inner |
| I_FiscalYearVariant | _FiscalYearVariant | inner |
| I_CADocumentBPItemPhysical | FicaItem | inner |
| I_FiscalCalendarDate | FiscalYear | inner |
| P_SAFTSumLineItemCA | SumFicaLineItem | inner |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_CAReconciliationKey | fikey_kk |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_AccountingDocumentTypeText | _AccDocTypeText | FicaItem.CADocumentType = _AccDocTypeText.AccountingDocumentType |
| [1..1] | I_CADocumentType | _DocType | FicaItem.CADocumentType = _DocType.CADocumentType and FicaHeader.CAApplicationArea = _DocType.CAApplicationArea |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IHDRCA | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.dataMaintenance | #RESTRICTED | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | SAF-T FI-CA Header | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_CADocumentBPItemPhysical | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | I_FiscalCalendarDate | FiscalYear | G/L Fiscal Year |
| KEY | CADocumentNumber | FicaHeader | CADocumentNumber | Document Number |
| CAApplicationArea | FicaHeader | CAApplicationArea | ApplicationArea | |
| AccountingDocumentType | I_CADocumentBPItemPhysical | CADocumentType | Document Type | |
| AccountingDocumentTypeName | ||||
| AccountingDocumentHeaderText | ||||
| FiscalPeriod | I_FiscalCalendarDate | FiscalPeriod | Tax period | |
| PostingDate | FicaHeader | CAPostingDate | Posting Date | |
| CompanyCodeCurrency | I_CADocumentBPItemPhysical | CompanyCodeCurrency | Local Currency | |
| TotalGrossAmountInCoCodeCrcy | I_CADocumentBPItemPhysical | CAAmountInLocalCurrency | Local Crcy Amt | |
| CreationDate | FicaHeader | CreationDate | Time Stamp | |
| CreatedByUser | FicaHeader | CreatedByUser | User Name | |
| DocumentDate | FicaHeader | DocumentDate | Journal Entry Date | |
| TransactionCurrency | FicaHeader | TransactionCurrency | Transaction Currency | |
| CADocumentClass | FicaHeader | CADocumentClass | Document Class | |
| _CompCode | I_CADocumentBPItemPhysical | _CompCode | ||
| _DocType | _DocType | |||
| _AccDocTypeText | _AccDocTypeText |
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_SAFTHeaderCA.
-- 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: IHDRCA
-- Parameters: P_CAReconciliationKey : fikey_kk
CREATE VIEW I_SAFTHeaderCA AS
SELECT
FicaItem.CompanyCode AS CompanyCode,
FiscalYear.FiscalYear AS FiscalYear,
FicaHeader.CADocumentNumber AS CADocumentNumber,
FicaHeader.CAApplicationArea AS CAApplicationArea,
FicaItem.CADocumentType AS AccountingDocumentType,
coalesce(_AccDocTypeText[1: Language = $session.system_language].AccountingDocumentTypeName,' ') AS AccountingDocumentTypeName,
'' AS AccountingDocumentHeaderText,
FiscalYear.FiscalPeriod AS FiscalPeriod,
FicaHeader.CAPostingDate AS PostingDate,
FicaItem.CompanyCodeCurrency AS CompanyCodeCurrency,
FicaItem.CAAmountInLocalCurrency AS TotalGrossAmountInCoCodeCrcy,
FicaHeader.CreationDate AS CreationDate,
FicaHeader.CreatedByUser AS CreatedByUser,
FicaHeader.DocumentDate AS DocumentDate,
FicaHeader.TransactionCurrency AS TransactionCurrency,
FicaHeader.CADocumentClass AS CADocumentClass,
FicaItem._CompCode AS _CompCode
INNER JOIN I_CADocumentBPItemPhysical AS FicaItem ON /* join condition not captured in parsed metadata */
INNER JOIN I_CompanyCode AS _CompCode ON /* join condition not captured in parsed metadata */
INNER JOIN I_FiscalYearVariant AS _FiscalYearVariant ON /* join condition not captured in parsed metadata */
INNER JOIN I_FiscalCalendarDate AS FiscalYear ON /* join condition not captured in parsed metadata */
INNER JOIN P_SAFTSumLineItemCA AS SumFicaLineItem ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_AccountingDocumentTypeText AS _AccDocTypeText ON FicaItem.CADocumentType = _AccDocTypeText.AccountingDocumentType -- association [0..*]
LEFT OUTER JOIN I_CADocumentType AS _DocType ON FicaItem.CADocumentType = _DocType.CADocumentType AND FicaHeader.CAApplicationArea = _DocType.CAApplicationArea -- association [1..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