<?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: to  save it server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-save-it-server/m-p/4568781#M1078114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Oct 2008 06:58:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-07T06:58:55Z</dc:date>
    <item>
      <title>to  save it server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-save-it-server/m-p/4568773#M1078106</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;     wht i get in output display in abap editor that as to be save it in application server in format of notepad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 06:34:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-save-it-server/m-p/4568773#M1078106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T06:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: to  save it server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-save-it-server/m-p/4568774#M1078107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Please be descriptive in your query so that we can understand what help exactly you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shailesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 06:38:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-save-it-server/m-p/4568774#M1078107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T06:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: to  save it server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-save-it-server/m-p/4568775#M1078108</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;When you get your data into the final internal table then please use the dataset commands to write the value into the application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please type 'OPEN DATASET' on your abap screen and press F1 and it will help you write the required code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pramod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 06:38:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-save-it-server/m-p/4568775#M1078108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T06:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: to  save it server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-save-it-server/m-p/4568776#M1078109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wht i get in output display in abap editor that as to be save it in application server in format of notepad. HOW TO WRITE CODE PLZ GUIDE ME PROPERLY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 06:40:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-save-it-server/m-p/4568776#M1078109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T06:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: to  save it server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-save-it-server/m-p/4568777#M1078110</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;There are 2 methods&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. in your current program, use the open dataset statement&lt;/P&gt;&lt;P&gt;wherever you have a write statement, replace it with a transfer statement to transfer the contents to the file instead of writing it to screen&lt;/P&gt;&lt;P&gt;Close your dataset at the end of the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Run the following program&lt;/P&gt;&lt;P&gt;Change p_prog to your original report name&lt;/P&gt;&lt;P&gt;keep the rfc destination as NONE&lt;/P&gt;&lt;P&gt;change p_file to a filepath on your application server where you want your file to the written to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZKRIS_RUN_VIA_RFC
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Author  : Kris Donald
*&amp;amp; Date    : 04-09-2008
*&amp;amp; Purpose : Run a program via rfc (S_TCODE auth is needed for SE38)
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Date Changed by Tag Description
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  zkris_run_via_rfc.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE f1.
PARAMETERS: p_dest LIKE rfcdes-rfcdest DEFAULT 'NONE'.
PARAMETERS: p_prog LIKE trdir-name DEFAULT 'Z'.
PARAMETERS: p_file(512) lower case default 'C:\file.txt'. 
SELECTION-SCREEN END OF BLOCK b1.

INITIALIZATION.
  f1 = 'Paramz'.

START-OF-SELECTION.

  DATA: lv_errormessage LIKE sy-msgv1.
  DATA: it_program      LIKE progtab   OCCURS 0 WITH HEADER LINE.
  DATA: it_writes       LIKE listzeile OCCURS 0 WITH HEADER LINE.

  READ REPORT p_prog INTO it_program.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    WRITE: /'Could not read program ', p_prog.
    EXIT.
  ENDIF.


* Create on target system and retrieve screen output.
  CALL FUNCTION 'RFC_ABAP_INSTALL_AND_RUN'
    DESTINATION p_dest
    IMPORTING
      errormessage = lv_errormessage
    TABLES
      program      = it_program
      writes       = it_writes
    EXCEPTIONS
      OTHERS       = 1.

  open dataset p_file for output in text mode encoding default.

  LOOP AT it_writes.
    transfer it_writes to p_file.
  ENDLOOP.

  close dataset p_file.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 06:44:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-save-it-server/m-p/4568777#M1078110</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2008-10-07T06:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: to  save it server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-save-it-server/m-p/4568778#M1078111</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;If you want to transfer after showing the output then you need to do interactive reporting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you displaying your data ? ALV or standard ? If in ALV you need to set pf status and do a user command and then when you click the button on your output screen  you need to write the dataset commands in your User command form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For standard output we need to do the same things but they are not very complex..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you planning to change any output a value and then transfer it? If not you can do output display and transfer to server parallelly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pramod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 06:46:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-save-it-server/m-p/4568778#M1078111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T06:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: to  save it server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-save-it-server/m-p/4568779#M1078112</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;  what get in ouput display that as to be save it in server as text format&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 06:53:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-save-it-server/m-p/4568779#M1078112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T06:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: to  save it server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-save-it-server/m-p/4568780#M1078113</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;For this in your output screen you need to define a new button for export to local server ( using set-pf-status command in your program ) and when you click on this button you need to handle this event using a user command routine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pramod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 06:56:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-save-it-server/m-p/4568780#M1078113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T06:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: to  save it server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-save-it-server/m-p/4568781#M1078114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 06:58:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-save-it-server/m-p/4568781#M1078114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T06:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: to  save it server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-save-it-server/m-p/4568782#M1078115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;plz send me code how to doit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 08:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-save-it-server/m-p/4568782#M1078115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T08:49:25Z</dc:date>
    </item>
  </channel>
</rss>

