C_InactiveGLAcctJrnlEntry

DDL: C_INACTIVEGLACCTJRNLENTRY SQL: CGRCINACTACJREN Type: view CONSUMPTION Package: FINS_FIS_GRC_APPS

Journals posted to inactive GLAccounts

C_InactiveGLAcctJrnlEntry is a Consumption CDS View that provides data about "Journals posted to inactive GLAccounts" in SAP S/4HANA. It has 1 association to related views. Part of development package FINS_FIS_GRC_APPS.

Parameters (2)

NameTypeDefault
P_GLAccountInactiveDays far_number
P_ToKeyDateDays far_number

Associations (1)

CardinalityTargetAliasCondition
[1..1] P_GLAcctMaxPostgDteBfrKDte _GLAcctMaxPostgDteBfrKDte $projection.GLAccount = _GLAcctMaxPostgDteBfrKDte.GLAccount and $projection.CompanyCode = _GLAcctMaxPostgDteBfrKDte.CompanyCode

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CGRCINACTACJREN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Journals posted to inactive GLAccounts view
VDM.viewType #CONSUMPTION view
OData.publish true view
AbapCatalog.buffering.status #NOT_ALLOWED view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view

Fields (45)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY JournalEntry AccountingDocument Journal Entry
KEY LedgerGLLineItem LedgerGLLineItem Journal Entry Item
KEY Ledger Source Ledger
AmountInCompanyCodeCurrency AmountInCompanyCodeCurrency Local Crcy Amt
AccountingDocumentCreationDate _JournalEntry AccountingDocumentCreationDate Journal Entry Date
AccountingDocumentType AccountingDocumentType Journal Entry Type
GLAccount GLAccount General Ledger
PostingDate PostingDate Posting Date for GR
FiscalYearPeriod FiscalYearPeriod Period/Year
AccountingDocCreatedByUser AccountingDocCreatedByUser User which created overhead document
TransactionCode _JournalEntry TransactionCode Transaction Code
ReverseDocument _JournalEntry ReverseDocument Reversed With
DocumentReferenceID _JournalEntry DocumentReferenceID Reference
AccountingDocumentCategory AccountingDocumentCategory Journal Entry Category
BusinessTransactionType BusinessTransactionType Bus.transaction
ReferenceDocumentType ReferenceDocumentType Reference Document Type
CompanyCodeCurrency CompanyCodeCurrency Local Currency
ChartOfAccounts ChartOfAccounts Node Class
ControllingArea ControllingArea Controlling Area
ProfitCenter ProfitCenter Profit Center
CostCenter CostCenter Cost Center
DocumentDate DocumentDate Journal Entry Date
FinancialAccountType FinancialAccountType Fin. Account Type
Supplier Supplier Supplier
LastChangeDate _JournalEntry LastChangeDate Time Stamp
LatestPostingDateBeforeKeyDate
_CompanyCode _CompanyCode
_FiscalYear _FiscalYear
_JournalEntry _JournalEntry
_Ledger _Ledger
_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts
_AccountingDocumentType _AccountingDocumentType
_AccountingDocumentCategory _AccountingDocumentCategory
_BusinessTransactionType _BusinessTransactionType
_ReferenceDocumentType _ReferenceDocumentType
_CompanyCodeCurrency _CompanyCodeCurrency
_ChartOfAccounts _ChartOfAccounts
_CostCenter _CostCenter
_ProfitCenter _ProfitCenter
_ControllingArea _ControllingArea
_Supplier _Supplier
_GLAccountInCompanyCode _GLAccountInCompanyCode
_FinancialAccountType _FinancialAccountType

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_InactiveGLAcctJrnlEntry.
-- 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: CGRCINACTACJREN
-- Parameters: P_GLAccountInactiveDays : far_number, P_ToKeyDateDays : far_number

CREATE VIEW C_InactiveGLAcctJrnlEntry AS
SELECT
  CompanyCode,
  FiscalYear,
  AccountingDocument AS JournalEntry,
  LedgerGLLineItem,
  cast(SourceLedger as rldnr preserving type ) AS Ledger,
  AmountInCompanyCodeCurrency,
  _JournalEntry.AccountingDocumentCreationDate AS AccountingDocumentCreationDate,
  AccountingDocumentType,
  GLAccount,
  PostingDate,
  FiscalYearPeriod,
  AccountingDocCreatedByUser,
  _JournalEntry.TransactionCode AS TransactionCode,
  _JournalEntry.ReverseDocument AS ReverseDocument,
  _JournalEntry.DocumentReferenceID AS DocumentReferenceID,
  AccountingDocumentCategory,
  BusinessTransactionType,
  ReferenceDocumentType,
  CompanyCodeCurrency,
  ChartOfAccounts,
  ControllingArea,
  ProfitCenter,
  CostCenter,
  DocumentDate,
  FinancialAccountType,
  Supplier,
  _JournalEntry.LastChangeDate AS LastChangeDate,
  _GLAcctMaxPostgDteBfrKDte(P_ToKeyDateDays:$parameters.P_ToKeyDateDays).LatestPostingDateBeforeKeyDate AS LatestPostingDateBeforeKeyDate
LEFT OUTER JOIN P_GLAcctMaxPostgDteBfrKDte AS _GLAcctMaxPostgDteBfrKDte ON GLAccount = _GLAcctMaxPostgDteBfrKDte.GLAccount AND CompanyCode = _GLAcctMaxPostgDteBfrKDte.CompanyCode  -- association [1..1]
;