cancel
Showing results for 
Search instead for 
Did you mean: 

CDS Abstract entity Questions

0 Kudos

Hello,

I have an action with an abstract entity where I have couple of input parameters. I would like to know ..

1. If we can make these input parameters as mandatory ?

2. Can we pass selected record on the list report to one of the parameters on the abstract entity ?

3. Can we default values into these parameters ?

4. How can we hide parameters ? I tried using @UI.hidden: true but it does not work.

thank you .

Accepted Solutions (1)

Accepted Solutions (1)

Ramjee_korada
Active Contributor
0 Kudos

Hi Balu,

See if below answer help. I could solve with SAP-BTP ABAP environment

https://answers.sap.com/answers/13945315/view.html

0 Kudos

Thank you!

that helps with my 2nd and 3rd questions. Let me try that out.

Do you know the answer for 1st and 4th question ? thanks

Ramjee_korada
Active Contributor
0 Kudos

1. I think it's not possible by standard but you can throw an error from the action implementation

4. It worked for me. @ UI.hidden in the same example.

Answers (1)

Answers (1)

DiegoValdivia
Participant
0 Kudos

You can make Input parameters as mandatory using the following annotation

@ObjectModel.mandatory: true

I used it in one of my abstract entities. This is the result: