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

Screen field text description

Hello, I am developing a webdynpro abap screen, with some fields with search helps.

When I select for ex. the city, from the search help, it shows the city code in the input field, I wanted to add a label next to the input field, with the name of the city. How can I do this?

Thank you,

Mario

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 20, 2011 at 01:05 PM

    Hi Mário,

    Add one attribute in your context node type string. In your wdmodify view based on the value selected in your search help ( i.e. city code ) set the value of this attribute with proper name of the city.

    Now in your layout add a label beside your search help. Select the label for your input field and add the test property of this with the new attribute added in your node. It will display your requirement.

    Reply in case of any issue.

    Regards,

    Monishankar C

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 20, 2011 at 11:28 AM

    Hi Mario,

    You have to create OVS search help. in phase 3 try like this..

    when if_wd_ovs=>co_phase_3.

    if ovs_callback_object->selection is not bound.

                  • TODO exception handling

                  endif.

                  assign ovs_callback_object->selection->* to <ls_selection>.

                  if <ls_selection> is assigned.

                  ovs_callback_object->context_element->set_attribute(

                  name = `ZZNMVGR5`

                  value = <ls_selection>-zznmvgr5 ).

                  ovs_callback_object->context_element->set_attribute(

                  name = `TV_PRODUCTVODE`

                  value = <ls_selection>-TV_PRODUCTVODE ).

                  endif.

                  Cheers,

                  Kris.

                  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.