cancel
Showing results for 
Search instead for 
Did you mean: 

Search help freely programmed

Former Member
0 Kudos

Hi all,

is anyone able to explain me how to use Search Help freely programmed?

thanks

GN

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Have a look at this link

[https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdabap/freely%2bprogrammed%2binput%2bhelp]

Regards

Tamil

uday_gubbala2
Active Contributor
0 Kudos

Hi Gabriele,

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