Application Development 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: 

dataset_not_open

Former Member
0 Kudos

hello everyone,

i have a problem when trying to read a file ,that i find with FILE_GET_NAME, into a internal table but i try to open the file it makes a dump wtith the following indications

"

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_FILE_OPEN_MODE', was not

caught and

therefore caused a runtime error.

The reason for the exception is:

When accessing the file "d:\DocumentsandSettings\klakbir\Mesdocuments\xml.txt",

the system recognized that this file is

not open. Therefore, the file cannot be accessed.

"

can anybody help me please.

thank you,

kamal

10 REPLIES 10

Former Member
0 Kudos

File is in open mode......First close the file and then try...

Former Member
0 Kudos

FILE_GET_NAME will get the name of the file, but to load it from your pc (local vs Application server) use GUI_UPLOAD to retrieve it, and GUI_DOWNLOAD to store it.

For application server, look into OPEN DATASET, READ DATASET, TRANSFER DATASET and CLOSE DATASET.

Former Member
0 Kudos

I think

d:\DocumentsandSettings\klakbir\Mesdocuments\xml.txt is path on

presentation server .. and UR trying to open the same on application

server ..

Former Member
0 Kudos

i've tried this , to close the file before it doesnt worki have the same dump

Former Member
0 Kudos

i've tried all these solutions, but still not working

thank u,

0 Kudos

hi, did you found a solution?

Gruß

Toni

Former Member
0 Kudos

Please close file in all aplications.

Probably your file is open in other aplication.

Regards

PCA

0 Kudos

we did a systemcopy and copy the filefrom source to target system and now we get the error on the new target system?

Gruß

Toni

0 Kudos

Have you change to unicode system ?

Please check the code page used in two systems.

Regards

PCA

0 Kudos

Yes, we changed to unicode. It is a windows server. We want to open the file from the SAP application on the windows server.

Gruß

Toni