<?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 CALL 'C_DIR_READ_NEXT' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-c-dir-read-next/m-p/751445#M36182</link>
    <description>&lt;P&gt;HI&lt;/P&gt;
  &lt;P&gt;I have 15 flat files and I uploaded into application layer inbox folder for processing the file.&lt;/P&gt;
  &lt;P&gt;I have maintained 15 file names in my Z program.&lt;/P&gt;
  &lt;P&gt;While reading this FM&lt;/P&gt;
  &lt;P&gt;CALL 'C_DIR_READ_START'&lt;BR /&gt; ID 'DIR' FIELD gv_path1&lt;BR /&gt; ID 'FILE' FIELD gv_fmask&lt;BR /&gt; ID 'ERRNO' FIELD file-errno&lt;BR /&gt; ID 'ERRMSG' FIELD file-errmsg.&lt;BR /&gt; &lt;BR /&gt; *--Select files 1 by 1&lt;BR /&gt; CALL 'C_DIR_READ_NEXT'&lt;BR /&gt; ID 'TYPE' FIELD file-type&lt;BR /&gt; ID 'NAME' FIELD file-name&lt;BR /&gt; ID 'LEN' FIELD file-len&lt;BR /&gt; ID 'OWNER' FIELD file-owner&lt;BR /&gt; ID 'MTIME' FIELD file-mtime&lt;BR /&gt; ID 'MODE' FIELD file-mode&lt;BR /&gt; ID 'ERRNO' FIELD file-errno&lt;BR /&gt; ID 'ERRMSG' FIELD file-errmsg.&lt;/P&gt;
  &lt;P&gt;Ex: In my scenario&lt;/P&gt;
  &lt;P&gt;i have maintained 15 file names in select options but i uploaded only 10 files in the app layer(al11).&lt;/P&gt;
  &lt;P&gt;Here.FM CALL 'C_DIR_READ_NEXT' check the file name in sequence.if any file is not available then it will not be picking other available file in the sequence.&lt;/P&gt;
  &lt;P&gt;How to skip this error and load the available file in AL11 layer.&lt;/P&gt;
  &lt;P&gt;Thanks in advance.&lt;/P&gt;
  &lt;P&gt;Shrini&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jan 2019 08:17:23 GMT</pubDate>
    <dc:creator>shrinivasan</dc:creator>
    <dc:date>2019-01-03T08:17:23Z</dc:date>
    <item>
      <title>CALL 'C_DIR_READ_NEXT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-c-dir-read-next/m-p/751445#M36182</link>
      <description>&lt;P&gt;HI&lt;/P&gt;
  &lt;P&gt;I have 15 flat files and I uploaded into application layer inbox folder for processing the file.&lt;/P&gt;
  &lt;P&gt;I have maintained 15 file names in my Z program.&lt;/P&gt;
  &lt;P&gt;While reading this FM&lt;/P&gt;
  &lt;P&gt;CALL 'C_DIR_READ_START'&lt;BR /&gt; ID 'DIR' FIELD gv_path1&lt;BR /&gt; ID 'FILE' FIELD gv_fmask&lt;BR /&gt; ID 'ERRNO' FIELD file-errno&lt;BR /&gt; ID 'ERRMSG' FIELD file-errmsg.&lt;BR /&gt; &lt;BR /&gt; *--Select files 1 by 1&lt;BR /&gt; CALL 'C_DIR_READ_NEXT'&lt;BR /&gt; ID 'TYPE' FIELD file-type&lt;BR /&gt; ID 'NAME' FIELD file-name&lt;BR /&gt; ID 'LEN' FIELD file-len&lt;BR /&gt; ID 'OWNER' FIELD file-owner&lt;BR /&gt; ID 'MTIME' FIELD file-mtime&lt;BR /&gt; ID 'MODE' FIELD file-mode&lt;BR /&gt; ID 'ERRNO' FIELD file-errno&lt;BR /&gt; ID 'ERRMSG' FIELD file-errmsg.&lt;/P&gt;
  &lt;P&gt;Ex: In my scenario&lt;/P&gt;
  &lt;P&gt;i have maintained 15 file names in select options but i uploaded only 10 files in the app layer(al11).&lt;/P&gt;
  &lt;P&gt;Here.FM CALL 'C_DIR_READ_NEXT' check the file name in sequence.if any file is not available then it will not be picking other available file in the sequence.&lt;/P&gt;
  &lt;P&gt;How to skip this error and load the available file in AL11 layer.&lt;/P&gt;
  &lt;P&gt;Thanks in advance.&lt;/P&gt;
  &lt;P&gt;Shrini&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 08:17:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-c-dir-read-next/m-p/751445#M36182</guid>
      <dc:creator>shrinivasan</dc:creator>
      <dc:date>2019-01-03T08:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: CALL 'C_DIR_READ_NEXT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-c-dir-read-next/m-p/751446#M36183</link>
      <description>&lt;P&gt;Shrini one simple question if the files are available on application server AL11 why don't you use OPEN DATASET?  Calling C functions is not the right approach.  Any reason for using these special functions&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 07:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-c-dir-read-next/m-p/751446#M36183</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2019-01-04T07:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: CALL 'C_DIR_READ_NEXT'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-c-dir-read-next/m-p/751447#M36184</link>
      <description>&lt;P&gt;Hi Shrini,&lt;/P&gt;&lt;P&gt;Look into FMs of Function Group EPSF.&lt;BR /&gt;I would suggest FM &lt;STRONG&gt;EPS_FTP_LS&lt;/STRONG&gt;. With this FM you can read a folder and then build your logic with the return given.&lt;BR /&gt;&lt;BR /&gt;Some hints:&lt;BR /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If you use SM37 to tets take care of DIRECTORY parameter; it's case sensitive... test with a real program or change properly in debug more. SM37 will change to uppercase.&lt;/LI&gt;&lt;LI&gt;This FM allows you to use long file names, other FM can limit this to 40 or 75 chars and sometimes it's not enough.&lt;/LI&gt;&lt;LI&gt;It can be use for RFC conn., but in case you want a LOCAL run, just set RFC_DESTINATION = NONE.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1774611-22-01-2020-13-10-24.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1774612-22-01-2020-13-14-24.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Alfonso.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 12:18:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-c-dir-read-next/m-p/751447#M36184</guid>
      <dc:creator>former_member182570</dc:creator>
      <dc:date>2020-01-22T12:18:20Z</dc:date>
    </item>
  </channel>
</rss>

