P_JrnlEntrWthFuncnlCrcy
Journal Entry Header with Functial Crcy
P_JrnlEntrWthFuncnlCrcy is a Composite CDS View that provides data about "Journal Entry Header with Functial Crcy" in SAP S/4HANA. It reads from 1 data source (I_ParkedGeneralLedgerItem) and exposes 10 fields with key fields SourceCompanyCode, AccountingDocument, FiscalYear, CompanyCode, AccountingDocumentItem. It has 2 associations to related views. Part of development package ODATA_GL_JOURNALENTRY_VER.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ParkedGeneralLedgerItem | I_ParkedGeneralLedgerItem | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Ledger | _Ledger | _LedgerGroup.Ledger = _Ledger.Ledger or ( _Header.LedgerGroup = '' and _Ledger.IsLeadingLedger = 'X') |
| [1..1] | I_AdditionalCurrencyRoles | _CurrencyRole | I_ParkedGeneralLedgerItem.CompanyCode = _CurrencyRole.CompanyCode and _Header.LedgerGroup = _CurrencyRole.LedgerGroup and _Header.Ledger = _CurrencyRole.Ledger |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PJRNLENTRFC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SourceCompanyCode | I_ParkedGeneralLedgerItem | SourceCompanyCode | Source CoCode |
| KEY | AccountingDocument | I_ParkedGeneralLedgerItem | AccountingDocument | Journal Entry |
| KEY | FiscalYear | I_ParkedGeneralLedgerItem | FiscalYear | G/L Fiscal Year |
| KEY | CompanyCode | I_ParkedGeneralLedgerItem | CompanyCode | Receiver Company Code |
| KEY | AccountingDocumentItem | I_ParkedGeneralLedgerItem | AccountingDocumentItem | Posting View Item |
| LedgerGroup | _Header | LedgerGroup | Ledger Group | |
| Ledger | _Ledger | Ledger | Ledger | |
| AdditionalCurrency1Role | _CurrencyRole | AdditionalCurrency1Role | LC2 Crcy Type | |
| AdditionalCurrency2Role | _CurrencyRole | AdditionalCurrency2Role | LC3 Crcy Type | |
| FunctionalCurrencyRole | _CurrencyRole | FunctionalCurrencyRole |
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 P_JrnlEntrWthFuncnlCrcy.
-- 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: PJRNLENTRFC
CREATE VIEW P_JrnlEntrWthFuncnlCrcy AS
SELECT
I_ParkedGeneralLedgerItem.SourceCompanyCode AS SourceCompanyCode,
I_ParkedGeneralLedgerItem.AccountingDocument AS AccountingDocument,
I_ParkedGeneralLedgerItem.FiscalYear AS FiscalYear,
I_ParkedGeneralLedgerItem.CompanyCode AS CompanyCode,
I_ParkedGeneralLedgerItem.AccountingDocumentItem AS AccountingDocumentItem,
_Header.LedgerGroup AS LedgerGroup,
_Ledger.Ledger AS Ledger,
_CurrencyRole.AdditionalCurrency1Role AS AdditionalCurrency1Role,
_CurrencyRole.AdditionalCurrency2Role AS AdditionalCurrency2Role,
_CurrencyRole.FunctionalCurrencyRole AS FunctionalCurrencyRole
FROM I_ParkedGeneralLedgerItem
LEFT OUTER JOIN I_Ledger AS _Ledger ON _LedgerGroup.Ledger = _Ledger.Ledger OR ( _Header.LedgerGroup = '' AND _Ledger.IsLeadingLedger = 'X') -- association [1..1]
LEFT OUTER JOIN I_AdditionalCurrencyRoles AS _CurrencyRole ON I_ParkedGeneralLedgerItem.CompanyCode = _CurrencyRole.CompanyCode AND _Header.LedgerGroup = _CurrencyRole.LedgerGroup AND _Header.Ledger = _CurrencyRole.Ledger -- 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