cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying an External Web Site in the Webdynpro application

former_member378040
Participant
0 Kudos

I want to display an external website (e.g. google) within the web dynpro application page.

Is it possible, if yes how?

Thanks

Amit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can use the IFRAME UI element and specify the URL in the source property.

IFRAME should only be used in exceptional case see [Deprecated Objects|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/44/e92dbd779b41aae10000000a114a6b/content.htm]

To read more on [IFRAME|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/15/c07941601b1d09e10000000a155106/content.htm]

Best Regards,

Loveline Thomas.

former_member378040
Participant
0 Kudos

Thanks for your help. This is what I was looking for.

I want to put an EP iveiw in the IFRAME, do you know how to acess iviews from web dynpro?

Thanks

Amit

Answers (1)

Answers (1)

Former Member
0 Kudos

hi ,

u can use LinkToURL UI for the same , in ur view go to rootelement container , click on root element container and choose insert element , choose LinkTOURL

The LinkToURL UI element is a hypertext link. When you choose this link, you are directed to a user-defined Web resource (URL).

The LinkToUrl is used to exclusively to open URLs in a separate window.

u can even call external window on click of ur button as well . For ur Button ui , make a action say URL ( in the ACTION property of UI)

thn a method OnActionURL , write this piece of coding :


data:  lo_window_manager type ref to if_wd_window_manager.
 data:  lo_api_component  type ref to if_wd_component. 
data:  lo_window         type ref to if_wd_window. 
data:  ld_url type string. 
lo_api_component  = wd_comp_controller->wd_get_api( ). 
lo_window_manager = lo_api_component->get_window_manager( ). 
ld_url = 'http://www.google.co.in'.  
CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW       
EXPORTING     URL                = ld_url            "'http://www.google.co.in'       
 RECEIVING     WINDOW         = lo_window.  
lo_window->open( ). 

regards,

amit