05-05-2009 4:13 PM
Hi,
When i am excuting my program after excuting the statment "OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT" iam geeting sy-subrc = 8 .Can any one let me know thw reason for this ?.
Regards,
Sri
05-05-2009 4:16 PM
Hi check.
Did u passed the file name to ld_file.
First check this file existing in Application server or not.
If the specified file does not exist in application server it will return sy-subrc 8.
Thanks,
05-05-2009 4:17 PM
check the application path ld_file is exits or not.
i think the path you have given is wrong try to select the application path using F4 help..
use the FM and add the file name using the FM..
F4_DXFILENAME_TOPRECURSION --
Popup to select one file from the given application server directory (pattern allowed).
(Can be used also for selecting file on presentation server: calls WS_FILENAME_GET)
Parameters: I_LOCATION_FLAG=;
if I_LOCATION_FLAG is blank then popup to choose Appl./Present.;
if I_SERVER='?' then popup to select appl.server.
Regards,
Prabhudas
05-05-2009 4:24 PM
HI,
If Sy-subrc EQ 8 then the error message is Operating system could not open file.
The file on the application server might got corrupted.
05-05-2009 4:25 PM
Could be a problem with case sensitive. Files on Unix server are case sensitive, so make sure that name exactly matches the actual file name.
FILENAME does not equal filename!!
05-05-2009 4:37 PM
ld_file check the case (upper case, lower case ) of the field.. it need to be exact the same as its shown in AL11 Tr.
05-05-2009 4:39 PM
what type of file u r opening?
may be u can try opening in binary mode
11-01-2013 5:26 AM
Hi,
I'm also facing same kind of issue..
i checked all the suggested ways.. but still getting the value of SY-SUBRC is 8..
Operating system is Sun OS.. its working fine in dev and prd ..
issue is only with quality..
Kindly let me know your ideas to fix this..
Thanks,
Prakash
05-05-2014 3:43 PM
Hi ALL,
I was facing the same issue.
Then I converted parameter like this.
PARAMETERS: filename(200) TYPE c DEFAULT '/tmp/test1.xml' LOWER CASE.
So, open dataset was able to find the file.
Thank you.
Bing
09-16-2014 1:52 PM
Ram
There are two possible cause of the issue:-
1. Check for file name as define in AL11(case sensitive).
2. Also check if the define length is correct.
Try to use file of type RLGRAP-FILENAME.
Thanks,
Sandip
09-16-2014 1:55 PM
This thread is from 2009 - I don't think the OP is too concerned with a reply now.
<Thread locked>