Quantcast
Channel: SCN : All Content - Floorplan Manager for Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 839

Feeder Class Parameter Use to build generic feeder class in FPM

$
0
0

Feeder class parameter can be used in many ways to build some more generic feeder class which can be used across multiple UIBB processing in FPM application.

The below post tries to show one use case of the feeder class parameter which can be used to build one list uibb feeder class that can be used in many list uibb configuration.

Let’s create a class which implements interfaces related to list uibb processing.

1.png

Go to the GET_PARAMETER_LIST method.

2.png

Here we can pass a name and a type . The type may be a data element.

3.png

Now create a OVP application in Tx- FPM_WB. Add a list UIBB and create a configuration.

4.png

The list UIBB configuration asks for feeder class.

5.png

Provide the created feeder class. Click on Edit Parameter.

6.png

This data element used in the feeder class IF_FPM_GUIBB~GET_PARAMETER_LIST method as TYPE.

7.png

Now the feeder class asks for the parameter value.

8.png

Add a parameter name as SPFLI and click on OK.

9.png

The feeder class doesn’t provide any field catalogue yet.

10.png

11.png

In OVP application create one more list UIBB configuration and click on Configure UIBB.

12.png

Provide the same feeder class and click on Edit Parameter.

13.png

This time provide parameter value as SFLIGHT.

14.png

Feeder class doesn’t provide any field catalogue yet. So no columns appear to add in the list UIBB configuration.

15.png

Up to this point, we just finished 2 list UIBB configuration where both use the same feeder class and first UIBB configuration sets the parameter value as SPLFI and the second UIBB sets the parameter value as SFLIGHT. Now we have to add the fields in the list uibb and the fields should be provided from the feeder class.

16.png

In the feeder class create an attribute.

18.png

Go to the feeder class IF_FPM_GUIBB~INITIALIZE method.

17.png

The feeder class pass the field type from the method IF_FPM_GUIBB~GET_PARAMETER_LIST to the listUIBB configuration and the list UIBB configuration created a value. The value is then passed to the IF_FPM_GUIBB~INITIALIZE method.

Here we can read the feeder class parameter value set in the list UIBB configuration by the specific list UIBB. Put the below code and put a breakpoint at last.

19.png

In the list UIBB configuration, Select the first uibb configuration and click on Configure UIBB.

20.png

Now the FPM framework calls the feeder class IF_FPM_GUIBB~INITIALIZE method and passed the parameter value.

21.png

Now go back.

22.png

Click on the Configure UIBB for the second list UIBB configuration.

23.png

It also passed the feeder class parameter value.

24.png

Now we have to set the field catalogue in the IF_FPM_GUIBB_LIST~GET_DEFINITION of the feeder class based on the feeder class parameter set on the list uibb configuration.

25.png

Now configure the list UIBB configuration.

26.png

Add the columns.

27.png

28.png

Configure the second list UIBB.

29.png

30.png

31.png

Test the application and now we have two list UIBB’s use the same feeder class.

32.png

Add below code in the method IF_FPM_GUIBB_LIST~GET_DATA

33.png

Test the application.

34.png


Viewing all articles
Browse latest Browse all 839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>