<?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: Need to save a file on Application server, receiving error. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-save-a-file-on-application-server-receiving-error/m-p/5581355#M1272823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data : P_FILE TYPE rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Here need to specify the length,  DATA : P_FILE(128) TYPE RLGRAP-FILENAME.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 May 2009 08:55:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-15T08:55:04Z</dc:date>
    <item>
      <title>Need to save a file on Application server, receiving error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-save-a-file-on-application-server-receiving-error/m-p/5581349#M1272817</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;&lt;/P&gt;&lt;P&gt;I want to save a file on Application server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data in the final output table gt_out_chng. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to write a file in the application server and this is the&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code that written,&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;data : MY_NEW_FILE type file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MY_NEW_FILE = '/tmp/test.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gv_output(255) type c,&lt;/P&gt;&lt;P&gt;      P_FILE TYPE rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   p_file = 'F:\USR\SAP\PUT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE p_file '\' sy-datum sy-uzeit '.txt'&lt;/P&gt;&lt;P&gt;                             INTO p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET 'P_FILE' IN TEXT MODE FOR OUTPUT&lt;/P&gt;&lt;P&gt;                                  ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt; IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT GT_OUT_CHNG INTO WA_OUTPUT_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; TRANSFER WA_OUTPUT_TAB TO 'P_FILE'.&lt;/P&gt;&lt;P&gt; CLEAR  WA_OUTPUT_TAB.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET 'P_FILE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am receiving an error message as follows : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"WA_OUTPUT_TAB" cannot be a table, a reference, &lt;/P&gt;&lt;P&gt;a string, or contain any of these objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please correct the code if found any errors..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions will be apprecaited!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kittu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kittu on May 15, 2009 10:27 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 08:26:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-save-a-file-on-application-server-receiving-error/m-p/5581349#M1272817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T08:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need to save a file on Application server, receiving error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-save-a-file-on-application-server-receiving-error/m-p/5581350#M1272818</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;Tell us, please how did you declare the WA_OUTPUT_TAB variable?&lt;/P&gt;&lt;P&gt;It should not contain any of the objects, that the error message mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 08:30:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-save-a-file-on-application-server-receiving-error/m-p/5581350#M1272818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T08:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need to save a file on Application server, receiving error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-save-a-file-on-application-server-receiving-error/m-p/5581351#M1272819</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;  you are using wrong variable name. P_FILE holds the path for local file, not in application server, therefor you have an error during opening the dataset. So use correct variable and also don't use apostrophes for variable name because then it is not the variable value but the path is you variable!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
OPEN DATASET MY_NEW_FILE IN TEXT MODE FOR OUTPUT
ENCODING DEFAULT.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Karol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Karol Seman on May 15, 2009 10:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 08:32:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-save-a-file-on-application-server-receiving-error/m-p/5581351#M1272819</guid>
      <dc:creator>karol_seman</dc:creator>
      <dc:date>2009-05-15T08:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need to save a file on Application server, receiving error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-save-a-file-on-application-server-receiving-error/m-p/5581352#M1272820</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;TRANSFER WA_OUTPUT_TAB TO 'P_FILE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dont put P_FILE under single colen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rite one- TRANSFER WA_OUTPUT_TAB TO P_FILE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 08:34:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-save-a-file-on-application-server-receiving-error/m-p/5581352#M1272820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T08:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need to save a file on Application server, receiving error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-save-a-file-on-application-server-receiving-error/m-p/5581353#M1272821</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;Instead of using the following,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OPEN DATASET 'P_FILE' IN TEXT MODE FOR OUTPUT ENCODING DEFAULT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OPEN DATASET P_FILE IN TEXT MODE FOR OUTPUT ENCODING DEFAULT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P_FILE is your variable, do not put it in quotes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: The same thing applies for your transfer and close statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kris Donald on May 15, 2009 2:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 08:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-save-a-file-on-application-server-receiving-error/m-p/5581353#M1272821</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2009-05-15T08:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need to save a file on Application server, receiving error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-save-a-file-on-application-server-receiving-error/m-p/5581354#M1272822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRANSFER &lt;STRONG&gt;line&lt;/STRONG&gt; TO &lt;STRONG&gt;filename&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;line&lt;/STRONG&gt; MUST be a flat structure.  Though you've not given the definition, it sounds like WA_OUTPUT_TAB is a table.  Either that or it contains tables, references or string.  Just like the error message says.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 08:42:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-save-a-file-on-application-server-receiving-error/m-p/5581354#M1272822</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-05-15T08:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need to save a file on Application server, receiving error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-save-a-file-on-application-server-receiving-error/m-p/5581355#M1272823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data : P_FILE TYPE rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Here need to specify the length,  DATA : P_FILE(128) TYPE RLGRAP-FILENAME.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 08:55:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-save-a-file-on-application-server-receiving-error/m-p/5581355#M1272823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T08:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need to save a file on Application server, receiving error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-save-a-file-on-application-server-receiving-error/m-p/5581356#M1272824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kittu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only mistake i suppose u have done is u have taken the P_FILE in  qoutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please remove the quetes everywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kanishak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2009 08:18:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-save-a-file-on-application-server-receiving-error/m-p/5581356#M1272824</guid>
      <dc:creator>kanishakgupta1</dc:creator>
      <dc:date>2009-05-16T08:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need to save a file on Application server, receiving error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-save-a-file-on-application-server-receiving-error/m-p/5581357#M1272825</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;Thank you for your quick response! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is fixed!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only mistake was I had kept the file name in qoutes. When removed from the quotes it was working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I apprecaite the help/suggestions! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kittu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 07:27:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-save-a-file-on-application-server-receiving-error/m-p/5581357#M1272825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T07:27:30Z</dc:date>
    </item>
  </channel>
</rss>

