<?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: Processing Multiple FILES :( in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-multiple-files/m-p/2958404#M697913</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 can write a custom program to get list of IDoc files with file mask 'idoc*.txt' using FM EPS_GET_DIRECTORY_LISTING. Then loop through the return file list and perform submit program RSEINB00 by passing the file name.&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2007 18:42:55 GMT</pubDate>
    <dc:creator>ferry_lianto</dc:creator>
    <dc:date>2007-10-24T18:42:55Z</dc:date>
    <item>
      <title>Processing Multiple FILES :(</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-multiple-files/m-p/2958403#M697912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, I have a requirementin Inbound 856. I have a directory where I will get idoc files for each partial delivery. so the file name shouldnot be the same. let say idoc1.txt , idoc2.txt. Now I have to process these two files one after other and this should be a automatic process. Can anyone help me how to proceed ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 18:30:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-multiple-files/m-p/2958403#M697912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T18:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Processing Multiple FILES :(</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-multiple-files/m-p/2958404#M697913</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 can write a custom program to get list of IDoc files with file mask 'idoc*.txt' using FM EPS_GET_DIRECTORY_LISTING. Then loop through the return file list and perform submit program RSEINB00 by passing the file name.&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 18:42:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-multiple-files/m-p/2958404#M697913</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-10-24T18:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Processing Multiple FILES :(</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-multiple-files/m-p/2958405#M697914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ferry, I was looking for such thing. Can you tell me where to call this FM and then the program RSEINB00. Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 21:15:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-multiple-files/m-p/2958405#M697914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T21:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Processing Multiple FILES :(</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-multiple-files/m-p/2958406#M697915</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;As I mentioned earlier, you need to create a custom report via SE38.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ZTEST.
                                                                        
PARAMETERS: P_DIR  LIKE EPSF-EPSDIRNAM,
            P_FILE LIKE EPSF-EPSFILNAM DEFAULT 'IDOC*.TXT'.
                                                                        
DATA: FILE_LIST  LIKE EPSFILI OCCURS 0 WITH HEADER LINE,
      FILE       LIKE EDI_PATH-PTHNAM.
                                                                        
CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
  EXPORTING
    DIR_NAME               = P_DIR
    FILE_MASK              = P_FILE
  TABLES
    DIR_LIST               = FILE_LIST
  EXCEPTIONS
    INVALID_EPS_SUBDIR     = 1
    SAPGPARAM_FAILED       = 2
    BUILD_DIRECTORY_FAILED = 3
    NO_AUTHORIZATION       = 4
    READ_DIRECTORY_FAILED  = 5
    TOO_MANY_READ_ERRORS   = 6
    EMPTY_DIRECTORY_LIST   = 7
    OTHERS                 = 8.

IF SY-SUBRC = 0.
  LOOP AT FILE_LIST.
    CONCATENATE P_DIR '/' FILE_LIST-NAME INTO FILE.
                                                                        
    SUBMIT RSEINB00 WITH P_FILE = FILE
                    AND RETURN.
  ENDLOOP.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 21:31:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-multiple-files/m-p/2958406#M697915</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-10-24T21:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Processing Multiple FILES :(</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-multiple-files/m-p/2958407#M697916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the Code Ferry, I have one doubt now. If i use this code then Do the FM EDI_DATA_INCOMING runs.Does this code calls IDOC_INPUT_DESADV internally ?  or else we have to include in the code? .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        abap beginner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 21:53:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-multiple-files/m-p/2958407#M697916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T21:53:34Z</dc:date>
    </item>
  </channel>
</rss>

