<?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: FM or Program to process multiple *.ccd files in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095793#M1615901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to create one report and this will run in background  and it should pick multiple files from the given folder and process it to SAP . But here if i use the above method how it is possible to make the file selection automatically ..ie if suppose 5 files are there in the folder it should pick five files and process all of them. ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards , &lt;/P&gt;&lt;P&gt;Sijin K P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2011 12:54:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-07-27T12:54:59Z</dc:date>
    <item>
      <title>FM or Program to process multiple *.ccd files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095790#M1615898</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;&lt;/P&gt;&lt;P&gt;Is there any Function Module  or program  to Pick  multiple  *.ccd  files from a folder  and  process them in to SAP ECC  ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards ,&lt;/P&gt;&lt;P&gt;Sijin K P.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: SIJIN K P on Jul 27, 2011 1:34 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 11:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095790#M1615898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-27T11:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: FM or Program to process multiple *.ccd files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095791#M1615899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this static method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_OPEN_DIALOG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 11:41:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095791#M1615899</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-07-27T11:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: FM or Program to process multiple *.ccd files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095792#M1615900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case you need to filter the Directory files by a given extension, you can use the following method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_GUI_FRONTEND_SERVICES=&amp;gt;DIRECTORY_LIST_FILES&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 11:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095792#M1615900</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-07-27T11:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: FM or Program to process multiple *.ccd files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095793#M1615901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to create one report and this will run in background  and it should pick multiple files from the given folder and process it to SAP . But here if i use the above method how it is possible to make the file selection automatically ..ie if suppose 5 files are there in the folder it should pick five files and process all of them. ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards , &lt;/P&gt;&lt;P&gt;Sijin K P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 12:54:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095793#M1615901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-27T12:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: FM or Program to process multiple *.ccd files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095794#M1615902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you can use this method: CL_GUI_FRONTEND_SERVICES=&amp;gt;DIRECTORY_LIST_FILES, specifying the directory path in which the files are located, as well as the  filtering criteria, and once you have the internal table with all the files you have to upload, then call GUI_UPLOAD, as many times as you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 14:35:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095794#M1615902</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-07-27T14:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: FM or Program to process multiple *.ccd files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095795#M1615903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot access files on the presentation server in the background mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 03:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095795#M1615903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-28T03:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: FM or Program to process multiple *.ccd files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095796#M1615904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will this metthod work for Files in application server ..??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sijin KP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 05:18:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095796#M1615904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-28T05:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: FM or Program to process multiple *.ccd files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095797#M1615905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM EPS2_GET_DIRECTORY_LISTING to the list of files on Application server directory. This FM works great in both foreground and background.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 05:24:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095797#M1615905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-28T05:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: FM or Program to process multiple *.ccd files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095798#M1615906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rumhat ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tested this FM . But i am not able to read multiple file name using this . Please correct me if  i am wrong ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'EPS2_GET_DIRECTORY_LISTING'&lt;/P&gt;&lt;P&gt;               EXPORTING&lt;/P&gt;&lt;P&gt;                 iv_dir_name                  = '/usr/sap/ED5/DVEBMGS00/work'&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;                FILE_MASK                     = '*.txt'&lt;/P&gt;&lt;P&gt;             IMPORTING&lt;/P&gt;&lt;P&gt;               DIR_NAME                     = lv_dir&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;               FILE_COUNTER                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;               ERROR_COUNTER                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;               tables&lt;/P&gt;&lt;P&gt;                dir_list                     = lit_table.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;             EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;               INVALID_EPS_SUBDIR           = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;               SAPGPARAM_FAILED             = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;               BUILD_DIRECTORY_FAILED       = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;               NO_AUTHORIZATION             = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;               READ_DIRECTORY_FAILED        = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;               TOO_MANY_READ_ERRORS         = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;               EMPTY_DIRECTORY_LIST         = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;               OTHERS                       = 8&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                      .&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" 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="2" 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;LI level="1" type="ul"&gt;&lt;P&gt;            ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are multile .txt files in ' usr/sap/ED5/DVEBMGS00/work'   directory . But in lit_table contains only one entry ie last file .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards ,&lt;/P&gt;&lt;P&gt;Sijin K P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 06:05:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095798#M1615906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-28T06:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: FM or Program to process multiple *.ccd files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095799#M1615907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pass value '&lt;STRONG&gt;.&lt;/STRONG&gt;' to parameter filemask to get all the available files in the application server directory and then process the necessary files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rupesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: rumhat on Jul 28, 2011 8:09 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 06:09:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095799#M1615907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-28T06:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: FM or Program to process multiple *.ccd files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095800#M1615908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rupesh ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any keyword to filter  respective file extension ( .txt , .ccd  etc ) from table or do we need to loop the table and check each records ..??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any FM to upload  a file in to an archive folder in application server  . &lt;/P&gt;&lt;P&gt;I have to move the file to archive folder after the competition of file process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards ,&lt;/P&gt;&lt;P&gt;Sijin  KP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 06:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095800#M1615908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-28T06:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: FM or Program to process multiple *.ccd files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095801#M1615909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did it by looping through the internal table and filtering files accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as moving files across application server is considered, you can do it by using external system command(SM69).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Host OS -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. UNIX - Use command "mv" (works great in both foreground &amp;amp; background mode)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Windows - Use command "move" (not sure if it works in background mode)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An alternate way is to use Dataset handling technique -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. OPEN DATASET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. READ DATASET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. TRANSFER to dest_file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. DELETE source_file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this is cumbersome, but it surely does works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rupesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 07:02:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-or-program-to-process-multiple-ccd-files/m-p/8095801#M1615909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-28T07:02:32Z</dc:date>
    </item>
  </channel>
</rss>

