on 01-30-2013 7:37 AM
Dear Experts,
Can anyone let me know how to pass parameters to wdp URL?
Santhosh
Hi Santhosh,
You can pass any parameter in your URL like below :-
1. http(s)://<host name>:<port>/sap/bc/webdynpro/sap/application_name?parameter=value
2. by following code :-
DATA:
w_url type string,
w_value type string.
* Get the URL of the called application
call method cl_wd_utilities=>construct_wd_url
exporting
application_name = '<Your application name>'
importing
out_absolute_url = w_url.
* make the Value type compatible that has to be passed with the URL
w_value = '<parameter value>'.
* Attach the parameters and its value with the URL
call method cl_http_server=>append_field_url
exporting
name = '<Parameter Name>
value = w_value
changing
url = w_url.
Receive the Parameter value :-
DATA:
lv_param type string.
* get the value for that has been send from the 1st application
lv_param = wdr_task=>client_window->get_parameter( <Parameter Name).
Regards,
Monishankar Chatterjee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Monishankar.Issue resolved
<Points awarded>
Santhosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.