cancel
Showing results for 
Search instead for 
Did you mean: 

Passing Data to External URL link

Former Member
0 Kudos

Hi,

I am looking to pass a table with selected personnel numbers to an external URL link using webdynpro abap . Is it possible to achive this ?? if so could you pls provide some steps or sample code .

have done the below code apart from passing a table --

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.

lo_api_component = wd_comp_controller->wd_get_api( ).

lo_window_manager = lo_api_component->get_window_manager( ).

call method lo_window_manager->create_external_window

exporting

url = 'http://www.yahoo.com/'

modal = abap_false

has_menubar = abap_true

is_resizable = abap_true

has_scrollbars = abap_true

has_statusbar = abap_true

has_toolbar = abap_true

has_location = abap_true

receiving

window = lo_window.lo_window->open( ).

Thanks,

Vind

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You can pass parameters via the URL using a query string. However you can't pass a table, only flat parameters. You would change your URL as such:

url = 'http://www.yahoo.com?test1=help&test2=more_help' .

Former Member
0 Kudos

Hi Thomas,

Thanks for your reply ...could you pls let me know some example code to achive this .

Thanks,

Vind

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Example code for what? Building the URL? Just concatenate a string together for the URL and the URL parameters:

Concatenate `http://www.yahoo.com?var1=` lv_var1 `&var2=` lv_var2 into lv_url.
condense lv_url no-gaps.