Skip to Content
author's profile photo
Former Member

Value help in Online Form

Hi,

I am creating an online form.using webdynpro.

My requirement is that I require value help in dropdowns directly from the Sap.

I have tried using 'Value help drop down list' from webdynpronative tab in object library.But still it is not working.

Kindly help.

Thanks,

Lina

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Posted on May 04, 2011 at 05:17 AM
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Lina,

      Yes, there are two elements to the enumerated drop down, the value and the text. The value is self-explanatory...it will be the value of a specific record. The text is what will be displayed in the drop down. You could set these to be the same if you wish. I have done that before.

      So in your case...it might look something like this....

      DATA: lr_node_info TYPE REF to if_wd_context_node_info,
            lt_value_set TYPE wdr_context_attr_value_list.
      
      lr_node_info = wd_context->get_node_info( ).
      lr_node_info = lr_node_info->get_child_node(wd_this->wdctx_YOUR_NODE).
      
      select land1 AS value landx AS text FROM T005 
             into table lt_value_set
             where spras = sy-langu.
      
      lr_node_info->set_attribute_value_set(
             exporting
               name      = 'ATTRIBUTE_NAME'
               value_set = lt_value_set ).

      Then you would just create the enumerated drop down in your form and bind it to your attribute.

  • author's profile photo
    Former Member
    Posted on May 03, 2011 at 12:15 PM

    Can anyone please help me up on this.

    Thanks,

    Lina

    Add comment
    10|10000 characters needed characters exceeded