cancel
Showing results for 
Search instead for 
Did you mean: 

Launch F4 help on selecting a tab in tabstrip

Former Member
0 Kudos

Hi Friends,

I have a requirement where in one tab, I need to launch standard search help (ddic) component and in other tab I need to open a form. How to launch the search help by directly selecting the tab? This search help has to be embedded in the selected tab. Please advise.

Regards,

Suman

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi,

Could you please explain the requirement more clear! You want to open standard search help on click on Tab or after moving to next tab?

You can use method HANDLE_VALUE_HELP of class CL_WDR_VALUE_HELP_HANDLER to open search help programatically. But this is not advisable as these are internal classes and SAP may change it at any time!

Code snippet:


data: lo_nd_node type ref to if_wd_context_node,

        lo_el_element type ref to if_wd_context_element.

  lo_nd_node = wd_context->get_child_node( name = 'NODE_NAME' ).  " Node_name is the name of context node.

lo_el_element = wd_node->get_element( ).

  CALL METHOD CL_WDR_VALUE_HELP_HANDLER=>HANDLE_VALUE_HELP

    EXPORTING

      CONTEXT_ELEMENT   = lo_el_element

      CONTEXT_ATTRIBUTE = 'CARRID'.    " CARRID is the attribute for which you want to open F4 help. change this with your attribute name to which DDIC search help is attached

Hope this helps,

Regards,

Kiran

Former Member
0 Kudos

Hi Kiran,

My requirement is to open the search help on selecting the tab. The above solution is helpful, thanks

Regards,

Suman

Answers (0)