06-23-2008 3:21 PM
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
06-23-2008 3:23 PM
06-23-2008 3:27 PM
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.
06-23-2008 3:27 PM
I think
d:\DocumentsandSettings\klakbir\Mesdocuments\xml.txt is path on
presentation server .. and UR trying to open the same on application
server ..
06-23-2008 3:28 PM
i've tried this , to close the file before it doesnt worki have the same dump
06-23-2008 3:31 PM
09-18-2014 4:37 PM
09-18-2014 5:00 PM
Please close file in all aplications.
Probably your file is open in other aplication.
Regards
PCA
09-18-2014 5:38 PM
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
09-23-2014 11:56 AM
Have you change to unicode system ?
Please check the code page used in two systems.
Regards
PCA
09-23-2014 12:12 PM
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