Quantcast
Channel: SCN : All Content - Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 3667

Through the button activate the Search help

$
0
0

Hi Every One,

 

Through this document we get to know the activation on search help through button instead of F4 help.

 

 

First create one webdynpro component in se80 like below,

 

11.PNG

Then create Node with the name Node under that node create your attributes what ever you want here for example i had created Matnr like below,

 

11.PNG

Then create one method and do the coding like below,

 

11.PNG

method SH_METHOD .

  "ONACTIONCALL_VALUE_HELP .

   data: wd_node type ref to if_wd_context_node,

         wd_element type ref to if_wD_context_element.

 

   wd_node = wd_context->get_child_node( name = 'NODE' )."Your Node Name

 

   wd_element = wd_node->get_element( index = 1 ). "Index of element

 

   CALL METHOD CL_WDR_VALUE_HELP_HANDLER=>HANDLE_VALUE_HELP"Method to call the SH

     EXPORTING

       CONTEXT_ELEMENT   = wd_element

       CONTEXT_ATTRIBUTE = 'MATNR'. "Attributes name

endmethod.

 

Then go to your view do the context binding and design the layout like below,

 

11.PNG

Inside that Possible Value button onaction method call that component controller method like below then create the application and test your application.

 

11.PNG

After click on button you will get the Search help,

 

11.PNG

 

Regards,

John.

 


Viewing all articles
Browse latest Browse all 3667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>