cancel
Showing results for 
Search instead for 
Did you mean: 

Screen field text description

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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.