cancel
Showing results for 
Search instead for 
Did you mean: 

Assigning dictionary search help dynamically

Former Member
0 Kudos

Hi,

    I have a requirement,based on drop down values of field 1 ,dictinary search help associated to field2 should be changed.

for example,field1 has USER ,position etc as the drop down values,if they select user in the drop down field2 search help should be assigned as 'IBO_SEARCH_USER'.if they select position then search help for field2 should be 'ZSRCH_HLP'.

  

   Thanks In advance..

     Vasavi.

Accepted Solutions (0)

Answers (1)

Answers (1)

manigandan_d2
Explorer
0 Kudos

Dear Vasavi,

Please use below code to change the dictinary search help associated to field2.

 

  DATA lo_nd_mara TYPE REF TO if_wd_context_node.
  DATA lo_nd_mara_info  TYPE REF TO if_wd_context_node_info.

  DATA lo_el_mara TYPE REF TO if_wd_context_element.
  DATA ls_mara TYPE wd_this->element_mara.
  DATA lv_mtart TYPE wd_this->element_mara-mtart.

*   navigate from <CONTEXT> to <MARA> via lead selection
  lo_nd_mara = wd_context->get_child_node( name = wd_this->wdctx_mara ).
  lo_nd_mara_info = lo_nd_mara->get_node_info( ).
  lo_nd_mara_info->set_attribute_value_help(
   name =  `MTART`
   value_help_mode = 121
   value_help   = 'ZMTART' ).

Here Mara is node and MTATR is an attribute and ZMTART is an Search help and 121 refers DDIC serch help

Regards,

Mani

Former Member
0 Kudos

Hi,

Not in webdynpro ,need to do it in FPM

Former Member
0 Kudos

Hi Karnam,

Yes it is possible to assign a dynamic search in FPM.

For that you have to configure your screen with GET_DEFAULT_CONFIG method of your feeder class.

Then from the field 1 you have to fire an event and then you have set the value of that in global attribute and you need to remove and add the same configuration again with differnt instance.

Note : Your configuration shuould be blank.Otherwise it will not display anything.

Thanks

Praveen GUpta