cancel
Showing results for 
Search instead for 
Did you mean: 

ValueHelp with parameters where the value help provider entity is a custom entity with parameters

bogdan_rosu
Product and Topic Expert
Product and Topic Expert
0 Kudos
230

Hello, 

I am trying to use a valueHelp for which the value help provider entity is a custom entity with parameters for which I will have a class that implements a custom query in an ABAP RAP app. 

Here is my custom entity: 

@EndUserText.label: 'Value Help Entity for Appointment Slots'

@ObjectModel.query.implementedBy: 'ABAP:ZCL_APPOINTMENT_SLOTS_QUERY'

@odata.entityType.name: 'ZVH_HA_APPOIN_SLOTSParameters'

@odata.entitySet.name: 'ZVH_HA_APPOIN_SLOTS'

define custom entity ZVH_HA_APPOIN_SLOTS

with parameters

appointmentDate : zha_date_dats,

doctorId: zha_doctor_id

{

key appointTime: zha_time;

}

 

Here is the valueHelp Annotation:

 

@Consumption.valueHelpDefinition: [{

entity: {name: 'ZVH_HA_APPOIN_SLOTS', element: 'appointTime'},

additionalBinding: [

{ parameter:'appointmentDate' , localElement: 'AppointmentDate' },

{ parameter: 'doctorId', localElement:'DoctorId' }

]

}]

AppointmentHour,

 The custom view is exposed in service:

@EndUserText: {

label: 'Service Definition for ZC_HA_APPOIN'

}

@ObjectModel: {

leadingEntity: {

name: 'ZC_HA_APPOIN'

}

}

define service ZUI_HA_APPOIN_O4

provider contracts odata_v4_ui {

expose ZC_HA_APPOIN as Appoint;

expose ZC_HA_APP_MS as AppMS;

expose ZC_HA_DOCUMENTS_APPOIN as Documents;

expose ZVH_HA_APPOIN_SLOTS;

}

When I try to click on the field AppointmentHour in UI (in preview) I get error in the browser console and I get stuck there:

 

2025-03-27 12:27:36.371000 Unknown child ZVH_HA_APPOIN_SLOTSSet of com.sap.gateway.srvd_f4.zvh_ha_appoin_slots.v0001.Container - /ZVH_HA_APPOIN_SLOTSSet/ sap.ui.model.odata.v4.ODataMetaModel

2025-03-27 12:27:36.372000 Inconsistent value help metadata: Entity /ZVH_HA_APPOIN_SLOTSSet is not defined -

2025-03-27 12:27:36.372000 selectedInfo or selectedContent undefined -

 

I do not arrive with the flow in the class : zcl_appointment_slots_query because it stops at this error.

 

I have attached also a screen shot with the error.

 

Would you please help?

 

Thank you

 

Regards

Bogdan

 

View Entire Topic
fabianfellhauer
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Bogdan,

quite difficult to judge the root cause with the information given below. I recommend you to open an incident for this issue.

Thank you and best regards

Fabian

bogdan_rosu
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Fabian,

I could provide any additional info. Just let me know what would be useful. 

On the other hand, could you help with platform/portal where I could open a ticket?

 

Thank you

Regards

Bogdan

fabianfellhauer
Product and Topic Expert
Product and Topic Expert
Please make use of SAP for Me (https://support.sap.com/en/index.html)
bogdan_rosu
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Fabian,

I have tried to look into  SAP for Me (https://support.sap.com/en/index.html). Into service and support area, and I tried to open a ticket on get support area. 

here I was requested to input a customer name. But This is not a customer issue. I have followed ABAP Academy and I did some training application where I got this problem. 

I am mot sure how to proceed with this. Would be possible to give me some additional info or to redirect me?

Thank you

Regards

Bogdan