Enterprise Resource Planning Blogs by SAP
Get insights and updates about cloud ERP and RISE with SAP, SAP S/4HANA and SAP S/4HANA Cloud, and more enterprise management capabilities with SAP blog posts.
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member205880
Active Participant
34,203
Hi, in this post I would like to share trick for adding value help to parameter in analytical query.

Parameters in ABAP CDS view could be used as mandatory, single value variable, which could be used when split of calculation logic required. By default parameters don't have value help, like filtration option based on fields at consumption level.

Step-by-step:

I. Create ABAP CDS view for dictionary based on table or some dummy table (like in this blog).





II. Create ABAP CDS cube with required logic.



Notes:

  • For demo I use just select form T000 table.

  • There is parameter p_par used in logic.

  • This parameter is not linked to any of fields in ABAP CDS view.


III. Create ABAP CDS analytical query with required logic.



Notes:

  • Usually all needed associations are created at cube level, but at this case I suppose it is possible to make exception

  • Don't forget to code name of field in association

  • Don't forget to add consumption view type

  • Now I couldn't make texts visible for value help, but to have value help for key values is much more better compared to free field option for parameter

  • User can manually enter value not from value help, restriction is not guaranteed


IV. Result query in Analysis for Excel. Value help button exist.



For simple parameter dictionaries this approach could be useful.



Thank you for attention!
16 Comments