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

Dropdown in web dynpro

Hi All,

Could you tell me how I can add selection in a dropdow in a web dynpro?

SOTR_EDIT or others ?

Thanks in advance,

Virginie

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Sep 06, 2010 at 12:06 PM

    Hi,

    Could you elaborate more?

    SOTR_EDIT is a transaction where you create Alias OTR texts.

    [http://help.sap.com/saphelp_bw30a/helpdata/en/cb/7dd43a2f544050e10000000a11402f/content.htm]

    Regards,

    Priya

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2010 at 12:06 PM

    please find the below code sample.

    fill values into value set table

    ls_value_set-key = '747-400'.

    ls_value_set-value = '747-400'.

    append ls_value_set to lt_value_set.

    ls_value_set-key = 'A310-300'.

    ls_value_set-value = 'A310-300'.

    append ls_value_set to lt_value_set.

    ls_value_set-key = 'A319'.

    ls_value_set-value = 'A319'.

    append ls_value_set to lt_value_set.

    ls_value_set-key = 'DC-10-10'.

    ls_value_set-value = 'DC-10-10'.

    append ls_value_set to lt_value_set.

    • set values to context attribute

    lr_nodeinfo_flightinfo->set_attribute_value_set( name = 'PLANETYPE' value_set = lt_value_set ).

    Edited by: sathish kumar swamy on Sep 6, 2010 2:08 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 06, 2010 at 12:08 PM

    Hi,

    Go through this [link|https://cw.sdn.sap.com/cw/docs/DOC-39107]

    or

    Write the below code in the WDDOINIT to initialize the drop down values which you have asked and the code is .

    DATA : lo_nd_self_flights_ui TYPE REF TO if_wd_context_node,
                nodeinfo_self_fl TYPE REF TO if_wd_context_node_info.
    
    DATA: lt_value_set TYPE TABLE OF wdr_context_attr_value,
               ls_value TYPE wdr_context_attr_value.
    
    DATA : lt_resp_rm_org TYPE /mrss/t_resp_rm_org_tab,
                ls_resp_rm_org TYPE /mrss/t_resp_rm_org.
    
    SELECT * FROM ztable INTO TABLE lt_resp_rm_org
    
    LOOP AT lt_resp_rm_org INTO ls_resp_rm_org.
        ls_value-value = ls_resp_rm_org-resp_rm_org.
        ls_value-text = ls_resp_rm_org-description.
        APPEND ls_value TO lt_value_set.
       CLEAR: ls_value, ls_resp_rm_org.
    ENDLOOP.
    
    lo_nd_self_flights_ui = wd_context->get_child_node( name = wd_this->wdctx_self_flights_ui ).
    nodeinfo_self_fl = lo_nd_self_book_ui->get_node_info( ).
    nodeinfo_self_fl->set_attribute_value_set( name = 'RESPONSIBLE_RM_ORG' value_set = lt_value_set ).
    

    cheers,

    Bhavana

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 15, 2010 at 09:27 AM

    We create a enhacment for the component

    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.