P_CL_JournalEntryTotalAmount
Journal Entry Total Amount for Chile Reporting
P_CL_JournalEntryTotalAmount is a Consumption CDS View that provides data about "Journal Entry Total Amount for Chile Reporting" in SAP S/4HANA. It reads from 1 data source (I_GLAccountLineItemRawData) and exposes 6 fields with key fields SourceLedger, CompanyCode, FiscalYear, AccountingDocument. It has 1 association to related views. Part of development package GLO_FIN_IS_CL.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountLineItemRawData | GLAccountLineItem | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_ReportingCurrency | glo_reporting_currency |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Currency | _ReportingCurrency | _ReportingCurrency.Currency = $projection.ReportingCurrency |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SourceLedger | I_GLAccountLineItemRawData | SourceLedger | |
| KEY | CompanyCode | I_GLAccountLineItemRawData | CompanyCode | |
| KEY | FiscalYear | I_GLAccountLineItemRawData | FiscalYear | |
| KEY | AccountingDocument | I_GLAccountLineItemRawData | AccountingDocument | |
| ReportingCurrency | ||||
| _ReportingCurrency | _ReportingCurrency |
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType:{
serviceQuality: #D,
sizeCategory: #XL,
dataClass: #MIXED
}
@VDM: {
private: true,
viewType: #CONSUMPTION
}
define view entity P_CL_JournalEntryTotalAmount
with parameters
P_ReportingCurrency : glo_reporting_currency
as select from I_GLAccountLineItemRawData as GLAccountLineItem
association [0..1] to I_Currency as _ReportingCurrency on _ReportingCurrency.Currency = $projection.ReportingCurrency
{
key GLAccountLineItem.SourceLedger,
key GLAccountLineItem.CompanyCode,
key GLAccountLineItem.FiscalYear,
key GLAccountLineItem.AccountingDocument,
cast( $parameters.P_ReportingCurrency as glo_reporting_currency preserving type ) as ReportingCurrency,
@ObjectModel.foreignKey.association: '_ReportingCurrency'
@Semantics.amount.currencyCode: 'ReportingCurrency'
cast( sum(
case $parameters.P_ReportingCurrency
when GLAccountLineItem.CompanyCodeCurrency
then GLAccountLineItem.AmountInCompanyCodeCurrency
when GLAccountLineItem.GlobalCurrency
then GLAccountLineItem.AmountInGlobalCurrency
when GLAccountLineItem.FreeDefinedCurrency1
then GLAccountLineItem.AmountInFreeDefinedCurrency1
when GLAccountLineItem.FreeDefinedCurrency2
then GLAccountLineItem.AmountInFreeDefinedCurrency2
when GLAccountLineItem.FreeDefinedCurrency3
then GLAccountLineItem.AmountInFreeDefinedCurrency3
when GLAccountLineItem.FreeDefinedCurrency4
then GLAccountLineItem.AmountInFreeDefinedCurrency4
when GLAccountLineItem.FreeDefinedCurrency5
then GLAccountLineItem.AmountInFreeDefinedCurrency5
when GLAccountLineItem.FreeDefinedCurrency6
then GLAccountLineItem.AmountInFreeDefinedCurrency6
when GLAccountLineItem.FreeDefinedCurrency7
then GLAccountLineItem.AmountInFreeDefinedCurrency7
when GLAccountLineItem.FreeDefinedCurrency8
then GLAccountLineItem.AmountInFreeDefinedCurrency8
else
abap.curr'0.00'
end
) as glo_total_amount_inrptgcrcy preserving type ) as TotalAmountInDisplayCrcy,
_ReportingCurrency
}
where GLAccountLineItem.DebitCreditCode = 'S'
group by
GLAccountLineItem.SourceLedger,
GLAccountLineItem.CompanyCode,
GLAccountLineItem.FiscalYear,
GLAccountLineItem.AccountingDocument
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