P_DisplayCurrency
Display Currency of the Total Amount KPI
P_DisplayCurrency is a Consumption CDS View that provides data about "Display Currency of the Total Amount KPI" in SAP S/4HANA. It reads from 1 data source (I_SAPClient) and exposes 3 fields with key field PurgCatUUID.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SAPClient | I_SAPClient | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | PDISPLAYCURRENCY | view | |
| EndUserText.label | Display Currency of the Total Amount KPI | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurgCatUUID | PurgCatUUID | ||
| PurchasingCategory | PurchasingCategory | |||
| DisplayCurrency | I_SAPClient | GroupCurrency |
@VDM.private: true
@VDM.viewType: #CONSUMPTION
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.sqlViewName: 'PDISPLAYCURRENCY'
@EndUserText.label: 'Display Currency of the Total Amount KPI'
define view P_DisplayCurrency
as select from I_SAPClient join I_PurchasingCategory on PurgCatUUID = PurgCatUUID
{
key PurgCatUUID,
PurchasingCategory,
@Semantics.currencyCode:true
I_SAPClient.GroupCurrency as DisplayCurrency
}
//define view P_DisplayCurrency
//with parameters
// @Consumption.hidden: true
// @Environment.systemField: #SYSTEM_DATE
// P_KeyDate : sydate
// as select distinct from C_SupplierByPurchasingCat( P_KeyDate: $parameters.P_KeyDate) as SuplrByPurgCat
//
//{
// SuplrByPurgCat.PurgCatUUID,
// min(SuplrByPurgCat.SupplierDisplayCurrency ) as DisplayCurrency
//} group by PurgCatUUID
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PURCHASINGCATEGORY",
"I_SAPCLIENT"
],
"ASSOCIATED":
[],
"BASE":
[],
"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