cancel
Showing results for 
Search instead for 
Did you mean: 

component usage only works one way?

Former Member
0 Kudos

I have created 2 wd components and want them to share data with each other in FPM. Lets say A and B. (both components will be implement IF_FPM_SHARE_DATA and component usage for each other )

ex)I have created a interface node on A and implement IF_FPM_SHARE_DATA. Then I declared component usage of A in B . I am able to see the contents of node A from B component. Works fine.

Problem : now, If I implement IF_FPM_SHARE_DATA and component usage of B in A, it seems the interface node gets cleared. because I am NOT able to retrieve the node of A from B any longer. ( oddly, when I remove the IF_FPM_SHARE_DATA from B, the data is visible again in B.

Does this means that IF_FPM_SHARE_DATA can be ONLY DECLARED ONE WAY?

THANKS

Edited by: juanlee337 on Feb 6, 2012 8:52 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

for your scenario, i would consider a different approach.

Create a new main component , implement IF_FPM_SHARE_DATA interface. Create or move the contexts of the component A and B to the main component. Use the Main compoent as used component in A and B.

See Examples in APB_FPM_DEMO package.

Former Member
0 Kudos

Thanks for your reply

but that doesn't make much sense. Why would you want to move context from A and B to new component and set the component usage in A & B.

I think my scenario should happen very often. I am pretty sure components needs to share data with each other all the time. I just dont understand why my scenario doesn't work.

thanks