05-19-2016 1:17 PM
Hi Experts,
I got a requirement to read exchange rates from internet. It contains .XML file.
I need to read exchange rates from this link http://www.rba.gov.au/rss/rss-cb-exchange-rates.xml
I am using HTTP_GET FM to read the file. I am sucessfull in read file from other .XML file from internet.
But this link is tricky when compare to other.
Helpful answer will appreciated.
Warm regards,
NARAHARI HARISH KUMAR
06-21-2016 12:51 PM
Hi All,
Resolved myself. We can convert this by using FM 'DP_GET_STREAM_FROM_URL'
Thanks & Regards,
N. HARISH KUMAR
05-19-2016 1:29 PM
05-19-2016 2:07 PM
Hi Peter,
I want to get XML data into ABAP internal table.
Warm Regards,
NARAHARI HARISH KUMAR
05-19-2016 2:10 PM
I understood that already, but WHAT is your problem ? Where do you get stuck ? Why does it not work ?
05-19-2016 3:22 PM
05-20-2016 6:36 AM
HI Eitan,
I can able to get .XML data from internet to ABAP.
In this case, I need to get .XML data of RSS feeds to ABAP from internet. My doubt is, is it possible to get XML data of RSS into ABAP.
Warm Regards,
NARAHARI HARISH KUMAR
05-20-2016 6:49 AM
Hi,
RSS is XML file.
This is your file:
See
https://en.wikipedia.org/wiki/RSS
You need to parse the xml acording to your needs.
see FORM do_xml_parse_1 .
Regards.
05-20-2016 6:52 AM
RSS is XML file like any other.
Why you are in doubt and don't try instead?
05-20-2016 7:05 AM
Hi Tomas,
I tried the way Eitan suggested, but it is not working in my case.
I think some HTTP communication failure is occurred, because when i executed, it is showing an information message like 'Connection Refused'.
05-20-2016 8:02 AM
Hi,
Please ask the basis team to allow the application server to access the Internet.
Also ask them if they use a proxy . Use the proxy values here:
Also check the values in your internet explorer:
You might be able to use those values
This works in my case.
Regards.
A
06-21-2016 12:51 PM
Hi All,
Resolved myself. We can convert this by using FM 'DP_GET_STREAM_FROM_URL'
Thanks & Regards,
N. HARISH KUMAR
06-21-2016 1:25 PM
DP_GET_STREAM_FROM_URL is using the connection from the currently-connected-user's web browser. It won't work if you run your program in background.