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: 

Sy-subrc =8 when excuting OPEN DATASET..

Former Member

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

10 REPLIES 10

tarangini_katta
Active Contributor
0 Kudos

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,

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Sm1tje
Active Contributor
0 Kudos

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!!

former_member156446
Active Contributor
0 Kudos

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.

former_member205763
Active Contributor
0 Kudos

what type of file u r opening?

may be u can try opening in binary mode

Former Member
0 Kudos

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

Former Member

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

Former Member
0 Kudos

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

0 Kudos

This thread is from 2009 - I don't think the OP is too concerned with a reply now.

<Thread locked>