cancel
Showing results for 
Search instead for 
Did you mean: 

How to reuse other component in a external window?

Former Member
0 Kudos

Hi,expert,

I want to display an external window which contains another web dynpro component ,so I used this

IF_WD_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW ,then I meet the problem

(1)how to get the url of the embeded component (actually the url of the application which contains this component) which should be displayed in the external window. (url in the compusory parameter of the above method)

(2)if we get that url ,how to pass the parameter,just add that like this:

http://abc.com:8080/component_1?username='ray'

(3)By the way,if there is another way to achieve that?

Thanks a lot

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

if you want the other component to be called by url,

you should create an application for it and look to the url provided in the attributes

<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/43/c10aea79642ec5e10000000a11466f/frameset.htm">documentation</a> for external window via component usages

there is not really another way than these two

grtz,

Koen

Former Member
0 Kudos

Hi,Koen,

Thanks your reply. you said 'look to the url provided in the attributes',so these

attributes belong to what object?

if you mean the attributes of the webdyn applicaion,maybe I could not get that.

because this application has to be run on different systems, I have to use code to get that,not just hard code.

Thanks

Former Member
0 Kudos

Hi,

hardcoding is the only option unless you create the url bit by bit,

collecting first the url of the server via your rfc destination and adding

the path to the application (still hardcoded or via a table)

grtz,

Koen

ps: please reward usefull answers

alejandro_bindi
Active Contributor
0 Kudos

No need to hardcode the URL, just call this method:

  CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
      application_name = p_wdappl " Application name e.g. 'Z_WDA_TEST'
    IMPORTING
      out_absolute_url = g_url.

If you need to get the URL for one system's application from another system, you could encapsulate the method call in an RFC function module.

Regards

Answers (0)