2005 Aug 25 7:10 AM
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.
2005 Aug 25 7: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?
2005 Aug 25 7: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?
2005 Aug 25 7:26 AM
Hi, Have a look at this article https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/just browsing around.article
and Craig's weblog /people/sap.user72/blog/2005/05/03/sdn-meets-labs-integrated-web-content
Eddy
2005 Aug 25 11:34 PM
Hi guys,
Thanks for your quick responses. Will try out each of your suggestions and I'll let you know how I go.
By the way, Syd Oz, Lavender Bay is great!
Cheers,
Pat.
2005 Aug 27 7:50 AM
if your qestion is answered, please reward the helpful answers and close the thread.
Regards
Raja
2005 Aug 28 11:27 AM
2005 Aug 28 11:23 PM
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.
2005 Aug 25 7: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
2005 Aug 29 2:00 AM
Durairaj,
Someone from the BSP forum sent me a link to your SDN Community Contribution (RFC_READ_TABLE for SAP Web AS) which is exactly what I was looking for!
Big thanks to all who replied with suggestions.
Cheers,
Pat.
2005 Aug 29 5:22 AM
this is exactly the issue with code samples. Unlike weblogs, you dont know what code samples are there, unless you search. Something needs to done about organizing the code samples.
Regards
Raja