<?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: uploading from application server. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-from-application-server/m-p/4019039#M960310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:FILE_LIST like RSFILLST occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data: begin of tabl occurs 500,&lt;/P&gt;&lt;P&gt;        line(400),&lt;/P&gt;&lt;P&gt;      end of tabl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR file_list[].&lt;/P&gt;&lt;P&gt;  clear tabl[].&lt;/P&gt;&lt;P&gt;  concatenate 'dir' dirname  into unixcom separated by space.&lt;/P&gt;&lt;P&gt;  concatenate unixcom '\*.*' into unixcom.&lt;/P&gt;&lt;P&gt;  call 'SYSTEM' id 'COMMAND' field unixcom&lt;/P&gt;&lt;P&gt;                id 'TAB'     field tabl[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  delete tabl where line cs 'Volume'.&lt;/P&gt;&lt;P&gt;  delete tabl where line cs 'Directory'.&lt;/P&gt;&lt;P&gt;  delete tabl where line cs 'Dir'.&lt;/P&gt;&lt;P&gt;  delete tabl where line cs 'file'.&lt;/P&gt;&lt;P&gt;  delete tabl where line = space.&lt;/P&gt;&lt;P&gt;  loop at tabl.&lt;/P&gt;&lt;P&gt;    clear tabl-line+0(39).&lt;/P&gt;&lt;P&gt;    file_orig = tabl-line.&lt;/P&gt;&lt;P&gt;    condense file_orig.&lt;/P&gt;&lt;P&gt;    concatenate '"' file_orig '"' into file_orig.&lt;/P&gt;&lt;P&gt;    condense tabl-line.&lt;/P&gt;&lt;P&gt;    move tabl-line to file_list-name.&lt;/P&gt;&lt;P&gt;    append file_list.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;*Don't consider '.' or '..'&lt;/P&gt;&lt;P&gt;  delete file_list where NAME = '.' or name = '..'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For unix change dir by ls&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jun 2008 14:40:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-23T14:40:09Z</dc:date>
    <item>
      <title>uploading from application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-from-application-server/m-p/4019038#M960309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a directory in the application server having many files which I need to be uploaded into an staging table.&lt;/P&gt;&lt;P&gt;I have written a program in this regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now whenever a file from the directory is uploaded into the staging table ,we need to have an entry into another table called control table where the filename is entered ,the no.of rows in the file is entered and the date and time when the file is being staged to the table is entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I achieve this.&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards ankit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Jun 23, 2008 10:41 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 07:20:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-from-application-server/m-p/4019038#M960309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T07:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: uploading from application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-from-application-server/m-p/4019039#M960310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:FILE_LIST like RSFILLST occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data: begin of tabl occurs 500,&lt;/P&gt;&lt;P&gt;        line(400),&lt;/P&gt;&lt;P&gt;      end of tabl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR file_list[].&lt;/P&gt;&lt;P&gt;  clear tabl[].&lt;/P&gt;&lt;P&gt;  concatenate 'dir' dirname  into unixcom separated by space.&lt;/P&gt;&lt;P&gt;  concatenate unixcom '\*.*' into unixcom.&lt;/P&gt;&lt;P&gt;  call 'SYSTEM' id 'COMMAND' field unixcom&lt;/P&gt;&lt;P&gt;                id 'TAB'     field tabl[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  delete tabl where line cs 'Volume'.&lt;/P&gt;&lt;P&gt;  delete tabl where line cs 'Directory'.&lt;/P&gt;&lt;P&gt;  delete tabl where line cs 'Dir'.&lt;/P&gt;&lt;P&gt;  delete tabl where line cs 'file'.&lt;/P&gt;&lt;P&gt;  delete tabl where line = space.&lt;/P&gt;&lt;P&gt;  loop at tabl.&lt;/P&gt;&lt;P&gt;    clear tabl-line+0(39).&lt;/P&gt;&lt;P&gt;    file_orig = tabl-line.&lt;/P&gt;&lt;P&gt;    condense file_orig.&lt;/P&gt;&lt;P&gt;    concatenate '"' file_orig '"' into file_orig.&lt;/P&gt;&lt;P&gt;    condense tabl-line.&lt;/P&gt;&lt;P&gt;    move tabl-line to file_list-name.&lt;/P&gt;&lt;P&gt;    append file_list.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;*Don't consider '.' or '..'&lt;/P&gt;&lt;P&gt;  delete file_list where NAME = '.' or name = '..'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For unix change dir by ls&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 14:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-from-application-server/m-p/4019039#M960310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T14:40:09Z</dc:date>
    </item>
  </channel>
</rss>

