cancel
Showing results for 
Search instead for 
Did you mean: 

freely programed F4 help

Former Member
0 Kudos

Hello Experts,

i want to create a freely programed F4 help for one of the attribute in my context.

can anyone tell me how to go about it step by step.

Thanks,

gunjan

Accepted Solutions (0)

Answers (3)

Answers (3)

uday_gubbala2
Active Contributor
0 Kudos

Hi Gunjan,

You have the WDR_TEST_APPLDEF_VH1 & WDR_TEST_APPL_DEF_VH standard SAP components available for your observation. Try analyze these 2 components after going through my explanation & the wiki entry. You should be fine...

WDR_TEST_APPL_DEF_VH : This is the main component in which they are trying to provide a Freely Programmed value help for the attribute CONNID under node SFLIGHT. As how you can see this component declares a component usage of WDR_TEST_APPLDEF_VH1

WDR_TEST_APPLDEF_VH1 : The V1 view of this component gets displayed as the search help when the user presses up on F4 in the CONNID field. As how you can see this component contains an implementation of the IWD_VALUE_HELP interface & also the view V1 is embedded within the window WD_VALUE_HELP.

Regards,

Uday

uday_gubbala2
Active Contributor
0 Kudos

Hi Gunjan,

Below are the important points which you need to keep in mind while designing this 2nd component ( say COMP2) :

1) Your component which gets displayed as the search help must implement the Interface IWD_VALUE_HELP. (For this double click on your Web Dynpro Component & go to the "Implemented Interfaces" tab. Just specify IWD_VALUE_HELP under the "Name" column & press on enter. The "implementation State" would then display a green traffic light for you signifying that the interface has been successfully implemented.)

2) A window by name WD_VALUE_HELP would have been automatically added to this component when you implement the IWD_VALUE_HELP interface. You need to embed the view which you would like to appear on F4 help under this particular window. (Normally if you had created a MAIN view you would embed this view under the window with the same name as your component. But in this case you need to embed your main view under the window WD_VALUE_HELP )

Now below are the steps to be followed within your main component (say COMP1) in which you have your input field & up on pressing which you want the Freely Programmed Help to Appear.

1) You need to declare a component usage of your help component (COMP2) within your main component. (COMP1)

2) Specify a "Controller Usage" of the Used component within your components view. (Go to the "Properties" tab of your view & click on "Create Controller Usage" button & select the INTERFACECONTROLLER of COMP2)

3) Now change the "Input Help Mode" of your desired context attribute to "Freely Programmed".

Regards,

Uday

uday_gubbala2
Active Contributor
0 Kudos

Hi Gunjan,

When you develop a Freely Programmed Search Help you basically design a 2nd Web Dynpro Component which would get displayed as the search help for your context attribute.

You can try go through this [article |https://wiki.sdn.sap.com/wiki/display/WDABAP/Freely%2bprogrammed%2binput%2bhelp]for information regarding how you can develop a Freely Programmed value help.

Regards,

Uday