on 02-26-2014 6:07 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.