C_InactiveGLAcctJrnlEntry
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)
| Name | Type | Default |
|---|---|---|
| P_GLAccountInactiveDays | far_number | |
| P_ToKeyDateDays | far_number |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | P_GLAcctMaxPostgDteBfrKDte | _GLAcctMaxPostgDteBfrKDte | $projection.GLAccount = _GLAcctMaxPostgDteBfrKDte.GLAccount and $projection.CompanyCode = _GLAcctMaxPostgDteBfrKDte.CompanyCode |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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