<?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 Down load data to Application Server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-data-to-application-server/m-p/1202074#M131193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please confirm me on the follwoing ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. IS it possible to download data from internal table (SAP) to Application Server(Not Presentaion Server) in XML Format ? If yes how .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If i am downloading millions of records from SAP to Application Server, If power failure happen in the middle, is it possible to Catch last downloaded record ? If yes how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Experts it is very urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Murali Krishna K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Feb 2006 04:23:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-17T04:23:54Z</dc:date>
    <item>
      <title>Down load data to Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-data-to-application-server/m-p/1202074#M131193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please confirm me on the follwoing ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. IS it possible to download data from internal table (SAP) to Application Server(Not Presentaion Server) in XML Format ? If yes how .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If i am downloading millions of records from SAP to Application Server, If power failure happen in the middle, is it possible to Catch last downloaded record ? If yes how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Experts it is very urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Murali Krishna K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2006 04:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-data-to-application-server/m-p/1202074#M131193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-17T04:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Down load data to Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-data-to-application-server/m-p/1202075#M131194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at this link........it will help you.&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1241438"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;If this helps you reward with points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2006 04:30:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-data-to-application-server/m-p/1202075#M131194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-17T04:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Down load data to Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-data-to-application-server/m-p/1202076#M131195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi murali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If i am downloading millions of records from SAP to Application Server, If power failure happen in the middle, is it possible to Catch last downloaded record ? If yes how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  For working with file,&lt;/P&gt;&lt;P&gt;  we use OPEN DATASET, TRANSFER commands in abap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.  Now what happens, that when &lt;/P&gt;&lt;P&gt;    we open file, then transfer data to it,&lt;/P&gt;&lt;P&gt;   and AFTERWARDS, when we CLOSE the dataset,&lt;/P&gt;&lt;P&gt;   AT THIS  POINT OF TIME,&lt;/P&gt;&lt;P&gt;   the operating system,&lt;/P&gt;&lt;P&gt;   SAVES the file on the hard disk&lt;/P&gt;&lt;P&gt;  (Until now, its all in the memory only)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. So, for your requirement,&lt;/P&gt;&lt;P&gt;   writing all reocrds, in ONE SHOT&lt;/P&gt;&lt;P&gt;   won't serve the purpose.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. There are TWO Things which need to be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a) WRITE the records either one by one &lt;/P&gt;&lt;P&gt;    in a loop.&lt;/P&gt;&lt;P&gt;   ie. EVERYTIME open the dataset,&lt;/P&gt;&lt;P&gt;       trasnfer 1 record,&lt;/P&gt;&lt;P&gt;       close the dataset&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;   ... Then again for the second record.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  b) AT THE SAME TIME,&lt;/P&gt;&lt;P&gt;    we need to have some Y TABLE,&lt;/P&gt;&lt;P&gt;   (OR ANOTHER DATASET FILE FOR STORING THE LAST RECORD NUMBER)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   and issue COMMIT WORK in each loop (if y table is used&lt;/P&gt;&lt;P&gt;   to stored the last record)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. So, we need to follow TWO-WAY DISCIPLINE,&lt;/P&gt;&lt;P&gt;  TO ACHIEVE WHAT U REQUIRE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-------&lt;/P&gt;&lt;P&gt;6. it possible to download data from internal table (SAP) to Application Server(Not Presentaion Server) in XML Format ? If yes how .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I dont think there is one direct FM&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. We needd to first conver the internal table&lt;/P&gt;&lt;P&gt;   data to XML Format in another internal table&lt;/P&gt;&lt;P&gt;   (there must be a FM for it, im searching for it)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  and put the data of this internal tble to &lt;/P&gt;&lt;P&gt;  application server file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2006 04:35:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-data-to-application-server/m-p/1202076#M131195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-17T04:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Down load data to Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-data-to-application-server/m-p/1202077#M131196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. For converting to XML&lt;/P&gt;&lt;P&gt;   we need to use CALL TRANSFORMATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. below is the program&lt;/P&gt;&lt;P&gt;   for converting (just copy paste in new program)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   It will also save the data to presenetaion server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   U can utilise the new generated xml table&lt;/P&gt;&lt;P&gt;   to store it in app server.&lt;/P&gt;&lt;P&gt;REPORT abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt; DATA&lt;/P&gt;&lt;P&gt;DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;a(100) TYPE c,&lt;/P&gt;&lt;P&gt;END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: xml_out TYPE string .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF upl OCCURS 0,&lt;/P&gt;&lt;P&gt;       f(255) TYPE c,&lt;/P&gt;&lt;P&gt;       END OF upl.&lt;/P&gt;&lt;P&gt;DATA: xmlupl TYPE string .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="31" type="ul"&gt;&lt;P&gt;FIRST PHASE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="31" type="ul"&gt;&lt;P&gt;FIRST PHASE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="31" type="ul"&gt;&lt;P&gt;FIRST PHASE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt; Fetch Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM t001 INTO TABLE t001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt; XML&lt;/P&gt;&lt;P&gt;CALL TRANSFORMATION ('ID')&lt;/P&gt;&lt;P&gt;SOURCE tab = t001[]&lt;/P&gt;&lt;P&gt;RESULT XML xml_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt; Convert to TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_EFI_CONVERT_STRING_TO_TABLE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    i_string         = xml_out&lt;/P&gt;&lt;P&gt;    i_tabline_length = 100&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    et_table         = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt; Download&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filetype = 'BIN'&lt;/P&gt;&lt;P&gt;    filename = 'd:\xx.xml'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    data_tab = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="31" type="ul"&gt;&lt;P&gt;SECOND PHASE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="31" type="ul"&gt;&lt;P&gt;SECOND PHASE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="31" type="ul"&gt;&lt;P&gt;SECOND PHASE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BREAK-POINT.&lt;/P&gt;&lt;P&gt;REFRESH t001.&lt;/P&gt;&lt;P&gt;CLEAR t001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename = 'D:\XX.XML'&lt;/P&gt;&lt;P&gt;    filetype = 'BIN'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    data_tab = upl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT upl.&lt;/P&gt;&lt;P&gt;  CONCATENATE xmlupl upl-f INTO xmlupl.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt; XML&lt;/P&gt;&lt;P&gt;CALL TRANSFORMATION ('ID')&lt;/P&gt;&lt;P&gt;SOURCE  XML xmlupl&lt;/P&gt;&lt;P&gt;RESULT tab = t001[]&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;BREAK-POINT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2006 04:38:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-data-to-application-server/m-p/1202077#M131196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-17T04:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Down load data to Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-data-to-application-server/m-p/1202078#M131197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1ST METHOD: U CAN USE &amp;lt;b&amp;gt;TRANSFER&amp;lt;/b&amp;gt; COMMAND   I SUPPOSE TO TRANSFER THE CONTENTS OF INTERNAL TABLE TO APPLICATION SEVER&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;2ND METHOD&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;gui_download&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;filename = Your file name&lt;/P&gt;&lt;P&gt;filetype = 'XML'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;data_tab = i_data&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;file_write_error = 1&lt;/P&gt;&lt;P&gt;no_batch = 2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2006 04:49:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-data-to-application-server/m-p/1202078#M131197</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2006-02-17T04:49:50Z</dc:date>
    </item>
  </channel>
</rss>

