Skip to Content
author's profile photo Former Member
Former Member

how to execute a URL ping in ABAP

Hi all,

i want to execute a URL ping from a ABAP function module but without any browser openning. I just want to check if the URL is correct and if it return true.

How can i do that ?

Regards,

Eric.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jan 19, 2005 at 12:57 PM

    What release are you on? There is some nice HTTP client functionality in WebAS 610 and higher. I can supply a sample if the release level is correct.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 19, 2005 at 01:59 PM

    Eric Gourdou:

    you have to implement javascript.

    <html>

    <head>

    <title>welcome</title>

    <script>function loadurl(url){window.open(url , "_self") }</script></head>

    <body onload="javascript:loadurl('URL')">Loading . . . . . </body>

    </html>

    please save above code as html and speicify your url name instead of URL text.

    then move to transaction SMW0 select HTML templates option for WebRFC application and then execute from the next screen. click create and give a object name, description then import the HTML file you have saved.

    and use this function module in your ABAP code

    call method html_control->load_html_document

    Regards

    Suresh Babu Karanam

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Dear Suresh,

      i don't understand what you mean by:

      and use this function module in your ABAP code

      call method html_control->load_html_document

      how can i use my object created in the SMW0 transaction in a function module ?

      could you please give me an eample !!

      Eric.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.