<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting input file in the upload program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-input-file-in-the-upload-program/m-p/4628057#M1090063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the file is in app server you will use OPEN DATASET..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the file is put in presentation server you might use ws_upload or gui_upload to read data in to internal tables.&lt;/P&gt;&lt;P&gt;you have a class also which does the same work..CL_GUI_FRONTEND_SERVICES&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Oct 2008 15:31:10 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2008-10-27T15:31:10Z</dc:date>
    <item>
      <title>Getting input file in the upload program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-input-file-in-the-upload-program/m-p/4628055#M1090061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have a requirement to access the data file for loading into SAP. The data file comes through web services. I do not have any idea on what type of web services are available which can throw a data file for uploading and how is that an ABAP program reads this file and gets the data into ABAP internal tables for data uploading? Any inputs on these...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks&lt;/P&gt;&lt;P&gt;Shakir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2008 14:23:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-input-file-in-the-upload-program/m-p/4628055#M1090061</guid>
      <dc:creator>abdulazeez12</dc:creator>
      <dc:date>2008-10-27T14:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Getting input file in the upload program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-input-file-in-the-upload-program/m-p/4628056#M1090062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for handling web services, you can refer to this standard help&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/SAPHELP_NW04S/helpdata/EN/e5/4d350bc11411d4ad310000e83539c3/content.htm" target="test_blank"&gt;http://help.sap.com/SAPHELP_NW04S/helpdata/EN/e5/4d350bc11411d4ad310000e83539c3/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll need to use the  cl_http_client class for accessing your web service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is some pseudo code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_http_client=&amp;gt;create_by_url&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      url                = lv_ws_request&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      client             = http_client&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      argument_not_found = 1&lt;/P&gt;&lt;P&gt;      plugin_not_active  = 2&lt;/P&gt;&lt;P&gt;      internal_error     = 3&lt;/P&gt;&lt;P&gt;      OTHERS             = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD http_client-&amp;gt;send&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      http_communication_failure = 1&lt;/P&gt;&lt;P&gt;      http_invalid_state         = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;-------  here I get the http_communication_failure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD http_client-&amp;gt;receive&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      http_communication_failure = 1&lt;/P&gt;&lt;P&gt;      http_invalid_state         = 2&lt;/P&gt;&lt;P&gt;      http_processing_failed     = 3.&lt;/P&gt;&lt;P&gt;  CLEAR lv_ws_response .&lt;/P&gt;&lt;P&gt;  lv_ws_response = http_client-&amp;gt;response-&amp;gt;get_cdata( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  free http_client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; now you have your XML data in the string lv_ws_response coming from your webservice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From here you can then transform it into an ABAP format using transformations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Koen Van Loocke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2008 15:29:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-input-file-in-the-upload-program/m-p/4628056#M1090062</guid>
      <dc:creator>Koen_VL</dc:creator>
      <dc:date>2008-10-27T15:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting input file in the upload program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-input-file-in-the-upload-program/m-p/4628057#M1090063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the file is in app server you will use OPEN DATASET..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the file is put in presentation server you might use ws_upload or gui_upload to read data in to internal tables.&lt;/P&gt;&lt;P&gt;you have a class also which does the same work..CL_GUI_FRONTEND_SERVICES&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2008 15:31:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-input-file-in-the-upload-program/m-p/4628057#M1090063</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-10-27T15:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting input file in the upload program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-input-file-in-the-upload-program/m-p/4628058#M1090064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Koen Van&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After going through your reply, I guess this program requires only the URL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct this, 'The classes/methods will read into the URL and get the XML data into the internal tables. These internal tables will be processed and the data loaded'. Is my thinking correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain the exporting and importing parameters that 'Create_by_url' method takes. It will be really great if you can give me a code snippet on how I get the XML data from a web service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shakir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2008 15:42:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-input-file-in-the-upload-program/m-p/4628058#M1090064</guid>
      <dc:creator>abdulazeez12</dc:creator>
      <dc:date>2008-10-27T15:42:51Z</dc:date>
    </item>
  </channel>
</rss>

