Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on May 04, 2011 at 05:17 AM
    Add a 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
    Former Member
    Posted on May 03, 2011 at 12:15 PM

    Can anyone please help me up on this.

    Thanks,

    Lina

    Add a comment
    10|10000 characters needed characters exceeded

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.