cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with calling URL from web dynpro .

Former Member
0 Kudos

When I enter the URL( with parameters ) manually in the browser it works i.e. it populates the data in the pop ups for the selection screen and goes to the final selection screen and populates that selection screen via the URL parameters.

http://........./sap/bc/gui/sap/its/webgui?sap-client=030&~transaction=*ZTrans1 TKA01-KOKRS=A1;PROJ-PSPID=P-A72;PRPS_R-POSID=P-A720-99-99-7049;DYNP_OKCODE=/0

However , When I cal this same URL via

Call Method lo_window_manager->create_external_window

It does not by pass the pops ups and does not pass the URL parameters to the Pop ups

Any idea why this happens ? Please advise

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member199125
Active Contributor
0 Kudos

Hi Amber,

while passing below ur url in , you will be putting entire url in quotes. so it will consider as a text. So url wont understand the parameter.

Do one thing, better declare one string .. and concatenate that string.

data lv_var1type char2.

data lv_url type string.

lv_url =' http://........./sap/bc/gui/sap/its/webgui?sap-client=030&~transaction=*ZTrans1 TKA01-KOKRS='

lv_var1 = 'A1'.

concatenate lv_url lv_var into lv_url.

now pass lv_url in external method url.

I have passed only first parameter. U just passed the remaining parameters in the same way. Pass the parameters values in some variable and concatenate to url

In the above way I have resolved my issue earlier.

Thanks and Regards

Srinivas

Edited by: sanasrinivas on Aug 26, 2011 7:04 AM

Former Member
0 Kudos

Can you paste your code for constructing URL? May be parameters are not getting added to final url.

What do you mean it doesnt bypass popups?

Nitesh

Former Member
0 Kudos

Hi,

Try to use the

cl_wd_utilities=>construct_wd_url to build URL and

cl_http_server=>append_field_url to append parameter/value pairs

see example

  • Get the URL of the called application

call method cl_wd_utilities=>construct_wd_url

exporting

application_name = ' NAME OF COMPONENT B '

importing

out_absolute_url = w_url.

  • make the Value type compatible that has to be passed with the URL

w_value = ' VALUE FROM INPUT FIELD '.

  • Attach the parameters and its value with the URL that

  • have to be passed to the 2nd application

call method cl_http_server=>append_field_url

exporting

name = ' GIVE ANY NAME AS A PARAMETER '

value = w_value

changing

url = w_url.