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

Former Member
0 Likes
1,463

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
Read only

Former Member
0 Likes
1,246

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

Read only

Former Member
0 Likes
1,246

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.

Read only

Former Member
0 Likes
1,246

I think

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

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

server ..

Read only

Former Member
0 Likes
1,246

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

Read only

Former Member
0 Likes
1,246

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

thank u,

Read only

0 Likes
1,246

hi, did you found a solution?

Gruß

Toni

Read only

Former Member
0 Likes
1,246

Please close file in all aplications.

Probably your file is open in other aplication.

Regards

PCA

Read only

0 Likes
1,246

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

Read only

0 Likes
1,246

Have you change to unicode system ?

Please check the code page used in two systems.

Regards

PCA

Read only

0 Likes
1,246

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