C_JrnlEntryCorrespnc
Correspondence SAP09 - Ledger View - Journal Entry
C_JrnlEntryCorrespnc is a Consumption CDS View that provides data about "Correspondence SAP09 - Ledger View - Journal Entry" in SAP S/4HANA. It reads from 1 data source (I_JournalEntry) and exposes 73 fields with key fields CompanyCode, FiscalYear, AccountingDocument. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntry | I_JournalEntry | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | C_JrnlEntryItemCorrespnc | _Item | $projection.AccountingDocument = _Item.AccountingDocument and $projection.CompanyCode = _Item.CompanyCode and $projection.FiscalYear = _Item.FiscalYear |
| [0..*] | I_AccountingDocumentTypeText | _AccountingDocumentTypeText | $projection.AccountingDocumentType = _AccountingDocumentTypeText.AccountingDocumentType |
| [0..*] | I_ReferenceDocumentTypeText | _ReferenceDocumentTypeText | $projection.ReferenceDocumentType = _ReferenceDocumentTypeText.ReferenceDocumentType |
| [1..1] | I_CurrencyTypesCorrespnc | _CurrencyTypesCorrespnc | $projection.CompanyCode = _CurrencyTypesCorrespnc.CompanyCode and $projection.SourceLedger = _CurrencyTypesCorrespnc.Ledger |
| [0..*] | C_CorrespondenceHeaderNote | _CorrespondenceHeaderNote | $projection.CompanyCode = _CorrespondenceHeaderNote.CompanyCode and $projection.FiscalYear = _CorrespondenceHeaderNote.FiscalYear and $projection.AccountingDocument = _CorrespondenceHeaderNote.AccountingDocument |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CJRNLENCOR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| Search.searchable | true | view | |
| EndUserText.label | Correspondence SAP09 - Ledger View - Journal Entry | view |
Fields (73)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| AccountingDocumentTypeName | ||||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| AccountingDocumentCreationDate | AccountingDocumentCreationDate | Journal Entry Date | ||
| CreationTime | CreationTime | Time of Change | ||
| LastManualChangeDate | LastManualChangeDate | Manual Change Date | ||
| LastAutomaticChangeDate | LastAutomaticChangeDate | Autom. Change Date | ||
| LastChangeDate | LastChangeDate | Time Stamp | ||
| ExchangeRateDate | ExchangeRateDate | Translatn Date | ||
| AccountingDocCreatedByUser | AccountingDocCreatedByUser | User which created overhead document | ||
| TransactionCode | TransactionCode | Transaction Code | ||
| IntercompanyTransaction | IntercompanyTransaction | Intercompany Transaction | ||
| DocumentReferenceID | DocumentReferenceID | Reference | ||
| RecurringAccountingDocument | RecurringAccountingDocument | Recurring Journal Entry | ||
| ReverseDocument | ReverseDocument | Reversed With | ||
| ReverseDocumentFiscalYear | ReverseDocumentFiscalYear | Year | ||
| AccountingDocumentHeaderText | AccountingDocumentHeaderText | Doc.Header Text | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| ExchangeRate | ExchangeRate | Exchange rate | ||
| AccountingDocumentCategory | AccountingDocumentCategory | Journal Entry Category | ||
| BusinessTransactionType | BusinessTransactionType | Bus.transaction | ||
| BatchInputSession | BatchInputSession | Session Name | ||
| ReferenceDocumentType | ReferenceDocumentType | Reference Document Type | ||
| ReferenceDocumentTypeName | ||||
| OriginalReferenceDocument | OriginalReferenceDocument | Reference Key | ||
| FinancialManagementArea | FinancialManagementArea | FM Area | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| AdditionalCurrency1 | AdditionalCurrency1 | Local curr. 2 | ||
| AdditionalCurrency2 | AdditionalCurrency2 | Local curr. 3 | ||
| ReversalIsPlanned | ReversalIsPlanned | Reversal Flag | ||
| PlannedReversalDate | PlannedReversalDate | Reversal Date | ||
| TaxIsCalculatedAutomatically | TaxIsCalculatedAutomatically | Tax Is Automatically Calculated | ||
| TaxBaseAmountIsNetAmount | TaxBaseAmountIsNetAmount | Tax Base Amount is Net Amount | ||
| SourceCompanyCode | SourceCompanyCode | Source CoCode | ||
| LogicalSystem | LogicalSystem | Logical System | ||
| ReferenceDocumentLogicalSystem | ReferenceDocumentLogicalSystem | Ref. Doc. Lgcl Syst. | ||
| TaxExchangeRate | TaxExchangeRate | Rate for Taxes | ||
| ReversalReason | ReversalReason | Reversal Reason | ||
| ParkingDate | ParkingDate | Parked On | ||
| ParkingTime | ParkingTime | Parked At | ||
| Branch | Branch | Repository branch | ||
| NmbrOfPages | NmbrOfPages | SDS Number of Pages | ||
| IsDiscountDocument | IsDiscountDocument | discount document | ||
| Reference1InDocumentHeader | Reference1InDocumentHeader | Reference 1 | ||
| Reference2InDocumentHeader | Reference2InDocumentHeader | Reference 2 | ||
| InvoiceReceiptDate | InvoiceReceiptDate | Invoice Receipt Date | ||
| Ledger | Ledger | Ledger | ||
| LedgerGroup | LedgerGroup | Ledger Group | ||
| AlternativeReferenceDocument | Alternative Reference Document | |||
| TaxReportingDate | TaxReportingDate | Tax Reporting Date | ||
| AccountingDocumentClass | AccountingDocumentClass | Document Cat. | ||
| ExchangeRateType | ExchangeRateType | Exch. Rate Type | ||
| SenderLogicalSystem | SenderLogicalSystem | Sender Logical System | ||
| SenderCompanyCode | SenderCompanyCode | Sender Company Code | ||
| SenderAccountingDocument | SenderAccountingDocument | Sender Journal Entry | ||
| SenderFiscalYear | SenderFiscalYear | Sender FiscalYr | ||
| ReversalReferenceDocumentCntxt | ReversalReferenceDocumentCntxt | Reversal Reference Document Context | ||
| ReversalReferenceDocument | ReversalReferenceDocument | Reversal Reference Document | ||
| LatePaymentReason | LatePaymentReason | Reason f. Delay | ||
| SalesDocumentCondition | SalesDocumentCondition | Doc. Condition | ||
| IsReversal | IsReversal | Reversal doc. | ||
| IsReversed | IsReversed | Reversed? | ||
| SourceLedger | Ledger | Ledger | ||
| ControllingArea | _CompanyCode | ControllingArea | Controlling Area | |
| ControllingAreaName | ||||
| _Item | _Item | |||
| _CurrencyTypesCorrespnc | _CurrencyTypesCorrespnc | |||
| _CorrespondenceHeaderNote | _CorrespondenceHeaderNote |
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 C_JrnlEntryCorrespnc.
-- 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: CJRNLENCOR
CREATE VIEW C_JrnlEntryCorrespnc AS
SELECT
CompanyCode,
FiscalYear,
AccountingDocument,
AccountingDocumentType,
_AccountingDocumentTypeText[1:Language = $session.system_language].AccountingDocumentTypeName AS AccountingDocumentTypeName,
DocumentDate,
PostingDate,
FiscalPeriod,
AccountingDocumentCreationDate,
CreationTime,
LastManualChangeDate,
LastAutomaticChangeDate,
LastChangeDate,
ExchangeRateDate,
AccountingDocCreatedByUser,
TransactionCode,
IntercompanyTransaction,
DocumentReferenceID,
RecurringAccountingDocument,
ReverseDocument,
ReverseDocumentFiscalYear,
AccountingDocumentHeaderText,
TransactionCurrency,
ExchangeRate,
AccountingDocumentCategory,
BusinessTransactionType,
BatchInputSession,
ReferenceDocumentType,
_ReferenceDocumentTypeText[1:Language = $session.system_language].ReferenceDocumentTypeName AS ReferenceDocumentTypeName,
OriginalReferenceDocument,
FinancialManagementArea,
CompanyCodeCurrency,
AdditionalCurrency1,
AdditionalCurrency2,
ReversalIsPlanned,
PlannedReversalDate,
TaxIsCalculatedAutomatically,
TaxBaseAmountIsNetAmount,
SourceCompanyCode,
LogicalSystem,
ReferenceDocumentLogicalSystem,
TaxExchangeRate,
ReversalReason,
ParkingDate,
ParkingTime,
Branch,
NmbrOfPages,
IsDiscountDocument,
Reference1InDocumentHeader,
Reference2InDocumentHeader,
InvoiceReceiptDate,
Ledger,
LedgerGroup,
cast(AlternativeReferenceDocument as fis_xblnr_alt_alpha) AS AlternativeReferenceDocument,
TaxReportingDate,
AccountingDocumentClass,
ExchangeRateType,
SenderLogicalSystem,
SenderCompanyCode,
SenderAccountingDocument,
SenderFiscalYear,
ReversalReferenceDocumentCntxt,
ReversalReferenceDocument,
LatePaymentReason,
SalesDocumentCondition,
IsReversal,
IsReversed,
Ledger AS SourceLedger,
_CompanyCode.ControllingArea AS ControllingArea,
_CompanyCode._ControllingAreaText.ControllingAreaName AS ControllingAreaName
FROM I_JournalEntry
LEFT OUTER JOIN C_JrnlEntryItemCorrespnc AS _Item ON AccountingDocument = _Item.AccountingDocument AND CompanyCode = _Item.CompanyCode AND FiscalYear = _Item.FiscalYear -- association [1..*]
LEFT OUTER JOIN I_AccountingDocumentTypeText AS _AccountingDocumentTypeText ON AccountingDocumentType = _AccountingDocumentTypeText.AccountingDocumentType -- association [0..*]
LEFT OUTER JOIN I_ReferenceDocumentTypeText AS _ReferenceDocumentTypeText ON ReferenceDocumentType = _ReferenceDocumentTypeText.ReferenceDocumentType -- association [0..*]
LEFT OUTER JOIN I_CurrencyTypesCorrespnc AS _CurrencyTypesCorrespnc ON CompanyCode = _CurrencyTypesCorrespnc.CompanyCode AND SourceLedger = _CurrencyTypesCorrespnc.Ledger -- association [1..1]
LEFT OUTER JOIN C_CorrespondenceHeaderNote AS _CorrespondenceHeaderNote ON CompanyCode = _CorrespondenceHeaderNote.CompanyCode AND FiscalYear = _CorrespondenceHeaderNote.FiscalYear AND AccountingDocument = _CorrespondenceHeaderNote.AccountingDocument -- association [0..*]
;
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