‎2008 Aug 18 11:44 AM
Hi,
I am working for SAP upgrade project (4.6c to ecc6.0)
I had an error saying that DATASET_REOPEN.i.e.,File is already open.Can any one help me out.
I have just declared open dataset ....in text mode encoding default.I dnt do any other changes
‎2008 Aug 18 11:47 AM
Hi,
Look for other parts of the code. From the error
it seems the file is ALREADY opened somewhere before
this code.
Maybe some if condition or not closed before.
regards,
amit m.
‎2008 Aug 18 11:48 AM
‎2008 Aug 18 11:48 AM
If u had opened any file using OPEN DATASET file, before just close that by using CLOSE DATASET file.
or
Try to add and see,
CLOSE DATASET file before the OPEN DATASET file.
‎2008 Aug 18 11:48 AM
>
> Hi,
> I am working for SAP upgrade project (4.6c to ecc6.0)
> I had an error saying that DATASET_REOPEN.i.e.,File is already open.Can any one help me out.
> I have just declared open dataset ....in text mode encoding default.I dnt do any other changes
Check Prior to that you have any OPEN DATSET on the same file. and Not closing the file using the Close Data set then you have chances of getting the message.
open dataset ...in textmode etc...
open dataset..
in the above case you get the error.
correct that.
open dataset ...in textmode etc...
close dataset <ds>.
open dataset..
close datset <ds>.
‎2008 Aug 18 11:49 AM
If you have replaced the obsolete statement
OPEN DATASET P_FILE FOR INPUT.
with
OPEN DATASET P_FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT.
You should not have any problem.Just to recheck with you please dont keep the file already OPEN.
Thanks
Sudharshan