Feeder Class Parameter Use in FPM

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

Go to the GET_PARAMETER_LIST method.

2

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

3

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

4

The list UIBB configuration asks for feeder class.

5

Provide the created feeder class. Click on Edit Parameter.

6

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

7

Now the feeder class asks for the parameter value.

8

Add a parameter name as SPFLI and click on OK.

9

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

1011

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

12

Provide the same feeder class and click on Edit Parameter.

13

This time provide parameter value as SFLIGHT.

14

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

15

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

In the feeder class create an attribute.

18

Go to the feeder class IF_FPM_GUIBB~INITIALIZE method.

17

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

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

20

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

21

Now go back.

22

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

23

It also passed the feeder class parameter value.

24

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

Now configure the list UIBB configuration.

26

Add the columns.

2728

Configure the second list UIBB.

293031

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

32

Add below code in the method IF_FPM_GUIBB_LIST~GET_DATA33

Test the application.

34


 

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 )

w

Connecting to %s