cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with dropdown value in RAP Action

ADR
Participant
0 Kudos

Hi Members,

We are using RAP action with parameter for status update. Once clicked on the 'Update Status' action button the current status to be displayed and dropdown of the status values to be displayed for users to choose from. This is what we are looking for:

We are not able to achieve both; either we get the current raw value of the status or the dropdown. Please refer to the screenshots below.

OData V2: abstract entity has same field name as behavior entity field name: In this situation current raw value(not the associated text) is displayed, but NO dropdown list is displayed.

OData V2: abstract entity has different field name from behavior entity field name: In this situation current value is NOT displayed, but dropdown list is displayed.

OData V4: irrespective of the field name in abstract entity and behavior entity, current value is NOT displayed, but dropdown list is displayed.

Any idea, how to make this work? We have an abstract entity for parameter. @Consumption.valueHelpDefinition annotation is used for the dropdown.

Regards,

Anupam

View Entire Topic
Ramjee_korada
Active Contributor
0 Kudos

Hi Anupam,

If you are on BTP environment, you can use below.

// Search Term #ParameterDefaultValue
@UI.defaultValue : #( 'ELEMENT_OF_REFERENCED_ENTITY: CriticalityCode')
criticality_code : abap.int4;

Best wishes,

Ramjee Korada

ADR
Participant
0 Kudos

Thanks for your input Ramjee. Unfortunately, we are trying this at on-prem environment.

Also, I tried this in BTP trial environment just to test. This is working for OData V4 only in BTP environment.

Regards,

Anupam