cancel
Showing results for 
Search instead for 
Did you mean: 

How to call a WD4A Application of another system

oliver_pregler
Participant
0 Kudos

Hi,

I have the need to call a WebDynpro Application of another system via a URL call, thet the application should be opend in the CRM WebUI Window (statefull ) .

Calling the application via a button event & transaction launcher works fine, but i need to call it from a BSP page. So my idea was to create an iframe, but this obviously opens a new window:

<html>

<head>

<title>IFrames - Webdynpro Test</title>

</head>

<body>

<iframe src=<%= lv_url_route %>"

width="100%" height="500" scrolling="auto" frameborder="1" transparency>

</iframe>

</body>

<html>

Can anybody help?!?!

Thanx & best regards,

Oliver

Edited by: Oliver Pregler on Jul 28, 2008 3:26 PM

Accepted Solutions (0)

Answers (3)

Answers (3)

oliver_pregler
Participant
0 Kudos

Thanx a lot

CarstenKasper
Active Contributor
0 Kudos

Hello Oliver,

usually using the <iframe/> tag will not lead to a new window being opened.

The contents of the URL should be displayed inside the iframe.

SAP uses iframes in the componetn GSBIRP in BIReportView.htm. They show the content inline.

cheers Carsten

Former Member
0 Kudos

Hi Oliver,

unfortunately I know nothing about BSP-Applications, but this is how I call my WD4A-Application using a FM from CRM:


data: lr_empty_parent type ref to cl_gui_container,
      lr_viewer       type ref to cl_gui_html_viewer.

data: lv_url(200)     type c.

lv_url = 'http://www.xyz.com'.

  create object lr_viewer
    exporting
      parent             = lr_empty_parent
    exceptions
      cntl_error         = 1
      cntl_install_error = 2
      dp_install_error   = 3
      dp_error           = 4
      others             = 5.

  if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
              with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.

  lr_viewer->detach_url_in_browser(
    exporting
      url              = lv_url
    exceptions
      cntl_error       = 1
      dp_error_general = 2
      others           = 3 ).

  if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
               with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.

  cl_gui_cfw=>flush( ).

If it helps you - fine. If not - forget it

Best regards

Jörg Racz