I_CashJournalDocument

DDL: I_CASHJOURNALDOCUMENT SQL: ICASHJNLDOC Type: view BASIC

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)

SourceAliasJoin Type
tcj_documents tcj_documents from

Associations (4)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;