08-25-2005 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.
08-25-2005 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?
08-25-2005 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?
08-25-2005 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
08-25-2005 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.
08-27-2005 7:50 AM
if your qestion is answered, please reward the helpful answers and close the thread.
Regards
Raja
08-28-2005 11:27 AM
08-28-2005 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.
08-25-2005 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
08-29-2005 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.
08-29-2005 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