cancel
Showing results for 
Search instead for 
Did you mean: 

Replace or enhance the standard search help in webdynpro

Former Member
0 Kudos

Hi

I want to enhance the standard search help PREMN which is assigned to the field in webdynpro . I want to replace this search help with another search help PREMP. Kindly help me how to proceed in this issue.

Accepted Solutions (1)

Accepted Solutions (1)

former_member197425
Active Participant
0 Kudos

Hi Srikanth,

We can change the search help value try with below process it may change ..

Create enhacement for the View & call the below methods in POSTEXIT method of WDINIT method.

1.Read the node which has required attribute to be changed.

2.Get the reference of node into a ref. variable of type IF_WD_CONTEXT_NODE_INFO.

3.Call SET_ATTRIBUTE_VALUE_HELP method from the node metadata reference.To this method

pass ATTRIBUTE name & SEARCH HELP name.

Sample code:

DATA lo_nd_n_node TYPE REF TO if_wd_context_node.
     DATA lo_nd_nref   TYPE REF TO if_wd_context_node_info.
     DATA lo_el_n_node TYPE REF TO if_wd_context_element.
     DATA ls_n_node TYPE wd_this->element_n_node.
*   navigate from <CONTEXT> to <N_NODE> via lead selection
     lo_nd_n_node = wd_context->get_child_node( name = wd_this->wdctx_n_node ).
*   get element via lead selection
     lo_el_n_node = lo_nd_n_node->get_element( ).    
*---get node info   
     CALL METHOD lo_nd_n_node->get_node_info
       RECEIVING
         node_info = lo_nd_nref.        
*---
     CALL METHOD lo_nd_nref->set_attribute_value_help
       EXPORTING
         name            = 'ATT1' "Attribute name
*        value_help_mode = C_VALUE_HELP_MODE-AUTOMATIC
         value_help      = 'search help name ' "
         .

Thanks,

Nandi

Answers (2)

Answers (2)

Former Member
0 Kudos

You can enhance the view by adding a new field that has the new search help. Then, place this field on the view and hide the standard field. You should take care of moving the data between the custom and standard field in the WDDoBeforeAction, WDDoInit, and/or, WDDoModifyView.

Former Member
0 Kudos

field which have this search help is standard?