I_CashJournalDocument
View for table TCJ_DOCUMENTS
I_CashJournalDocument is a Basic CDS View that provides data about "View for table TCJ_DOCUMENTS" in SAP S/4HANA. It reads from 1 data source (tcj_documents) and exposes 44 fields with key fields CompanyCode, CashJournal, FiscalYear, CashJournalDocumentInternalID, Language. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| tcj_documents | tcj_documents | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_CashJournal | _CashJournal | $projection.CompanyCode = _CashJournal.CompanyCode and $projection.CashJournal = _CashJournal.CashJournal and $projection.Language = _CashJournal.Language |
| [0..1] | I_FiscalYearForCompanyCode | _FiscalYear | $projection.FiscalYear = _FiscalYear.FiscalYear and $projection.CompanyCode = _FiscalYear.CompanyCode |
| [0..1] | I_Currency | _Currency | $projection.Currency = _Currency.Currency |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICASHJNLDOC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | View for table TCJ_DOCUMENTS | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view |
Fields (44)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | comp_code | Procuring Comp. Cde | |
| KEY | CashJournal | cajo_number | Cash Journal Number | |
| KEY | FiscalYear | fisc_year | Year | |
| KEY | CashJournalDocumentInternalID | posting_number | Internal doc. number | |
| KEY | Language | _CashJournal | Language | Report Text Language |
| Currency | currency | Valuation Crcy | ||
| DocumentDate | document_date | Reversal Doc Date | ||
| TaxAmountInTransCrcy | h_tax_amount | Tax Amount | ||
| CashJournalDocumentNetAmount | h_net_amount | Net amount | ||
| WhldgTaxDeductedNetPaymentAmt | h_net_payment_wt | Payment Amount | ||
| CashJournalReceiptAmount | h_receipts | Amount | ||
| CashJournalPaymentAmount | h_payments | Amount | ||
| AmountInTransactionCurrency | ||||
| ReceiptRecipientName | bp_name | Recpt recipient | ||
| CashJournalDocument | d_posting_numb | Doc. Number | ||
| AccountingDocExternalReference | document_number | SD Document | ||
| PostingDate | posting_date | Posting Date | ||
| CashJournalDocumentStatus | document_status | Status | ||
| CreatedByUser | accountant | User Name | ||
| CashJournalIsPrinted | print_ind | Print indicator | ||
| TaxRate | tax_percent | Tax Rate Code | ||
| CashJournalDocumentText1 | text1 | Vertikalization Text | ||
| CashJournalDocumentText2 | text2 | Vertikalization Text | ||
| Cheque | check_number | Check Number | ||
| CashJournalChequeIssuer | check_issuer | Check issuer | ||
| BankKey | bank_key | Bank Number | ||
| BankAccount | bank_acct | Bank Account | ||
| BankCountry | bank_ctry | Bank Ctry/Reg. | ||
| CashJournalChequeLot | check_stack | Lot | ||
| CashJournalChequePostingSts | check_status | Check Status | ||
| CashJournalReversalDocument | revbelnr | Reversal Doc.No | ||
| ExchangeRate | exch_rate | Exchange Rate | ||
| BusinessPlace | bupla | Business place | ||
| BusinessSectionCode | secco | Section Code | ||
| CashJournalDocumentIsSplit | split | Splitting | ||
| StateCentralBankPaymentReason | lzbkz | SCB Ind. | ||
| SupplyingCountry | landl | Supply C/R | ||
| ChequeLotFiscalYear | check_fy | Check Fiscal Year | ||
| ValueDate | valuta_date | Value date | ||
| TaxReportingDate | vatdate | Valid From | ||
| _CompanyCode | _CompanyCode | |||
| _CashJournal | _CashJournal | |||
| _FiscalYear | _FiscalYear | |||
| _Currency | _Currency |
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_CashJournalDocument.
-- 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: ICASHJNLDOC
CREATE VIEW I_CashJournalDocument AS
SELECT
comp_code AS CompanyCode,
cajo_number AS CashJournal,
fisc_year AS FiscalYear,
posting_number AS CashJournalDocumentInternalID,
_CashJournal.Language AS Language,
Currency,
document_date AS DocumentDate,
h_tax_amount AS TaxAmountInTransCrcy,
h_net_amount AS CashJournalDocumentNetAmount,
h_net_payment_wt AS WhldgTaxDeductedNetPaymentAmt,
h_receipts AS CashJournalReceiptAmount,
h_payments AS CashJournalPaymentAmount,
( h_net_amount + h_tax_amount ) AS AmountInTransactionCurrency,
bp_name AS ReceiptRecipientName,
d_posting_numb AS CashJournalDocument,
document_number AS AccountingDocExternalReference,
posting_date AS PostingDate,
document_status AS CashJournalDocumentStatus,
accountant AS CreatedByUser,
print_ind AS CashJournalIsPrinted,
tax_percent AS TaxRate,
text1 AS CashJournalDocumentText1,
text2 AS CashJournalDocumentText2,
check_number AS Cheque,
check_issuer AS CashJournalChequeIssuer,
bank_key AS BankKey,
bank_acct AS BankAccount,
bank_ctry AS BankCountry,
check_stack AS CashJournalChequeLot,
check_status AS CashJournalChequePostingSts,
revbelnr AS CashJournalReversalDocument,
exch_rate AS ExchangeRate,
bupla AS BusinessPlace,
secco AS BusinessSectionCode,
split AS CashJournalDocumentIsSplit,
lzbkz AS StateCentralBankPaymentReason,
landl AS SupplyingCountry,
check_fy AS ChequeLotFiscalYear,
valuta_date AS ValueDate,
vatdate AS TaxReportingDate
FROM tcj_documents
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_CashJournal AS _CashJournal ON CompanyCode = _CashJournal.CompanyCode AND CashJournal = _CashJournal.CashJournal AND Language = _CashJournal.Language -- 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_Currency AS _Currency ON Currency = _Currency.Currency -- association [0..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