cancel
Showing results for 
Search instead for 
Did you mean: 

Shoe View As A Popup When We Click On A Search Help

Former Member
0 Kudos

Hi Experts,

I am working on throwing a view as a popup when we press on the search help button for a column in my table.Could someone please tell me if this is possible and if we have an event that is triggered when we click the F4 symbol right next to the field .

With Regards,

Chaitanya.

Accepted Solutions (1)

Accepted Solutions (1)

uday_gubbala2
Active Contributor
0 Kudos

Hi Chaitanya,

There isn't any event that is triggered when we click on the F4 help.

Regards,

Uday

Former Member
0 Kudos

Hi Uday,

Thank You for your quick response , is there a way where by on clicking the F4 help symbol we can throw aview as a popup. Or may be if not the standard F4 help we can use the freely programmed search help or the OVS concept to acheive the above requirement.

Kind Regards,

Chaitanya.

Former Member
0 Kudos

Hello Chaitanya ,

You can use the freely programmed input help or OVS help .

For freely programmed input help , you have to create a webdynpro component ( Say ZWD_FREE_HELP )which will have the pop up view as a defaut view in the window WD_VALUE_HELP . In this wendynpro component you have to implement the interface IWD_VALUE_HELP .

You have also set the value help listner ( attribute VALUE_HELP_LISTENER in component controller of type IF_WD_VALUE_HELP_LISTENER ) inside the method SET_VALUE_HELP_LISTENER in this component ZWD_FREE_HELP .

Now you have to use this component in your Main component and provide the component name in for the attribute property freely programmed input help .

After closing the pop up window you have pass the data to main window . For this you have to implement the on_data_select event ( this event is the interface event at component controller ) of ZWD_FREE_HELP.

I hope this help you ....

regards

Vivek

uday_gubbala2
Active Contributor
0 Kudos

Hi Chaitanya,

If you want to show your custom built view up on clicking F4 then you will have to go for the Freely programmed input help. You can try go through this [blog|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4970] [original link is broken] [original link is broken] [original link is broken]; by Koen Labie or else you have another source over [here|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdabap/freely%2bprogrammed%2binput%2bhelp].

Please go through the component DEMO_VALUE_HELP. This explains all the input help types. The freely programmed search help has been implemented for the CONNID input field of view V1. The Web Dynpro component FREE_VALUE_HELP in the same package is the component where the search help is coded.

Also below are the steps to be followed for implementing the freely programmed search help.

This kind of value help is implemented as a Web Dynpro component implementing the Web Dynpro

component interface IWD_VALUE_HELP. To be able to use the value help for a certain input field, the following steps are necessary:

1) A component usage of the value help component (HC) has to be declared

by the consumer component (CC).

2) A usage of the HC interface controller has to be declared in the CC view.

3) The input help mode User-Defined Programming has to be chosen for the attribute that is bound to the input field under consideration. The HC usage must be related to this attribute. The component interface of the HC has only one method: set_value_help_listener( ). This method is called by the Web Dynpro runtime if the value help button of the input field under consideration is clicked. The HC has to be implemented as follows:

1) The method set_value_help_listener( ) has an import parameter. This means that the reference to the listener, provided by the Web Dynpro runtime, is passed to the user-defined HC. This reference has to be saved as a user defined controller attribute.

2) To close the help value dialog box, the close_window( ) method of the listener has to be used.

3) All views have to be embedded into a window having the name WD_VALUE_HELP. This name is used by the Web Dynpro runtime.

4) To exchange data between the CC and the HC, context mapping can be used.

For implementing the component interface IWD_VALUE_HELP, you need to choose the Reimplement button in the HC. The implementation status changes to green and the events and the method of the component interface are visible in the HC controller.

Regards,

Uday

Answers (0)