Skip to Content
avatar image
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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • 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 comment
                  10|10000 characters needed characters exceeded