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: 

Different behaviour in OPEN DATASET <variable> FOR OUTPUT IN TEXT MODE.

Former Member
0 Kudos

Hello ABAP experts,

I have strange issue here.

In my source code, I am using OPEN DATASET <variable> FOR OUTPUT IN TEXT MODE statement.

This works if <variable> points to the directory under /usr/sap/tmp/FILENAME.

However,

This does not work if <variable> points to the other directory like /home/MYHOME//FILENAME. I do have a permission to create file. (I can create file from UNIX command by <sid>adm user!!)

Would anybody tell me why this problem happens?

Thanks and regards,

Yoichiro

2 REPLIES 2

SuhaSaha
Advisor
Advisor
0 Kudos

What is the value of SY-SUBRC after the OPEN DATASET statement ? Two questions from me:

/home/MYHOME//FILENAME

Is the directory defined ? I see two '/' in the filename, is this causing the problem ?

Former Member
0 Kudos

Seems to be file permission issue.