on 09-10-2012 5:42 PM
hi
i am creating an abap webdynpro aplication. The parametrs in the url are encycripted and when the browser in initial i de-encycript them.
Is there a way to change the url to the de-encycripted url.
for example
the url name is - //server_name/sap/bc/webdynpro/sap/z_webdynpro_app?sap-language=EN&sap_gd=123956311782122454647424756
the encycripted part is sap_gd=123956311782122454647424756
and it is &p_pernr=456963
is there a way to set the URL to be
//server_name/sap/bc/webdynpro/sap/z_webdynpro_app?sap-language=EN&p_pernr=456963
while the aplication in initial?
thanks
Ami
using &p_pernr.. you can pass parameter to the url
Using cl_wd_utilities=>construct_wd_url , you can create a URL
and you can concatenate whaterever you want in the return URL and finally you can call Function module CALL_BROWSER to open the application throught created URL in the browser.
DATA: t_parameters TYPE tihttpnvp,
l_parameters TYPE ihttpnvp,
appl_name TYPE string,
abs_url TYPE string,
abs_url_char(500).
appl_name = 'ZWD_APPLICATION'.
l_parameters-name = 'PARAM_NAME1'.
l_parameters-value = 'value1'.
APPEND l_parameters TO t_parameters.
l_parameters-name = 'PARAM_NAME2'.
l_parameters-value = 'value2'.
APPEND l_parameters TO t_parameters.
cl_wd_utilities=>construct_wd_url( EXPORTING application_name = appl_name
in_parameters = t_parameters
IMPORTING out_absolute_url = abs_url ).
abs_url_char = abs_url.
*****<concatinate your string >******
**open application in the browser
CALL FUNCTION 'CALL_BROWSER'
EXPORTING
URL = abs_url_char.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
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.