<?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: Suggestion for coding problem. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-for-coding-problem/m-p/6645796#M1444121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use FM - GUI_UPLOAD/DOWNLOAD to upload /download from Presentation server.&lt;/P&gt;&lt;P&gt;But you cannot access Presentation server while executing program in background mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Feb 2010 10:15:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-16T10:15:17Z</dc:date>
    <item>
      <title>Suggestion for coding problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-for-coding-problem/m-p/6645795#M1444120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to write a program which does the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runs in background&lt;/P&gt;&lt;P&gt;Reads all files for a particular directory on the presentation server (Drive Z:\, for example). &lt;STRONG&gt;What FM?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Upload each of the files from the list given above and process them. &lt;STRONG&gt;What FM to use for uploading?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Once processed, I need to move each processed file to an archived directory, again on the presentation server. &lt;STRONG&gt;What FM's can I use?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done this before but all files were held on application server (Unix), read from there and also archioved to there as well. That was easy, but the presentation server gives more challenges. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When running an ABAP program in background can the presentation server be accessed in this manner?. When I say presentation server I mean a local Network drive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone be of help?. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jason Stratham on Feb 16, 2010 11:09 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 10:04:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-for-coding-problem/m-p/6645795#M1444120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-16T10:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion for coding problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-for-coding-problem/m-p/6645796#M1444121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use FM - GUI_UPLOAD/DOWNLOAD to upload /download from Presentation server.&lt;/P&gt;&lt;P&gt;But you cannot access Presentation server while executing program in background mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 10:15:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-for-coding-problem/m-p/6645796#M1444121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-16T10:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion for coding problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-for-coding-problem/m-p/6645797#M1444122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use GUI_UPLOAD/DOWNLOAD &lt;/P&gt;&lt;P&gt;background job will not work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 10:17:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-for-coding-problem/m-p/6645797#M1444122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-16T10:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion for coding problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-for-coding-problem/m-p/6645798#M1444123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thinking about this, I may have to stick with processing within the application server and have just run FTP type commands to connect to the network drive to access the files. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should be able to do this using standard FTP commands, using the method demostrated by program RSFTP002.&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;Jason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jason Stratham on Feb 16, 2010 12:32 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 10:32:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-for-coding-problem/m-p/6645798#M1444123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-16T10:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion for coding problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-for-coding-problem/m-p/6645799#M1444124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get the list of files by using the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    directory        = p_fldr&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  filter           = '*.xls'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_COUNT       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DIR_COUNT        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    file_table       = it_file&lt;/P&gt;&lt;P&gt;    dir_table        = it_dir_chk&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CNTL_ERROR       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS           = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at it_file.&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;I'm currently uploading multiple excel sheets of multiple excel files&lt;/P&gt;&lt;P&gt;and using classes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if it is only one sheet you could use FM  'ALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else use the gui upload/download route&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vic Delport on Feb 16, 2010 12:57 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 11:56:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-for-coding-problem/m-p/6645799#M1444124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-16T11:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion for coding problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-for-coding-problem/m-p/6645800#M1444125</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, 16 Feb 2010 11:56:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-for-coding-problem/m-p/6645800#M1444125</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-02-16T11:56:23Z</dc:date>
    </item>
  </channel>
</rss>

