cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass url param to an embedded external component ?

Former Member
0 Kudos

Hi all,

I'm using a view container which is linked to an external component.

I need to pass a URL parameter from my main component to the external component.

Any Idea how to achive that ?

Thanks

Ziv

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Dear Ziv,

please check this post, it might help you:

[http://wiki.sdn.sap.com/wiki/display/WDABAP/ExampleforpassingvaluesfromoneApplicationtoanotherApplicationinWebDynproABAP.]

Kind Regards

/Ricardo Quintas

Former Member
0 Kudos

You can pass it via plug parameter or call the interface method of the other component and set the data or use a singleton object between the components and set the data to an attribute and access it from other component.

Former Member
0 Kudos

Thanks Baskaran

Your suggestions were very helpful but I'm not quite satisfied with the results, let me explain :

Has you know url parameter is processed during the default plug phase, which if after wddoinit event.

I meant to call an RFC function in wddoinit of my external component.

This function need the URL parameter but since default plug hasn't been executed yet , I'm stuck.

As a workaround I used your suggestion and passed the URL parameter to an outbound plug in my main component.

I later linked that plug with the default plug of my external component.

There (In my external default plug) I made the RFC call and got the info I needed.

It just seems to my that this way is a little backwards.

Can you think of a better way ?

Thanks

Ziv

Edited by: Ziv Katz on Sep 21, 2011 5:20 PM

Former Member
0 Kudos

I have already mentioned in my earlier post about the other possibilities.

1) Using interface method

2) Use Singleton class

I would prefer to go with Singleton class methods. Create Setters/Getters , call the setters from parent component and call the readers from the used components.