Skip to Content
author's profile photo Former Member
Former Member

Input Help for TIME type field

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

time-search-help

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Mar 17, 2009 at 11:44 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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 !

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.