Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

DATASET_NOT_OPEN Error

Former Member
0 Likes
8,697

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

8 REPLIES 8
Read only

mayur_priyan
Active Participant
0 Likes
5,505

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.

Read only

0 Likes
5,505

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

Read only

kiran_k8
Active Contributor
0 Likes
5,505

Umashankar,

Recently I got a similar error and while searching SCN got the below thread.

http://scn.sap.com/thread/3443198

K.Kiran.

Read only

Former Member
0 Likes
5,505

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

Read only

0 Likes
5,505

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

Read only

Former Member
0 Likes
5,505

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

Read only

0 Likes
5,505

Hello Uma,

How is the program being executed. Thanks!

Read only

Former Member
0 Likes
5,505

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