FIN_SUBVAL_JOURNALENTRY
Journal Entry
FIN_SUBVAL_JOURNALENTRY is a CDS View that provides data about "Journal Entry" in SAP S/4HANA. It reads from 1 data source (P_BKPF_COM) and exposes 106 fields with key fields CompanyCode, FiscalYear, AccountingDocument. It has 26 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_BKPF_COM | P_BKPF_COM | from |
Associations (26)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_AccountingDocumentTypeText | _AccountingDocumentTypeText | $projection.AccountingDocumentType = _AccountingDocumentTypeText.AccountingDocumentType |
| [0..*] | I_BusTransactionTypeText | _BusinessTransactionTypeText | $projection.BusinessTransactionType = _BusinessTransactionTypeText.BusinessTransactionType |
| [0..*] | I_FinancialManagementAreaText | _FinancialManagementAreaText | $projection.FinancialManagementArea = _FinancialManagementAreaText.FinancialManagementArea |
| [0..*] | I_LedgerText | _LedgerText | $projection.Ledger = _LedgerText.Ledger |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_FiscalYearForCompanyCode | _FiscalYear | $projection.FiscalYear = _FiscalYear.FiscalYear and $projection.CompanyCode = _FiscalYear.CompanyCode |
| [0..1] | I_AccountingDocumentType | _AccountingDocumentType | $projection.AccountingDocumentType = _AccountingDocumentType.AccountingDocumentType |
| [1..1] | I_Currency | _CompanyCodeCurrency | $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency |
| [0..1] | I_Currency | _TransactionCurrency | $projection.TransactionCurrency = _TransactionCurrency.Currency |
| [0..1] | I_Currency | _AdditionalCurrency1 | $projection.AdditionalCurrency1 = _AdditionalCurrency1.Currency |
| [0..1] | I_Currency | _AdditionalCurrency2 | $projection.AdditionalCurrency2 = _AdditionalCurrency2.Currency |
| [0..1] | I_FiscalYearPeriodForCmpnyCode | _FiscalPeriod | $projection.FiscalYear = _FiscalPeriod.FiscalYear and $projection.FiscalPeriod = _FiscalPeriod.FiscalPeriod and $projection.CompanyCode = _FiscalPeriod.CompanyCode |
| [0..1] | I_AccountingDocumentCategory | _AccountingDocumentCategory | $projection.AccountingDocumentCategory = _AccountingDocumentCategory.AccountingDocumentCategory |
| [0..1] | I_BusinessTransactionType | _BusinessTransactionType | $projection.BusinessTransactionType = _BusinessTransactionType.BusinessTransactionType |
| [0..1] | I_FinancialManagementArea | _FinancialManagementArea | $projection.FinancialManagementArea = _FinancialManagementArea.FinancialManagementArea |
| [0..1] | I_ReferenceDocumentType | _ReferenceDocumentType | $projection.ReferenceDocumentType = _ReferenceDocumentType.ReferenceDocumentType |
| [0..1] | I_LogicalSystem | _LogicalSystem | $projection.LogicalSystem = _LogicalSystem.LogicalSystem |
| [0..1] | I_LogicalSystem | _RefDocumentLogicalSystem | $projection.ReferenceDocumentLogicalSystem = _RefDocumentLogicalSystem.LogicalSystem |
| [0..1] | I_User | _User | $projection.AccountingDocCreatedByUser = _User.UserID |
| [1..1] | I_Ledger | _Ledger | $projection.Ledger = _Ledger.Ledger |
| [0..1] | I_LedgerGroup | _LedgerGroup | $projection.LedgerGroup = _LedgerGroup.LedgerGroup |
| [0..1] | I_CurrencyRole | _AdditionalCurrency1Role | $projection.AdditionalCurrency1Role = _AdditionalCurrency1Role.CurrencyRole |
| [0..1] | I_CurrencyRole | _AdditionalCurrency2Role | $projection.AdditionalCurrency2Role = _AdditionalCurrency2Role.CurrencyRole |
| [1..*] | I_JournalEntryItem | _JournalEntryItem | $projection.CompanyCode = _JournalEntryItem.CompanyCode and $projection.FiscalYear = _JournalEntryItem.FiscalYear and $projection.AccountingDocument = _JournalEntryItem.AccountingDocument |
| [0..*] | I_OperationalAcctgDocItem | _OperationalAcctgDocItem | $projection.CompanyCode = _OperationalAcctgDocItem.CompanyCode and $projection.FiscalYear = _OperationalAcctgDocItem.FiscalYear and $projection.AccountingDocument = _OperationalAcctgDocItem.AccountingDocument |
| [0..*] | I_AddlLedgerOplAcctgDocItem | _AddlLedgerOplAcctgDocItem | $projection.CompanyCode = _AddlLedgerOplAcctgDocItem.CompanyCode and $projection.FiscalYear = _AddlLedgerOplAcctgDocItem.FiscalYear and $projection.AccountingDocument = _AddlLedgerOplAcctgDocItem.AccountingDocument |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Journal Entry | view | |
| ObjectModel.representativeKey | AccountingDocument | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (106)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | bukrs | Value | |
| KEY | FiscalYear | gjahr | Settlement Year | |
| KEY | AccountingDocument | belnr | SD Document | |
| AccountingDocumentType | blart | Rep. rec. doc. type | ||
| DocumentDate | bldat | Journal Entry Date | ||
| PostingDate | budat | Posting Date | ||
| FiscalPeriod | Period Block | |||
| AccountingDocumentCreationDate | cpudt | Imported On | ||
| CreationTime | cputm | Time | ||
| LastManualChangeDate | Obsolete | |||
| LastAutomaticChangeDate | Last Update | |||
| ExchangeRateDate | wwert | Translatn Date | ||
| AccountingDocCreatedByUser | usnam | User Name | ||
| TransactionCode | tcode | Undefined range (can be used for patch levels) | ||
| IntercompanyTransaction | bvorg | Intercompany Transac | ||
| DocumentReferenceID | xblnr | Reference | ||
| RecurringAccountingDocument | dbblg | Rec.Entry Doc. | ||
| ReverseDocument | stblg | Reversed With | ||
| ReverseDocumentFiscalYear | stjah | Year | ||
| AccountingDocumentHeaderText | bktxt | Header Text | ||
| TransactionCurrency | waers | Transaction Currency | ||
| ExchangeRate | kursf | Exchange Rate | ||
| AccountingDocumentCategory | bstat | Document Status | ||
| NetAmountIsPosted | xnetb | Net document type | ||
| BusinessTransactionType | glvor | Bus.transaction | ||
| BatchInputSession | grpid | Session Name | ||
| ReferenceDocumentType | awtyp | Reference Document Type | ||
| OriginalReferenceDocument | awkey | RefKey GJE | ||
| FinancialManagementArea | fikrs | FM Area | ||
| CompanyCodeCurrency | hwaer | Local Currency | ||
| AdditionalCurrency1 | hwae2 | Local curr. 2 | ||
| AdditionalCurrency2 | hwae3 | Local curr. 3 | ||
| ReversalIsPlanned | xstov | Reversal Flag | ||
| PlannedReversalDate | stodt | Reversal Date | ||
| TaxIsCalculatedAutomatically | xmwst | Calculate Tax | ||
| AdditionalCurrency1Role | curt2 | LC2 Crcy Type | ||
| AdditionalCurrency2Role | curt3 | LC3 Crcy Type | ||
| TaxBaseAmountIsNetAmount | xsnet | Net Entry | ||
| SourceCompanyCode | ausbk | Source CoCode | ||
| LogicalSystem | awsys | Logical System | ||
| ReferenceDocumentLogicalSystem | Logical System | |||
| TaxExchangeRate | txkrs | Tx Crcy Transl. | ||
| ReversalReason | stgrd | Reversal Reason | ||
| Branch | brnch | Business Place | ||
| JournalEntryIsPosted | ||||
| IsDiscountDocument | adisc | discount document | ||
| Reference1InDocumentHeader | xref1_hd | Ref.key(head) 1 | ||
| Reference2InDocumentHeader | xref2_hd | Ref.key(head.)2 | ||
| InvoiceReceiptDate | reindat | Inv. Recpt Date | ||
| Ledger | rldnr | Ledger (Compat.) | ||
| LedgerGroup | ldgrp | Target Ledger Group | ||
| AlternativeReferenceDocument | xblnr_alt | Alternative Reference Document | ||
| TaxReportingDate | vatdate | Valid From | ||
| TaxFulfillmentDate | fulfilldate | Tax Settlement Date | ||
| AccountingDocumentClass | doccat | Document Cat. | ||
| ExchangeRateType | kurst | Fix.rate type (EMU) | ||
| SenderLogicalSystem | logsystem_sender | Sender Log Sys. | ||
| SenderCompanyCode | bukrs_sender | Sender CoCode | ||
| SenderAccountingDocument | belnr_sender | Sender Doc.No. | ||
| SenderFiscalYear | gjahr_sender | Sender FiscalYr | ||
| ReversalReferenceDocumentCntxt | aworg_rev | Reversal Org. | ||
| ReversalReferenceDocument | awref_rev | Reversal Ref. | ||
| LatePaymentReason | penrc | Reason f. Delay | ||
| SalesDocumentCondition | knumv | Doc. Condition | ||
| IsReversal | xreversing | Reversal doc. | ||
| IsReversed | xreversed | Reversed | ||
| CostAccountingValuationDate | co_valdt | Valuation Date | ||
| JrnlEntryCntrySpecificRef1 | glo_ref1_hd | Reference | ||
| JrnlEntryCntrySpecificDate1 | glo_dat1_hd | Date | ||
| JrnlEntryCntrySpecificRef2 | glo_ref2_hd | Country/Region Specific Reference 2 | ||
| JrnlEntryCntrySpecificDate2 | glo_dat2_hd | Country/Region Specific Date 2 | ||
| JrnlEntryCntrySpecificRef3 | glo_ref3_hd | Country/Region Specific Reference 3 | ||
| JrnlEntryCntrySpecificDate3 | glo_dat3_hd | Country/Region Specific Date 3 | ||
| JrnlEntryCntrySpecificRef4 | glo_ref4_hd | Country/Region Specific Reference 4 | ||
| JrnlEntryCntrySpecificDate4 | glo_dat4_hd | Country/Region Specific Date 4 | ||
| JrnlEntryCntrySpecificRef5 | glo_ref5_hd | Country/Region Specific Reference 5 | ||
| JrnlEntryCntrySpecificDate5 | glo_dat5_hd | Country/Region Specific Date 5 | ||
| JrnlEntryCntrySpecificBP1 | glo_bp1_hd | Ctry/Reg. Specific Business Partner 1 | ||
| JrnlEntryCntrySpecificBP2 | glo_bp2_hd | Ctry/Reg. Specific Business Partner 2 | ||
| WithholdingTaxReportingDate | whtdate | Wtax Reporting Date | ||
| _CompanyCode | _CompanyCode | |||
| _FiscalYear | _FiscalYear | |||
| _AccountingDocumentType | _AccountingDocumentType | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _AdditionalCurrency1 | _AdditionalCurrency1 | |||
| _AdditionalCurrency2 | _AdditionalCurrency2 | |||
| _FiscalPeriod | _FiscalPeriod | |||
| _AccountingDocumentCategory | _AccountingDocumentCategory | |||
| _BusinessTransactionType | _BusinessTransactionType | |||
| _FinancialManagementArea | _FinancialManagementArea | |||
| _ReferenceDocumentType | _ReferenceDocumentType | |||
| _User | _User | |||
| _LogicalSystem | _LogicalSystem | |||
| _RefDocumentLogicalSystem | _RefDocumentLogicalSystem | |||
| _Ledger | _Ledger | |||
| _LedgerGroup | _LedgerGroup | |||
| _AdditionalCurrency1Role | _AdditionalCurrency1Role | |||
| _AdditionalCurrency2Role | _AdditionalCurrency2Role | |||
| _JournalEntryItem | _JournalEntryItem | |||
| _OperationalAcctgDocItem | _OperationalAcctgDocItem | |||
| _AddlLedgerOplAcctgDocItem | _AddlLedgerOplAcctgDocItem | |||
| _AccountingDocumentTypeText | _AccountingDocumentTypeText | |||
| _BusinessTransactionTypeText | _BusinessTransactionTypeText | |||
| _FinancialManagementAreaText | _FinancialManagementAreaText | |||
| _LedgerText | _LedgerText |
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 FIN_SUBVAL_JOURNALENTRY.
-- 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 FIN_SUBVAL_JOURNALENTRY AS
SELECT
bukrs AS CompanyCode,
gjahr AS FiscalYear,
belnr AS AccountingDocument,
blart AS AccountingDocumentType,
bldat AS DocumentDate,
budat AS PostingDate,
cast( monat as fins_fiscalperiod ) AS FiscalPeriod,
cpudt AS AccountingDocumentCreationDate,
cputm AS CreationTime,
cast ( aedat as fis_lastmanualchangedate preserving type ) AS LastManualChangeDate,
cast ( upddt as fis_lastautomaticchangedate preserving type ) AS LastAutomaticChangeDate,
wwert AS ExchangeRateDate,
usnam AS AccountingDocCreatedByUser,
tcode AS TransactionCode,
bvorg AS IntercompanyTransaction,
xblnr AS DocumentReferenceID,
dbblg AS RecurringAccountingDocument,
stblg AS ReverseDocument,
stjah AS ReverseDocumentFiscalYear,
bktxt AS AccountingDocumentHeaderText,
waers AS TransactionCurrency,
kursf AS ExchangeRate,
bstat AS AccountingDocumentCategory,
xnetb AS NetAmountIsPosted,
glvor AS BusinessTransactionType,
grpid AS BatchInputSession,
awtyp AS ReferenceDocumentType,
awkey AS OriginalReferenceDocument,
fikrs AS FinancialManagementArea,
hwaer AS CompanyCodeCurrency,
hwae2 AS AdditionalCurrency1,
hwae3 AS AdditionalCurrency2,
xstov AS ReversalIsPlanned,
stodt AS PlannedReversalDate,
xmwst AS TaxIsCalculatedAutomatically,
curt2 AS AdditionalCurrency1Role,
curt3 AS AdditionalCurrency2Role,
xsnet AS TaxBaseAmountIsNetAmount,
ausbk AS SourceCompanyCode,
awsys AS LogicalSystem,
cast(awsys as fis_awsys preserving type) AS ReferenceDocumentLogicalSystem,
txkrs AS TaxExchangeRate,
stgrd AS ReversalReason,
brnch AS Branch,
cast( ' ' as fin_journalentryisposted) AS JournalEntryIsPosted,
adisc AS IsDiscountDocument,
xref1_hd AS Reference1InDocumentHeader,
xref2_hd AS Reference2InDocumentHeader,
reindat AS InvoiceReceiptDate,
rldnr AS Ledger,
ldgrp AS LedgerGroup,
xblnr_alt AS AlternativeReferenceDocument,
vatdate AS TaxReportingDate,
fulfilldate AS TaxFulfillmentDate,
doccat AS AccountingDocumentClass,
kurst AS ExchangeRateType,
logsystem_sender AS SenderLogicalSystem,
bukrs_sender AS SenderCompanyCode,
belnr_sender AS SenderAccountingDocument,
gjahr_sender AS SenderFiscalYear,
aworg_rev AS ReversalReferenceDocumentCntxt,
awref_rev AS ReversalReferenceDocument,
penrc AS LatePaymentReason,
knumv AS SalesDocumentCondition,
xreversing AS IsReversal,
xreversed AS IsReversed,
co_valdt AS CostAccountingValuationDate,
glo_ref1_hd AS JrnlEntryCntrySpecificRef1,
glo_dat1_hd AS JrnlEntryCntrySpecificDate1,
glo_ref2_hd AS JrnlEntryCntrySpecificRef2,
glo_dat2_hd AS JrnlEntryCntrySpecificDate2,
glo_ref3_hd AS JrnlEntryCntrySpecificRef3,
glo_dat3_hd AS JrnlEntryCntrySpecificDate3,
glo_ref4_hd AS JrnlEntryCntrySpecificRef4,
glo_dat4_hd AS JrnlEntryCntrySpecificDate4,
glo_ref5_hd AS JrnlEntryCntrySpecificRef5,
glo_dat5_hd AS JrnlEntryCntrySpecificDate5,
glo_bp1_hd AS JrnlEntryCntrySpecificBP1,
glo_bp2_hd AS JrnlEntryCntrySpecificBP2,
whtdate AS WithholdingTaxReportingDate
FROM P_BKPF_COM
LEFT OUTER JOIN I_AccountingDocumentTypeText AS _AccountingDocumentTypeText ON AccountingDocumentType = _AccountingDocumentTypeText.AccountingDocumentType -- association [0..*]
LEFT OUTER JOIN I_BusTransactionTypeText AS _BusinessTransactionTypeText ON BusinessTransactionType = _BusinessTransactionTypeText.BusinessTransactionType -- association [0..*]
LEFT OUTER JOIN I_FinancialManagementAreaText AS _FinancialManagementAreaText ON FinancialManagementArea = _FinancialManagementAreaText.FinancialManagementArea -- association [0..*]
LEFT OUTER JOIN I_LedgerText AS _LedgerText ON Ledger = _LedgerText.Ledger -- association [0..*]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_FiscalYearForCompanyCode AS _FiscalYear ON FiscalYear = _FiscalYear.FiscalYear AND CompanyCode = _FiscalYear.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_AccountingDocumentType AS _AccountingDocumentType ON AccountingDocumentType = _AccountingDocumentType.AccountingDocumentType -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency -- association [1..1]
LEFT OUTER JOIN I_Currency AS _TransactionCurrency ON TransactionCurrency = _TransactionCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _AdditionalCurrency1 ON AdditionalCurrency1 = _AdditionalCurrency1.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _AdditionalCurrency2 ON AdditionalCurrency2 = _AdditionalCurrency2.Currency -- association [0..1]
LEFT OUTER JOIN I_FiscalYearPeriodForCmpnyCode AS _FiscalPeriod ON FiscalYear = _FiscalPeriod.FiscalYear AND FiscalPeriod = _FiscalPeriod.FiscalPeriod AND CompanyCode = _FiscalPeriod.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_AccountingDocumentCategory AS _AccountingDocumentCategory ON AccountingDocumentCategory = _AccountingDocumentCategory.AccountingDocumentCategory -- association [0..1]
LEFT OUTER JOIN I_BusinessTransactionType AS _BusinessTransactionType ON BusinessTransactionType = _BusinessTransactionType.BusinessTransactionType -- association [0..1]
LEFT OUTER JOIN I_FinancialManagementArea AS _FinancialManagementArea ON FinancialManagementArea = _FinancialManagementArea.FinancialManagementArea -- association [0..1]
LEFT OUTER JOIN I_ReferenceDocumentType AS _ReferenceDocumentType ON ReferenceDocumentType = _ReferenceDocumentType.ReferenceDocumentType -- association [0..1]
LEFT OUTER JOIN I_LogicalSystem AS _LogicalSystem ON LogicalSystem = _LogicalSystem.LogicalSystem -- association [0..1]
LEFT OUTER JOIN I_LogicalSystem AS _RefDocumentLogicalSystem ON ReferenceDocumentLogicalSystem = _RefDocumentLogicalSystem.LogicalSystem -- association [0..1]
LEFT OUTER JOIN I_User AS _User ON AccountingDocCreatedByUser = _User.UserID -- association [0..1]
LEFT OUTER JOIN I_Ledger AS _Ledger ON Ledger = _Ledger.Ledger -- association [1..1]
LEFT OUTER JOIN I_LedgerGroup AS _LedgerGroup ON LedgerGroup = _LedgerGroup.LedgerGroup -- association [0..1]
LEFT OUTER JOIN I_CurrencyRole AS _AdditionalCurrency1Role ON AdditionalCurrency1Role = _AdditionalCurrency1Role.CurrencyRole -- association [0..1]
LEFT OUTER JOIN I_CurrencyRole AS _AdditionalCurrency2Role ON AdditionalCurrency2Role = _AdditionalCurrency2Role.CurrencyRole -- association [0..1]
LEFT OUTER JOIN I_JournalEntryItem AS _JournalEntryItem ON CompanyCode = _JournalEntryItem.CompanyCode AND FiscalYear = _JournalEntryItem.FiscalYear AND AccountingDocument = _JournalEntryItem.AccountingDocument -- association [1..*]
LEFT OUTER JOIN I_OperationalAcctgDocItem AS _OperationalAcctgDocItem ON CompanyCode = _OperationalAcctgDocItem.CompanyCode AND FiscalYear = _OperationalAcctgDocItem.FiscalYear AND AccountingDocument = _OperationalAcctgDocItem.AccountingDocument -- association [0..*]
LEFT OUTER JOIN I_AddlLedgerOplAcctgDocItem AS _AddlLedgerOplAcctgDocItem ON CompanyCode = _AddlLedgerOplAcctgDocItem.CompanyCode AND FiscalYear = _AddlLedgerOplAcctgDocItem.FiscalYear AND AccountingDocument = _AddlLedgerOplAcctgDocItem.AccountingDocument -- association [0..*]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- 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