on ‎2020 Jul 27 3:53 PM
Hi Gurus,
Please help, how to pass user default parameter value to KPI tile/Drilldown report. Please find below screenshot for what value I am trying to access in Tile/Drilldown report.

When user get into the Fiori account user should be able to get records from his/her default Warehouse.

As per my knowledge this can be done by maintaining values in Filter and Parameter section but I don't know what value to maintained and what changes are needed in my CDS view (apart from making it parameterized).
If there is any reference, please suggest.
Thanks-
Abhishek
Request clarification before answering.
Hi ama_touzani13
I got it working as below... Posting solution may be helpful for someone...
@Consumption : Helped solving problem.@AbapCatalog.sqlViewName: 'ZTESTPARAM'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'CDS with Parameter test'
@VDM.viewType: #CONSUMPTION
@OData.publish: true
define view ZTEST_PARAM
with parameters
@Consumption.hidden: true
@Consumption.derivation: { lookupEntity: 'I_UserParameter_F2200',
resultElement: 'UserParameterValue', binding: [
{ targetElement : 'UserParameter' , type : #CONSTANT, value : '/SCWM/LGN' } ]
}
p_LGNUM : /scwm/lgnum
as select from ZTEST_PARAM_I (p_lgnum : $parameters.p_LGNUM){
WarehouseNo,
WarehouseTask,
WarehouseProcessCategory,
MaterialId,
DocumentCategory,
USERNM,
@DefaultAggregation: #SUM
cast ( 1 as abap.int4 ) as countRecord
}Thanks-
Abhishek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.