2016 Apr 06 10:21 AM
Hello,
OPEN DATASET GV_FILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
I get sy-subrc = 8 when I try to create a new file in the folder.
But when I give existing filename in gv_file, sy-subrc goes 0.
This was working till yesterday.
Contacted the BASIS team. they said there is nothing wrong with the server.
What could be the reason?
Hello,
OPEN DATASET GV_FILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
I get sy-subrc = 8 when I try to create a new file in the folder.
But when I give existing filename in gv_file, sy-subrc goes 0.
This was working till yesterday.
Contacted the BASIS team. they said there is nothing wrong with the server.
What could be the reason?
2016 Apr 06 10:32 AM
Many errors are possible
Regards,
Raymond
2016 Apr 07 8:17 AM
Yes checked with authorization. No issue with that. Issue was due to lack of space.
Thanks
2016 Apr 08 10:48 AM
2016 Apr 08 11:28 AM
Yes you did but you didn't tell me the way to find it
Anyway, I am not getting the option to mark correct answer/ helpful answer for this post.
know how to convert this discussion to question?
2016 Apr 08 12:00 PM
2016 Apr 06 10:52 AM
Hi Sriram,
Pleae check below:
1. if path name is too long
2. Authorization issues
Otherwise, you can get exact error message using below piece of code:
Data: error(100) type c.
OPEN DATASET GV_FILE FOR OUTPUT MESSAGE error
IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc <> 0.
WRITE / error.
STOP.
ENDIF.
2016 Apr 07 8:15 AM
Thanks Pranay,
You suggestion helped me to find the reason.
Unfortunately I'm not able to mark it as correct answer. I am not getting the option to mark.
2016 Apr 06 1:44 PM
Hi.
1. Check for write authorization to dataset using the FM AUTHORITY_CHECK_DATASET before the OPEN DATASET GV_FILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
2. If sy-subrc eq zero and still an issue, please check for the file name length.
Regards,
Suresh K
2016 Apr 08 11:38 AM
Hi,
converted file name like this.
data: GV_FILE(200) TYPE c DEFAULT '/tmp/test1.xml' LOWER CASE.
open dataset was able to find the file.
thanks!!
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |