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

Open Dataset does not work

Former Member
0 Likes
2,619

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

1 ACCEPTED SOLUTION
Read only

Sm1tje
Active Contributor
0 Likes
1,714

the first thing that comes to mind is Case Sensitive file/directory names??

4 REPLIES 4
Read only

Sm1tje
Active Contributor
0 Likes
1,715

the first thing that comes to mind is Case Sensitive file/directory names??

Read only

former_member194669
Active Contributor
0 Likes
1,714

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®

Read only

0 Likes
1,714

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".

Read only

0 Likes
1,714

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®