Skip to Content

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.

/wp-content/uploads/2016/05/1_960986.png

Go to the GET_PARAMETER_LIST method.

/wp-content/uploads/2016/05/2_960987.png

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

/wp-content/uploads/2016/05/3_960988.png

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

/wp-content/uploads/2016/05/4_960989.png

The list UIBB configuration asks for feeder class.

/wp-content/uploads/2016/05/5_960990.png

Provide the created feeder class. Click on Edit Parameter.

/wp-content/uploads/2016/05/6_960991.png

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

/wp-content/uploads/2016/05/7_960992.png

Now the feeder class asks for the parameter value.

/wp-content/uploads/2016/05/8_960993.png

Add a parameter name as SPFLI and click on OK.

/wp-content/uploads/2016/05/9_960994.png

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

/wp-content/uploads/2016/05/10_960995.png

/wp-content/uploads/2016/05/11_960996.png

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

/wp-content/uploads/2016/05/12_960997.png

Provide the same feeder class and click on Edit Parameter.

/wp-content/uploads/2016/05/13_960998.png

This time provide parameter value as SFLIGHT.

/wp-content/uploads/2016/05/14_960999.png

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

/wp-content/uploads/2016/05/15_961000.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.

/wp-content/uploads/2016/05/16_961001.png

In the feeder class create an attribute.

/wp-content/uploads/2016/05/18_961002.png

Go to the feeder class IF_FPM_GUIBB~INITIALIZE method.

/wp-content/uploads/2016/05/17_961003.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.

/wp-content/uploads/2016/05/19_961004.png

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

/wp-content/uploads/2016/05/20_961005.png

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

/wp-content/uploads/2016/05/21_961006.png

Now go back.

/wp-content/uploads/2016/05/22_961007.png

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

/wp-content/uploads/2016/05/23_961008.png

It also passed the feeder class parameter value.

/wp-content/uploads/2016/05/24_961009.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.

/wp-content/uploads/2016/05/25_961010.png

Now configure the list UIBB configuration.

/wp-content/uploads/2016/05/26_961011.png

Add the columns.

/wp-content/uploads/2016/05/27_961012.png

28.png

Configure the second list UIBB.

29.png

30.png

/wp-content/uploads/2016/05/31_960967.png

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

/wp-content/uploads/2016/05/32_960977.png

Add below code in the method IF_FPM_GUIBB_LIST~GET_DATA

/wp-content/uploads/2016/05/33_960978.png

Test the application. 🙂

/wp-content/uploads/2016/05/34_960979.png

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

Leave a Reply