<?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: Application Server files accesssing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-files-accesssing/m-p/3818568#M918364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
IF NOT p_ufile IS INITIAL.

OPEN DATASET p_ufile FOR OUTPUT IN TEXT MODE.
IF sy-subrc NE 0.
EXIT.
ENDIF.
LOOP AT p_output INTO wa_file.
TRANSFER wa_file TO p_ufile.
CLEAR wa_file.
ENDLOOP.
CLOSE DATASET p_ufile.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 May 2008 16:51:16 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2008-05-11T16:51:16Z</dc:date>
    <item>
      <title>Application Server files accesssing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-files-accesssing/m-p/3818566#M918362</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;I Uploaded file into Application server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PEN DATASET '/usr/sap/tmp/file.txt' FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT t_typ_data INTO w_typ_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      TRANSFER w_typ_data TO '/usr/sap/tmp/file.txt'.&lt;/P&gt;&lt;P&gt;&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 '/usr/sap/tmp/file.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The how to check the file uploaded or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i trie in AL11 but it was not there&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2008 11:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-files-accesssing/m-p/3818566#M918362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-11T11:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Application Server files accesssing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-files-accesssing/m-p/3818567#M918363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raji,&lt;/P&gt;&lt;P&gt;First put a break point at ur OPEN dataset statement and check the sy-subrc Value after executing this statement.&lt;/P&gt;&lt;P&gt;If it is zero then execure ur report. Now go to transaction&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CG3Y&lt;/STRONG&gt; Here give ur application server file name and download file name in ur PC. Now press Transfer. It will create a file in ur PC. Now compare ur original file and downloaded file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly for uploading file u can use transaction &lt;STRONG&gt;CG3Z&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also avoid hardcoding the file name in ur program. Take some variable or parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be u haven't checked carefully in al11. Another important point is file name is &lt;STRONG&gt;case sensitive&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2008 11:44:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-files-accesssing/m-p/3818567#M918363</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-05-11T11:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Application Server files accesssing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-files-accesssing/m-p/3818568#M918364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
IF NOT p_ufile IS INITIAL.

OPEN DATASET p_ufile FOR OUTPUT IN TEXT MODE.
IF sy-subrc NE 0.
EXIT.
ENDIF.
LOOP AT p_output INTO wa_file.
TRANSFER wa_file TO p_ufile.
CLEAR wa_file.
ENDLOOP.
CLOSE DATASET p_ufile.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2008 16:51:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-files-accesssing/m-p/3818568#M918364</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-05-11T16:51:16Z</dc:date>
    </item>
  </channel>
</rss>

