cancel
Showing results for 
Search instead for 
Did you mean: 

Using Custom entity as Value help

rameshputta
Explorer

Hi,

I have custom entity and when I expose it in service definition and see the preview from service binding ,it shows the results.

But when I use this custom entity as value help for one parameter on my abstract entity, it does not return any values...

what am I missing ?

thanks.

View Entire Topic
bhaskar_nagula
Participant
0 Kudos

Hi rameshputta ,

Add the annotation @Consumption.valueHelpDefinition to the field ProductID

  @Consumption.valueHelpDefinition: [{ entity : {name: 'ZCE_RAP_PRODUCTS_####', element: 'Product'  } }]<br>  ProductID,

This will add the custom entity ZCE_RAP_PRODUCTS_#### as a value help for the field ProductId.

Reference: teched2020-DEV268/exercises/ex2/README.md at main · SAP-archive/teched2020-DEV268 · GitHub