We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

Re: [sap-dev] oepn dataset error for multiple files

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Posted by gkgoh
on Jul 18 at 10:31 PM
Mark this reply as helpfulMark as helpful
Hi gurusoft,

Pls remember to issue the command "CLOSE DATASET ..." after finish reading
each file.
Sample code as attached below :-

DO.
READ DATASET DSN INTO RECORD.
IF SY-SUBRC NE 0.
EXIT.
ELSE.
WRITE: / RECORD.
ENDIF.
ENDDO.
CLOSE DATASET DSN.

Thanks.


On Mon, Jul 19, 2010 at 6:36 AM, gurusoft via sap-dev <
sap-dev@groups.ittoolbox.com> wrote:

> Posted by gurusoft(sap bw/bi consultant)
> on Jul 18 at 7:18 PM Hi guys
> i am trying to open more than 100 files using open dataset input but i am
> getting below error
> program is abending reading after 50files..
> Program failing in open data set error can u help me please?
> 143
> 144 * Each file is getting into an internal table
> >>> OPEN DATASET w_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
> 146 IF sy-subrc <> 0.
> 147 CONTINUE.
> 148 ELSE.
> 149 DO.
> 150 READ DATASET w_file INTO s700_delta.
> What command I should give here
> Error analysis
> An exception occurred that is explained in detail below.
> The exception, which is assigned to class 'CX_SY_TOO_MANY_FILES', was not
> caught and
> therefore caused a runtime error.
> The reason for the exception is:
> The maximum number of open files (100) has been exceeded.
> please let me know what should makes changes to avoid this abend?

__.____._
Copyright © 2010 Toolbox.com and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language