Skip to Content
0
Apr 21, 2009 at 02:22 PM

Using component WDR_SELECT_OPTIONS with own help value (IWD_VALUE_HELP)

71 Views

Hi,

I use the component WDR_SELECT_OPTIONS to build a selection screen. It works fine.

For one field we need a very sepecial F4 help value. I developed an own compopnent (implemented interface IWD_VALUE_HELP). This works fine if I use it for a input field.

Now I want to use the help value component in the component WDR_SELECT_OPTIONS..

I think this should be possible to add the selection field (add_selection_field) and pass the help component, but I don't know how.

I studied WDR_TEST_SELECT_OPTIONS, espacially the method onactionon_special_cases, but there is no example. Probably I need somthing like this:

    wd_this->m_handler->add_selection_field(
     ...
      i_value_help_type = if_wd_value_help_handler=>co_prefix_appldev ).
     

But how do I pass the component?

My workaround:

I copied WDR_SELECT_OPTIONS to ZWDR_SELECT_OPTIONS and connected this new component with my help component.

But I am unhappy with this solution, because of the copy of SAP-code.

Any suggestions?

Thanks for help!

Best regrads

Renald