cancel
Showing results for 
Search instead for 
Did you mean: 

use different F4 help for the same imput field

daniel_humberg
Contributor
0 Kudos

I have an input field that is bound to a context node, and the context node defines a DDIC search help.

Now, I would like to use 4 different search helps (not a collective search help though) for the same field, depending on certain settings. Can I dynamically change the value help of that context node? how?

Accepted Solutions (1)

Accepted Solutions (1)

krishnendu_laha
Active Contributor
0 Kudos

hello,

I think so...

you have to set the property "Input help parameter" to User Defined Programming and write your own code...

Thanks.

daniel_humberg
Contributor
0 Kudos

my idea was not to write my own search help code, but to use different F4 helps (= different DDIC search helps) in different situations. Is that possible?

Former Member
0 Kudos

hi please refer this code .

hope it will work

data lo_nd_info type if_wd_context_node_info.
lo_nd_info = lo_nd->get_node_info( ).
if condition1 = true .


CALL METHOD lo_nd_info->set_attribute_value_help
EXPORTING
name = 'Carrid'              "  name of attribute
value_help_mode = '2'        " value from data elemnt WDY_CONTEXT_VALUE_HELP_MODE
value_help = 'S_CARRIER_ID'. " search help name 

else .

CALL METHOD lo_nd_info->set_attribute_value_help
EXPORTING
name = 'Carrid'              "  name of attribute
value_help_mode = '2'        " WDY_CONTEXT_VALUE_HELP_MODE
value_help = 'H_T000'.        " search help name

change your serch help here

endif .

regards

chinnaiya P

daniel_humberg
Contributor
0 Kudos

Works. Thx.

(but the type is '121', not '2')


            lo_nd_z_info->set_attribute_value_help( name            = 'PROJECT_VALUE'   " name of context attribute
                                                   value_help_mode = if_wd_context_node_info=>c_value_help_mode-ddic "=121 
                                                   value_help      = 'DPR_PROJECT_T' ). " search help name

Answers (0)