среда, 29 мая 2013 г.

Upload XML data from URL into SAP

ABAP http://scn.sap.com/thread/854715:
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
data: http_client type ref to if_http_client .
data: xml_out type string  .

call method cl_http_client=>create_by_url
    exporting
      url           = 'http://www.abc.com/rss.xml'
    importing
      client        = http_client.

  http_client->send( ).
  http_client->receive( ).
  clear xml_out .
  xml_out = http_client->response->get_cdata( ).
  http_client->close( ).

Or you can do it in SAP PI:
1. PI/XI: how to get an XML file from a web page without own development
2. How to get an XML file from a web page using SAP PI

Комментариев нет:

Отправить комментарий