Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
anjan_paul
Active Contributor

Maximum time it is needed that FPM application uses multiple component. But you have to share the data between that components. This document shows the example how we can share data between two component using IF_FPM_SHARED_DATA without any coding.

First create a webdynpro component Suppose component name is ZSHARE which is implement IF_FPM_SHARED_DATA interface in interface implemented interface tab.

In that component create a context of SCARR with CARRID and CARRNAME attribute. And make the SCARR as interface node.

Activate the component.

Now create another component suppose ZTEST1. Then make the previous component ZSHARE as a used component.

And in implemented interfaces implement IF_FPM_UI_BUILDING_BLOCK interface.

In used controllers of component controller you add ZSHARE component.

Then in the component controller context you drag and drop node in the component controller context from ZSHARE.INTERFACECONTROLLER

Then in the view context you drag and drop node in the view context from component controller context

Then in the layout add the node as a input field.

Now create another component suppose ZTEST2. Then make the previous component ZSHARE as a used component.

And in implemented interfaces implement IF_FPM_UI_BUILDING_BLOCK interface.

In used controllers of component controller you add ZSHARE component.

Then in the component controller context you drag and drop node in the component controller context from ZSHARE.INTERFACECONTROLLER

Then in the view context you drag and drop node in the view context from component controller context

Then in the layout add the node as a textedit field.

Now take a GAF FPM component. Add the ZTEST1 component as 1 step component. And add the ZTEST2 as 2 step component.

The run the FPM application . Give Airline and Name in input screen.

Then click on Next . You will see it is automatically showing in second screen though it is refer to different component.

7 Comments
Labels in this area