Hi Peeyush,
Here is one way by which you can attain this. But I am not sure whether this is a recommended way. Also, you will have to check whether there are any other effects.
1: Create a BSP application and view.
2: Take the code of bsp application WCF_BSP_SP view SearchQuery_2.htm and paste it in this view. Set the parameters also same as the standard view. Add your button as follows.
3: Now go to SE24 and copy class CL_WCF_BSP_BASE_SQ_2 to ZCL_WCF_BSP_BASE_SQ_2.
4: Go to attribute of the newly created class and rename the attribute GC_SEARCH_QUERY_LAYOUT.
5: Now go back to our custom bsp application view and rename the controller class to ZCL_WCF_BSP_BASE_SQ_2.
6: Now you have your button ready.
Create an event handler for this button and write your code there.
Note: Again, this is a work around solution. Check whether any of the existing functionalities are affected by this. I believe it shouldn't afftect any though.
Thanks,
Faisal