P_DisplayCurrency

DDL: P_DISPLAYCURRENCY SQL: PDISPLAYCURRENCY Type: view CONSUMPTION

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)

SourceAliasJoin Type
I_SAPClient I_SAPClient from

Annotations (6)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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":""
}
}*/