on 12-29-2011 6:50 PM
Hi Experts,
I have a requirement I need to call a webdynpro application from the POWL ALV list when I click on the one of the cell whihc contains the link, it triggers the Feeder_class->handle_action method, Here I am creating the URL ,
COuld you please any one suggested me to use the URL, to call the webdynpro application, When calling he function module to execute the link I am getting the error like ,HTML_ERROR.
Thanks in Advance'
Swamy
Try This:
DATA:
lv_val type <type of parameter>,
lv_url_string TYPE string,
lv_url_c(250) TYPE c.
get absolute URL of Application, first try HTTPS
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = <App_Name>
in_protocol = 'HTTPS'
IMPORTING
out_absolute_url = lv_url_string.
Try without HTTPS
IF lv_url_string IS INITIAL.
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = <App_Name>
IMPORTING
out_absolute_url = lv_url_string.
ENDIF.
append client and logon language to URL
CONCATENATE lv_url_string
'&sap-client=' sy-mandt "#EC NOTEXT
'&sap-language=' sy-langu "#EC NOTEXT
INTO lv_url_c.
append parameter to pass variable
CONCATENATE lv_url_c '&abcd=' lv_val INTO lv_url_c.
start browser with URL
CALL FUNCTION 'CALL_BROWSER'
EXPORTING
url = lv_url_c
EXCEPTIONS
frontend_not_supported = 1
frontend_error = 2
prog_not_found = 3
no_batch = 4
unspecified_error = 5
OTHERS = 6.
.. SY-SUBRC CHECK..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.