Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

CDS view multiple optional parameters but any one user must entered

vaibhav1989
Explorer
0 Kudos
253

Hi Experts,

can you please help me out for my requirement.

in my case, i have 3 different OPTIONAL input parameters in CDS view.

and out of this 3 input ANY ONE must be entered , (out of 3 input any one should be dynamically Mandatory )
and this should be CDS level only (RSRT Tcode level)

2 REPLIES 2

Jelena_Perfiljeva
Active Contributor
0 Kudos
186

Sorry, I'm not even sure what "RSRT Tcode level" is but why does it needs to be "CDS level only"?

I feel you might be trying to use CDS views in a way they weren't intended to. As powerful as they are, CDS views are mostly about data modeling. What you are describing is a function of the application layer / UI. If this was an ABAP program and you wanted to do this on selection screen, for example, you couldn't achieve this by using settings alone, you'd have to write ABAP code to do custom validations. Well, CDS views are not an ABAP program. So it seems rather unreasonable to expect them to provide such features.

I seriously doubt you can accomplish something like that in CDS views alone. And judging by the fact there has been no response from anyone for 2 weeks, I'm likely not wrong.

vaibhav1989
Explorer
0 Kudos
186

I am using cds for AO reporting ,

I have 5 different input values , all are optional , while running AO report any one I want to make it as mandatory. And it can b any out of 5 any one must be entered / user must provide input fir any one atlist