cancel
Showing results for 
Search instead for 
Did you mean: 

Input Help for TIME type field

Former Member
0 Kudos

I saw below discussion regarding a dropdown for a "TIME" type field.

It's a resuable component (that Thomas Jung created) and find it very slick.

I just couldn't make it to work. I'm getting a dump when I pressed the dropdown on the "TIME" field.

I was wondering, has anyone used this in conjunction with select-options (WDR_SELECT_OPTIONS) ?

I'm getting a system-dump, "Component usage VALUE_HELP does not exist". I double checked the name that I used on the "USED COMPONENT" tab and it is VALUE_HELP.

During method ADD_SELECTION_FIELD (for IF_WD_SELECT_OPTIONS) I'm using two parameters I_VALUE_HELP_TYPE = 'APPLDEV' and I_VALUE_HELP_ID = 'VALUE_HELP'.

Maybe I'm not using the right parameters ?

Anyway, I would appreciate if anyone could give me directions to correct the problem.Or maybe there is another and better way of having an input help for a "TIME" type field on select-option.

Thanks.

Vic

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

That is because the TIME is a freely programmed value help and freely programmed value helps are not supported by the Select-Options component. That limited is listed in the online help:

Type of input help specified as type IF_WD_VALUE_HELP_HANDLER.

Note that only ABAP Dictionary-based input help and OVS input help are supported; freely programmable input help is not supported.

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/bf07361248003de10000000a11466f/frameset.htm

The reason for this is that the freely programmed value help is accessed via a component usage. The Select-Options however are a separate component. They have no declaration to your components, component usages. Therefore they produce the error that the component usage doesn't exist - which is correct. It doesn't exist in the Select-Options Component.

Former Member
0 Kudos

Big T,

Ok, so now I understand the error a lot better. It could not recognize the component usage VALUE_HELP on the Select-Options, which all along I'm thinking it could not recognize VALUE_HELP from my host WDA.

Thanks for the explanation.

Hopefully in the future, WDA would support the usual dropdown for TIME field as it does now in the normal ABAP SELECT-OPTIONS. This way we don't have to do a freely programmed input help.

Cheers !

VO

By the way, the SAPLink program rocks ! I easily imported the nugget you created and was very starightforward. Kudos to all involved on the SAPLink project !

Answers (0)