Skip to Content

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!

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

  1. Sergey Shablykin

    Another nice blog by Maxim!

    Some 5 cents: because of absence of text for parameter’s value you may decide to use text as parameter key. Please bear in mind that:

    a) text being as key will conver to uppercase automatically

    b) no spaces allowed. No error will be generated but you just won’t see your value in list.

    So you can’t use key values like ‘Magic Wand’ or ‘MAGIC WAND’. You have to use ‘MAGIC_WAND’.

    Hope, issue with absence of text for parameter’s value will be fixed soon and my comment will depreciate.

    (0) 

Leave a Reply