Skip to Content

Import parameters to freely programmed value help?

Hello everybody,

I'm programming a freely programmed value help in a WDA application, and I need to get an importing parameter to the value help. For example, to show "user service requests" I need to pass the user name to the value help and then the output should be just the requests of some user, and not all requests in the system.

I created a WDA component that uses the interface IWD_VALUE_HELP. I can see that this interface has an event VH_WINDOW_OPENED which also has parameters. How is this event to be triggered, or how do these parameters get filled? Or is there some other way of getting import parameters to the value help?

Thanks and regards,


Add comment
10|10000 characters needed characters exceeded

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2010 at 10:14 AM

    Hello Ira,


    Refer this code and implement yours:

    data: lo_node_info type ref to if_wd_context_node_info.
    data lo_nd_t005 type ref to if_wd_context_node.
    data: ls_t005t type t005t,
    lt_t005t type table of t005t.
    data: lt_valueset type wdr_context_attr_value_list,
    l_value type wdr_context_attr_value.
    " Get node
    lo_nd_t005 = wd_contextu2010>get_child_node( name = wd_thisu2010>wdctx_t005 ).
    lo_node_info = lo_nd_t005u2010>get_node_info( ).
    " Select country lines
    select * from t005t into table lt_t005t
    where spras = syu2010langu.
    " Put country lines into value set
    loop at lt_t005t into ls_t005t.
    l_valueu2010value = ls_t005tu2010land1.
    l_valueu2010text = ls_t005tu2010landx.
    insert l_value into table lt_valueset.
    " Assign value set
    call method lo_node_infou2010>set_attribute_value_set( exporting name = 'LAND1'
    value_set = lt_valueset

    Please let me know if it works.

    Best regards,


    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 20, 2010 at 02:35 PM

    I think what you should be focused on is the method SET_VALUE_HELP_LISTENER that gets created as part of the interface. This method will be called by the framework and gives your freely programmed value help access to the value help listener. In turn via this value help listener you can access the source context element (not just the attribute that triggered the help). This is generally how importing and exporting of data in the freely programmed value help works.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 21, 2010 at 05:28 AM


    When ever you create a freely programmed value help, you use the interface IF_WD_VALUE_HELP_LISTNER.

    Store the refernce of this in the SET_VALUE_HELP_LISTENR method in a component controler attribute.

    this Object will have an attribute named as F4_CONTEXT_ELEMENT. In the same node where you are have the F4 field as attribute, create a username field and assign the value to that field.

    This value can be accessed from value help component using the GET_ATTRIBUTE method of F4_CONTEXT_ELEMENT.



    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 21, 2010 at 10:26 AM

    Thank you for your helpful hints. I experimented with the SET_VALUE_HELP_LISTENER method and was so able to get the import parameters I needed.

    Again thank you to all who contributed!

    Add comment
    10|10000 characters needed characters exceeded