<?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: write to server help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-to-server-help/m-p/2561351#M584150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thankes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u solved my problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2007 15:44:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-11T15:44:29Z</dc:date>
    <item>
      <title>write to server help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-to-server-help/m-p/2561347#M584146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hallow i send this table to server but the problem that after the second perform &lt;/P&gt;&lt;P&gt;delete the data that write in first perform and so on ,how can i write to the same file all the table like append?&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;PERFORM write_2_server TABLES hire_emp_tab.&lt;/P&gt;&lt;P&gt;PERFORM write_2_server TABLES entrance_tab.&lt;/P&gt;&lt;P&gt;PERFORM write_2_server TABLES integration_tab.&lt;/P&gt;&lt;P&gt;PERFORM write_2_server TABLES duty_tab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;wa&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" MOVE 'D:_pa_test_mmsk_pa1.txt' TO adress.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET adress IN TEXT MODE&lt;/P&gt;&lt;P&gt;ENCODING DEFAULT FOR OUTPUT.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;no_file = ' '.&lt;/P&gt;&lt;P&gt;LOOP AT p_tab_data ASSIGNING &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;TRANSFER &amp;lt;wa&amp;gt; TO adress.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;CLOSE DATASET adress.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;no_file = 'X'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 15:21:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-to-server-help/m-p/2561347#M584146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T15:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: write to server help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-to-server-help/m-p/2561348#M584147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, you'll have to open a different dataset each time you perform the form write_2_server. You can pass the dataset name each time you call it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 15:24:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-to-server-help/m-p/2561348#M584147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T15:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: write to server help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-to-server-help/m-p/2561349#M584148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i cant to write all the table to the same file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 15:29:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-to-server-help/m-p/2561349#M584148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T15:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: write to server help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-to-server-help/m-p/2561350#M584149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you use open dataset for output,it deletes the previous data and it will insert new data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your case you have 4 perform statement,first perform it puts the data and second perform it delete the old data&lt;/P&gt;&lt;P&gt;and inserting new data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so use append statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Opening a File for Appending Data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To open a file so that you can append data to the end of it, use the FOR APPENDING addition in the OPEN DATASET statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET &amp;lt;dsn&amp;gt; FOR APPENDING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement opens a file to which you can append data. If the file does not already exist, it is created automatically. If it does exist, but is closed, the system opens it, and sets the position to the end of the file. If the file exists and is already open (for read or write access, or for appending), the position is set to the end of the file. SY-SUBRC is always 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET FNAME FOR APPENDING. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the below help :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is good programming style to close files that are already open before you reopen them for a different operation (for further information about closing files, refer to Closing a File).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA FNAME(60) VALUE 'myfile'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA NUM TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET FNAME FOR OUTPUT.&lt;/P&gt;&lt;P&gt;DO 5 TIMES.&lt;/P&gt;&lt;P&gt;   NUM = NUM + 1.&lt;/P&gt;&lt;P&gt;   TRANSFER NUM TO FNAME.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET FNAME FOR INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET FNAME FOR APPENDING.&lt;/P&gt;&lt;P&gt;NUM = 0.&lt;/P&gt;&lt;P&gt;DO 5 TIMES.&lt;/P&gt;&lt;P&gt;   NUM = NUM + 10.&lt;/P&gt;&lt;P&gt;   TRANSFER NUM TO FNAME.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET FNAME FOR INPUT.&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;  READ DATASET FNAME INTO NUM.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  WRITE / NUM.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 15:32:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-to-server-help/m-p/2561350#M584149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T15:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: write to server help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-to-server-help/m-p/2561351#M584150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thankes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u solved my problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 15:44:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-to-server-help/m-p/2561351#M584150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T15:44:29Z</dc:date>
    </item>
  </channel>
</rss>

