Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dynamically change search help associated with a field

Hi all,

I have a field on my web dynpro app which is associated with a table field and displays fine with the correct search help. Is there an easy way to dynamically change the search help it uses? For example could i add some code to the WDDOMODIFYVIEW method which changes which search help this field used based on certain criteria?



Former Member
Former Member replied


You can achieve this feature without writing any code in WDDOMODIFYVIEW.

*Get the reference of context node information

Data: lo_node type ref to if_wd_context_node.

data lo_node_info type ref to if_wd_context_node_info.

lo_node = wd_context->get_child_node( 'Your context node name' ).

lo_node_info = lo_node>get_node_info( ).

*To set the search help, call the method

CALL METHOD lo_node_info->set_attribute_value_help


name = 'Your attribute name with which you want to attach search help at run time''

value_help_mode = 101

value_help = 'your search help name of component usage name as per the search help selected'

Below values of value help mode you can use

deactivated = 101,

automatic = 111,

ddic = 121,

ovs = 131,

application_defined = 141,

Add this code to appropriate hook method or action handler which decides at run time for the value help attachment.


Vishal Kapoor

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question