cancel
Showing results for 
Search instead for 
Did you mean: 

how to call an external server from Webdynpro program?

former_member645692
Participant
0 Kudos

Hi All,

i have a requirement in which i have to call an external server from Webdynpro ABAP program.

how to imp

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi ,

do u mean u need to call the external link from ur WD ABAP application ?

if so , u either create

1 a Link to URL ( LTU ) UI element and call the external link using that

2 if u wish to use some other fuctionality and thn wish to call the URL in ur application ,u write this piece of code in ur relevant on Action method :


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 =  ''.  // ur external sever link here
CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW      
 EXPORTING     URL                = ld_url            
RECEIVING     WINDOW         = lo_window. 
 lo_window->open( ).

I hope u wud be able to create URL now .

regards,

amit

Edited by: amit saini on Oct 13, 2009 11:25 AM

rodolformoraes
Explorer
0 Kudos

Hi all,

Yes, it works!

regards,

Rodolfo