Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

External URL

former_member375795
Participant
0 Likes
1,055

How to call external URL on click in ALV reports with out use of webdynpro.

5 REPLIES 5
Read only

Former Member
0 Likes
885

Hi,

Are you using FMor OO?

If using FM,This link might be useful.

Regards

Abhi

Read only

Former Member
0 Likes
885

Hi,

You can use function module

CALL FUNCTION 'CALL_BROWSER'

EXPORTING

    url = urlname.

Regards

tejas

Read only

sivaganesh_krishnan
Contributor
0 Likes
885

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

Read only

0 Likes
885

I need to call in back web page(url) in background  so that  user can not see.

Read only

0 Likes
885

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