‎2014 Apr 21 9:53 AM
Hi,
We have made a program to convert the data in to .asc format and the program is running fine. But some times it is giving run time error as DATASET_NOT_OPEN and exception as 'CX_SY_FILE_OPEN_MODE'.
We could not able to find out why this error is occurring and if there is a problem in the program then we have to get this error every time. But this is happening some time. We need to know what could cause this error. Kindly through some light on this.
Regards / US
‎2014 Apr 21 9:58 AM
Hi,
This occurs when you try to TRANSFER data into a file without opening it,.
If you are using the OPEN DATASET statement, do include have SY-SUBRC check after it.
Only if SY-SUBRC is 0, use the TRANSFER statement.
‎2014 Apr 21 11:16 AM
Hi Mayur,
Then it will suppress the error message. As of now since we are getting error message are able to see program has not been executed and if we remove the error message then we will not be able to understand program has been executed correctly.
Regards / US
‎2014 Apr 21 10:36 AM
Umashankar,
Recently I got a similar error and while searching SCN got the below thread.
http://scn.sap.com/thread/3443198
K.Kiran.
‎2014 Apr 21 11:18 AM
Hi Kiran,
I have seen the link. Our issue is related to 'Data set not open' but the link is related to data set cant close error.
Regrads / US
‎2014 Apr 21 12:50 PM
Hello Kiran,
How the program is being executed . Is it in foreground and background.
This might be authorization issue. The user may not be having access to Read/Write file from application server.
Is this issue happening for single user or for multiple users.
Kindly check the authorizations of users who are running the program and going for dump.
Thanks
‎2014 Apr 21 12:55 PM
Hi,
If there is any authorization issue then it should execute not even single time. For same user id the program is getting executed perfectly and some time it give error. Could not able to fine the reason.
Regards / US
‎2014 Apr 21 1:00 PM
‎2014 Apr 21 1:02 PM
Hi,
Thanks for your quick response...
Actually the program has to be executed in back ground. We are getting error in both fore ground and also in back ground.
Regards / US