on 2011 Aug 25 4:16 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.