cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic value help for an input field

0 Kudos

Hello all,

Could you please help me whether it's possible to change the search help of an input field based on the value of another input field? In other words, would it be possible to assign a search help dynamically to an input field during runtime?

Thanks, regards

Ebru

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi,

Have a try at this :

Thomas has nicely explained it.

Thanx.

Saurav Mago.

arjun_thakur
Active Contributor
0 Kudos

Hi Ebru,

Yes, it is possible using OVS, freely programmed and dictionary help.

For OVS, refer this blog: /people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap

For Dictionary Search Help, refer http://help.sap.com/saphelp_nw70/helpdata/EN/47/9f724642314aabe10000000a42189b/frameset.htm

For freely programmed, refer:

http://help.sap.com/saphelp_nw70/helpdata/EN/47/9ef8cc9b5e3c5ce10000000a421937/content.htm

I hope it helps.

Regards

Arjun

Former Member
0 Kudos

hi,

You can use the below procedure :

data lo_nd_info type if_wd_context_node_info.

lo_nd_info = lo_nd->get_node_info( ).

CALL METHOD lo_nd_info->set_attribute_value_help

EXPORTING

name = 'ATTR1' " Your attribute Name

value_help_mode = '121' " Valid value help mode

value_help = 'Z187442'. " Search help name

The various possible values that you can pass to value_help_mode are as shown below.

deactivated 101

automatic 111

ddic 121

ovs 131

Above mentioned code will help you to enable search help or Deactivate any search help.

I hope it helps.

Thanx.