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

Extracting data from a HTML / XML web page

Hi guys,

We are trying to extract data from a html (or xml) web page into SAP. Has anyone had any experience doing this? I know you can call a HTML webpage from SAP via the object CL_GUI_HTML_VIEWER, but is there a way to extract data from a page, be it from looking at the source code or other means?

Thanks,

Pat.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 25, 2005 at 06:21 AM

    Hi Pat,

    You need to look at CALL TRANSFORMATION syntax to do this.

    CALL TRANSFORMATION trans|(name) 
                        [PARAMETERS ...] 
                        [OBJECTS ...] 
                        SOURCE ... 
                        RESULT ... 
    

    How's the weather at Lavender Bay? 😊

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Durairaj Athavan Raja

      Hi Raja,

      I have been busy attending to another issue that has come up but I am planning to follow up on your suggestions sometime today. Once I have done this I will award the points accordingly.

      Thanks to everyone for your help so far.

      Cheers,

      Pat.

  • Posted on Aug 25, 2005 at 06:26 AM

    Hi Pat,

    if you are on WAS6.10 > you can use CL_HTTP_CLIENT else

    you can use HTTP_GET or HTTP_POST

    let me know if you need code sample.

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

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.