‎2014 Feb 18 5:19 AM
How to call external URL on click in ALV reports with out use of webdynpro.
‎2014 Feb 18 5:33 AM
‎2014 Feb 18 5:39 AM
Hi,
You can use function module
CALL FUNCTION 'CALL_BROWSER'
EXPORTING
url = urlname.
Regards
tejas
‎2014 Feb 18 6:51 AM
hi alok ,
you can call the front end services to execute a url .
call method cl_gui_frontend_services=>execute
exporting
document = 'https://www.scn.sap.com'
exceptions
others = 1.
Regards,
Sivaganesh
‎2014 Feb 18 7:00 AM
I need to call in back web page(url) in background so that user can not see.
‎2014 Feb 18 8:38 AM
Hi Alok,
Below is a form I used before,
Regards.
Feiyun
form get_data_from_url using iv_url type clike changing iv_data type string.
data: http_client type ref to if_http_client .
data: lv_user type syuname.
data: lv_pass type ssfapplssl.
clear iv_data.
call method cl_http_client=>create_by_url
exporting
url = iv_url
proxy_host = '11.20'
proxy_service = '80'
ssl_id = lv_pass
sap_username = lv_user
sap_client = sy-mandt
importing
client = http_client
exceptions
argument_not_found = 1
plugin_not_active = 2
internal_error = 3
others = 4.
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
check sy-subrc = 0.
* proxy server authentication
call method http_client->authenticate
exporting
proxy_authentication = 'X'
username = 'YOUR NAME'
password = 'YOUR PASSWORD OF PROXY'.
call method http_client->send
exceptions
http_communication_failure = 1
http_invalid_state = 2.
check sy-subrc = 0.
call method http_client->receive
exceptions
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3.
check sy-subrc = 0.
iv_data = http_client->response->get_cdata( ).
call method http_client->close( ). " prevents 'No Memory for processing HTTP, HTTPS or SMTP queries'
endform. "get_data_from_url