cancel
Showing results for 
Search instead for 
Did you mean: 

Abstract Entity with Parameters - RAP

06-20-2023 5:27 PM
muthuhana37 Explorer
5187 views 5 comments
0 Likes
SAP Managed Tags
Subscribe

Hello Experts,

Why do we need "with parameters" option in the Abstract entity. Where it will be applicable ?

I have a action with an abstract entity as an input parameter. I did not able to access the parameter list in the EML neither seen in the UI popup.

https://help.sap.com/doc/abapdocu_753_index_htm/7.53/en-US/abencds_f1_entity_parameter_list.htm

Thanks a lot.

Best Regards,

Muthu

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

ssarban
Product and Topic Expert
Product and Topic Expert

Hi Muthu,

you can use the abstract entity inside your behavior definition and define an action. For the action you can then refer to your abstract entity as a parameter. Have a look on our documentation here. It is explained how to use it. Please be aware that it can be used for OData V4 only.

Regards,

Sevdiye

muthuhana37
Explorer
0 Likes

Hello ssarban

Thanks for your response! The documentation were helpful.

But still I am missing to understand why we have with parameters in the Abstract entity definition.

For eg, in this abstract entity, what is the purpose of this parameters p1, p2, p3. I was not able to access these parameters in the EML as well

Best Regards,

Muthu

ssarban
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Muthu,

you don't need to use parameters. This is not mandatory. In case you want to define parameters for your abstract entity definition, I recommend you to read this. Here it is explained how to work with parameters.

Regards,

Sevdiye

muthuhana37
Explorer
0 Likes

Hello ssarban,

The link you have recommended belongs to custom entity not abstract.

So declaring with parameters or without parameters would be the similar behaviour for the abstract entity ?

Best Regards,

Muthu

ssarban
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Muthu,

the link that I have shared explains how to use and implement parameters (ignore that it shows the example for custom entities). You can apply it for your case. As you asked me about understand the declaration of parameters, this explains it well.

Regards,

Sevdiye