cancel
Showing results for 
Search instead for 
Did you mean: 

Calling SAP transaction from WebDynpro

Former Member
0 Kudos

HI,

Could someone post a link as to how I may call a SAP transaction from a webdynpro.

Will this be an external call to R/3 or can i get it embedded in my dynpro.......

Tnks..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can call by creating external window method.

create LINK to URL or LINK TO ACTION according to requirement, for this. write code in onaction of that.

data: iv_url type string value 'http://<server>:<port>/sap/bc/gui/sap/its/webgui?~transaction=*se38 RS38M-PROGRAMM=rsparam;DYNP_OKCODE=SHOP'.
 
  data: api_component  type ref to if_wd_component,
          window_manager type ref to if_wd_window_manager,
          window type ref to if_wd_window.
 
  api_component = wd_comp_controller->wd_get_api( ).
  window_manager = api_component->get_window_manager( ).
  window = window_manager->create_external_window(
                 url = iv_url
                 modal = abap_false ).
 
  window->open( ).

Cheers,

Kris.

Former Member
0 Kudos

Thanks for your quick answer.

Is that is all that will be required ? Will this then operate at the R/3 side ?

( i read about ITS but is that completely different....do i have to create an ITS for the standard sap transaction )

Edited by: edmorrissey on Jun 21, 2011 8:43 AM

Edited by: edmorrissey on Jun 21, 2011 8:44 AM

Former Member
0 Kudos

Hi,

Yes. OR You can create Transaction iview in portal and you can connect to R/3 and you can work as well.

Please go through this for mroe..

- check thomos answer

Cheers,

Kris.

Edited by: kissnas on Jun 21, 2011 8:48 AM

former_member199125
Active Contributor
0 Kudos

Hi edmorrissey ,

kissanas first method is simpler,

for the second method, you need to create a transactional IVIEW in portal,

using the pcd location of Iview, you have to call portal_navigation method in webdynpro to call SAP transaction.

Thanks and Regards

Srinivas Sana

Answers (0)