Freestyle Value Help in FPM

FPM provides all sorts of technique for value help like search help, OVS and also freestyle value help. The post describes how to adopt free style value help in a search UIBB field by creating a webdynpro component and implementing the interface  IWD_VALUE_HELP.

Create the feeder class for search UIBB that displays two search fields like CARRID & CONNID.

123

Create an OVP application and  create one configuration for search uibb component and provide the feeder class and add only two fields.

456

Test the application. No F4 help option is available for CONNID field. 

7

Freestyle search help can be achieved by webdynrpo component. Just create a web dynpro component and activate it.

8

Go to the search UIBB feeder class GET_DEFINITION METHOD.  For the CONNID field assign the webdynpro value hep as the web dynpro component.

9

Test the applictaion. Now we receive a dump as it says the webdynpro component is missing the interface IWD_VALUE_HELP implementation.

10

In the web dynpro component implement the interface  IWD_VALUE_HELP and activate the component.

11

Test the application and now F4 option available for CONNID field. Press F4 .

12

Now  a blank pop up appears.

13

as we added the interface  IWD_VALUE_HELP, a new window appears as WD_VALUE_HELP which we are going to use. So the window zconnid_value_help can be deleted.

14

Now we have to embed the view MAIN in the window WD_VALUE_HELP.

15161718

To design the search help pop up, create a context node in the view.

1920

On the view layout create a table and bind it to the source.

2122232425

Test the application. Now press F4 for connid field. Now the pop up appears as desired but without records.

26

Go to the view WDDOINIT method.

27

Bind the records to the context node.

28

Test the application. Now the f4 request brings all records as desired. Now the task is when the user selects any line 1. the connid value should appear on the search uibb field and the pop up should be close. This we can do in the lead selection event method.

29

Create a lead selection event for the table.

3031

Go to the lead selection method.

32

Now read the lead selected line and close the window. Upto now we have just close the pop up.

33

Test the application and press F4 and select any line. 

34

The pop up gets closed but the selected CONNID value doesn’t appear on the search uibb.

35

Go to the component controller method. So here we have the method GET_VALUE_HELP_LISTNENER that appears due to the interface  IWD_VALUE_HELP

36

It provide an object of the interface IF_WD_VALUE_HELP_LISTENER.

37

So in the component controller create an attribute point to the interface IF_WD_VALUE_HELP_LISTENER so that we can access this in the view lead selection event method.

38

provide the code in  the component controller method.

39

 

40

Now in the view lead selection event method add some code to set the selected value fork the search pop up back to the search uibb screen.

41

Test the application. Press F4 and select any line.

42

Well the selected field value appears on the search uibb screen CONNID attribue.

43


 

Advertisements

One comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s