‎2009 Aug 10 3:18 PM
Hi Experts,
I have some problems using the ABAP command OPEN DATASET to open a file, which is placed on the Application server. First I have created a directory on the Application server, named test . After that I have placed a file named test1 to that directory. This was done on a first test-system and everything worked fine.
After that I copied the source code, created a new report on another system, where already a directory (test) for my use existed. So, I placed my file (test1) into that directory using transaction CG3Z. I can see that file and open it using transaction AL11. The problem now is, if I am executing my report, I get a message: No such file or directory.
I don`t understand that as I not have changed the source code and the file is available in the directory as I can see.
What can happen?
Best regards,
Tobias
‎2009 Aug 10 3:35 PM
the first thing that comes to mind is Case Sensitive file/directory names??
‎2009 Aug 10 3:35 PM
the first thing that comes to mind is Case Sensitive file/directory names??
‎2009 Aug 10 3:36 PM
Please closely check the directory path its a case sensitive.
and also change your OPEN DATASET statement this way
OPEN DATASET dsn FOR INPUT MESSAGE msg " Capture the messages in MSG
IN TEXT MODE ENCODING DEFAULT.
a®
‎2009 Aug 10 4:12 PM
First, I think the directory must be case sensitive. As I mentioned I have uploaded my file to the existing directory using transaction CG3Z. I made a test: the file can only be uploaded if you consider case sensitivity. What I don`t understand is, that I have used for OPEN DATASET the same path, considering case sensitivity.
The second point:
OPEN DATASET dsn FOR INPUT MESSAGE msg " Capture the messages in MSG
IN TEXT MODE ENCODING DEFAULT.
I have already considered too: from there I got the message "no such file or directory".
‎2009 Aug 10 4:33 PM
More options
1. Create the file in anywhere say usr/tmp directory and try to use OPEN DATASET
2. Check the authorisation for test directory
last but least
contact your basis for assistance.
a®