P_SameAcctDescJrnlEntrItm
Same G/L Account and Description JE Item
P_SameAcctDescJrnlEntrItm is a Consumption CDS View that provides data about "Same G/L Account and Description JE Item" in SAP S/4HANA. It reads from 1 data source (I_GLAccountLineItemRawData) and exposes 14 fields with key fields CompanyCode, SourceLedger, GLAccount, AccountingDocumentType, DebitCreditCode.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountLineItemRawData | I_GLAccountLineItemRawData | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_ToKeyDateDays | far_number | |
| P_KeyDate | vdm_v_key_date |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PGRCSAMEACCTDESC | view | |
| EndUserText.label | Same G/L Account and Description JE Item | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | ||
| KEY | SourceLedger | SourceLedger | ||
| KEY | GLAccount | GLAccount | ||
| KEY | AccountingDocumentType | AccountingDocumentType | ||
| KEY | DebitCreditCode | DebitCreditCode | ||
| KEY | BusinessTransactionType | BusinessTransactionType | ||
| KEY | AccountingDocumentHeaderText | _JournalEntry | AccountingDocumentHeaderText | |
| NmbrOfDplJournalEntryItem | ||||
| _CompanyCode | _CompanyCode | |||
| _Ledger | _Ledger | |||
| _GLAccountInCompanyCode | _GLAccountInCompanyCode | |||
| _AccountingDocumentType | _AccountingDocumentType | |||
| _DebitCreditCode | _DebitCreditCode | |||
| _BusinessTransactionType | _BusinessTransactionType |
@AbapCatalog.sqlViewName: 'PGRCSAMEACCTDESC'
@EndUserText.label: 'Same G/L Account and Description JE Item'
@VDM.viewType: #CONSUMPTION
@VDM.private: true
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AbapCatalog.buffering.status: #NOT_ALLOWED
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass: #MIXED
define view P_SameAcctDescJrnlEntrItm
with parameters
P_ToKeyDateDays :far_number,
@Environment.systemField: #SYSTEM_DATE
P_KeyDate :vdm_v_key_date
as select from I_GLAccountLineItemRawData
{
@ObjectModel.foreignKey.association: '_CompanyCode'
key CompanyCode,
@ObjectModel.foreignKey.association: '_Ledger'
key SourceLedger,
@ObjectModel.foreignKey.association: '_GLAccountInCompanyCode'
key GLAccount,
@ObjectModel.foreignKey.association: '_AccountingDocumentType'
key AccountingDocumentType,
@ObjectModel.foreignKey.association: '_DebitCreditCode'
key DebitCreditCode,
@ObjectModel.foreignKey.association: '_BusinessTransactionType'
key BusinessTransactionType,
key _JournalEntry.AccountingDocumentHeaderText as AccountingDocumentHeaderText,
count(*) as NmbrOfDplJournalEntryItem,
_CompanyCode,
_Ledger,
_GLAccountInCompanyCode,
_AccountingDocumentType,
_DebitCreditCode,
_BusinessTransactionType
}
where
CreationDate >= dats_add_days ($parameters.P_KeyDate,($parameters.P_ToKeyDateDays)*(-1), 'INITIAL' )
and IsReversal = ''
and IsReversed = ''
and _JournalEntry.IntercompanyTransaction = ''
and PartnerCompany = ''
and AmountInTransactionCurrency <> 0
and _JournalEntry.AccountingDocumentHeaderText <> ''
and _JournalEntry._User.IsTechnicalUser = ''
group by
CompanyCode,
SourceLedger,
GLAccount,
AccountingDocumentType,
DebitCreditCode,
BusinessTransactionType,
_JournalEntry.AccountingDocumentHeaderText
having
count(*) > 1
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_GLACCOUNTLINEITEMRAWDATA",
"I_JOURNALENTRY",
"I_USER"
],
"ASSOCIATED":
[
"I_ACCOUNTINGDOCUMENTTYPE",
"I_BUSINESSTRANSACTIONTYPE",
"I_COMPANYCODE",
"I_DEBITCREDITCODE",
"I_GLACCOUNTINCOMPANYCODE",
"I_LEDGER"
],
"BASE":
[
"I_GLACCOUNTLINEITEMRAWDATA"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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