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: 

Getting a short dump CX_SY_FILE_IO

Former Member
0 Kudos

Hi,

i am getting the following Dump

-


Short text

Error when reading from file "/local/share/AEROSAP/FTP/PCS/IM01/001/s/IM01_001_

-


-


What happened?

The executed program "ZPCIMR01" had to be terminated because a reading error

occurred when accessing the file.

-


-


What can you do?

Note down which actions and inputs caused the error.

To process the problem further, contact you SAP system

administrator.

Using Transaction ST22 for ABAP Dump Analysis, you can look

at and manage termination messages, and you can also

keep them for a long time.

-


-


Error analysis

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_FILE_IO', was not caught in

procedure "READ-FFILE" "(FORM)", nor was it propagated by a RAISING clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

Error when reading the file "/local/share/AEROSAP/FTP/PCS/IM01/001/s/IM01_001_s

ATBTPWD.csv".

Error text: "Stale NFS file handle"

Error code: 70

-


-


How to correct the error

If the error occures in a non-modified SAP program, you may be able to

find an interim solution in an SAP Note.

If you have access to SAP Notes, carry out a search with the following

keywords:

"DATASET_READ_ERROR" "CX_SY_FILE_IO"

"ZPCIMR01" or "ZPCIMR01"

"READ-FFILE"

If you cannot solve the problem yourself and want to send an error

notification to SAP, include the following information:

1. The description of the current problem (short dump)

To save the description, choose "System->List->Save->Local File

(Unconverted)".

2. Corresponding system log

Display the system log by calling transaction SM21.

Restrict the time interval to 10 minutes before and five minutes

after the short dump. Then choose "System->List->Save->Local File

(Unconverted)".

3. If the problem occurs in a problem of your own or a modified SAP

program: The source code of the program

In the editor, choose "Utilities->More

Utilities->Upload/Download->Download".

4. Details about the conditions under which the error occurred or which

actions and input led to the error.

The exception must either be prevented, caught within proedure

"READ-FFILE" "(FORM)", or its possible occurrence must be declared in the

RAISING clause of the procedure.

To prevent the exception, note the following:

-


-


File attributes /local/share/AEROSAP/FTP/PCS/IM01/001/s/IM01_001_s_ATB_TPWD.csv

Authorizations rw-rw----

Last change 12.03.2008 04:04:20

Last access 12.03.2008 04:11:04

Last Status Change 12.03.2008 04:11:04

Size 15728462 Bytes

Current Position 10223616

Error in file

-


-


System environment

SAP-Release 700

Application server... "pcsas1e0"

Network address...... "152.9.138.73"

Operating system..... "HP-UX"

Release.............. "B.11.23"

Hardware type........ "ia64"

Character length.... 8 Bits

Pointer length....... 64 Bits

Work process number.. 7

Shortdump setting.... "full"

Database server... "tosap314"

Database type..... "ORACLE"

Database name..... "PCS"

Database user ID.. "SAPR3"

Char.set.... "en_US.iso88591"

SAP kernel....... 700

created (date)... "Jan 23 2008 07:03:03"

create on........ "HP-UX B.11.23 U ia64"

Database version. "OCI_102 (10.2.0.2.0) "

Patch level. 144

Patch text.. " "

Database............. "ORACLE 9.2.0.., ORACLE 10.1.0.., ORACLE 10.2.0.."

SAP database version. 700

Operating system..... "HP-UX B.11"

Memory consumption

Roll.... 1498016

EM...... 0

Heap.... 0

Page.... 24576

MM Used. 1081072

MM Free. 395664

-


-


User and Transaction

Client.............. 001

User................ "SAPCTLM"

Language key........ "E"

Transaction......... " "

Transactions ID..... "47D735712E13198CE100000098098A49"

Program............. "ZPCIMR01"

Screen.............. "SAPMSSY0 1000"

Screen line......... 6

-


-


Information on where terminated

Termination occurred in the ABAP program "ZPCIMR01" - in "READ-FFILE".

The main program was "ZPCIMR01 ".

In the source code you have the termination point in line 183

of the (Include) program "ZPCIMR01".

The program "ZPCIMR01" was started as a background job.

Job Name....... "JBIM03D010"

Job Initiator.. "SAPCTLM"

Job Number..... 04000702

The termination is caused because exception "CX_SY_FILE_IO" occurred in

procedure "READ-FFILE" "(FORM)", but it was neither handled locally nor

declared

in the RAISING clause of its signature.

The procedure is in program "ZPCIMR01 "; its source code begins in line

180 of the (Include program "ZPCIMR01 ".

-


-


Source Code Extract

-


Line

SourceCde

-


153

  • [IMS_OCSD4_SP0700254_v2] end

154

155

  • *Insertion enregistrement

156

INSERT zdsdatpwd.

157

158

IF sy-subrc NE 0.

159

UPDATE zdsdatpwd.

160

IF sy-subrc NE 0.

161

w_return_code = 1.

162

ENDIF.

163

ENDIF.

164

165

  • Fill Master data

166

PERFORM retrieve_value USING zdsdatpwd. "DT[123]

167

168

ENDWHILE.

169

170

171

COMMIT WORK.

172

173

CLOSE DATASET w_filename.

174

175

176

*eject

177

178

  • lecture du fichier

179

*

180

FORM read-ffile .

181

.

182

>>>>>

READ DATASET w_filename INTO ffile_enreg.

184

185

CASE sy-subrc.

186

WHEN 0.

187

WHEN 4.

188

MOVE '1' TO eof_ffile.

189

WHEN OTHERS.

190

MESSAGE a045(zm) WITH ffile_ds_name.

191

192

ENDCASE.

193

| 194|ENDFORM. "read-ffile

thks in advance

Edited by: samir meidani on Mar 12, 2008 10:26 AM

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

The problem is coming from the NFS caching attributes.

In order to solve the problem the NFS caching should be removed by using "noac" mount option. Such change worses NFS performance, but it ensures that each NFS client is using up to date attributes and can access up to date data.

Additional information can be found in the [NFS Services Administrator's Guide|http://docs.hp.com/en/5992-0715/5992-0715.pdf]

Regards

8 REPLIES 8

Former Member
0 Kudos

Hi,

This could be authorization error, please check with your Administrator....

Former Member
0 Kudos

Hi

It is because of the file format you have used to csv file

check the file for ASCII characters

Regards

Shiva

Former Member
0 Kudos

Hi,

this the rights access to my file

File: /local/share/AEROSAP/FTP/PCS/IM01/001/s/IM01_001_s_ATB_TPWD.csv

-rw-rw 1 pcsadm sapsys 15728462 Mar 12 04:04

and this z report is launch by a job .

The job has been cancelled when i take a look in SM37 but when i launch the job immediatly ,there aren't any errors.

Thks

0 Kudos

Hi

Does the ID which is used to schedule job have the proper acesses/authorization.

I have checked your code and there is only one reason which could lead to this exception is the access or authorizations problems.

Check with your basis team, they can provide more info on the same.

Regards,

Mayank

Former Member
0 Kudos

Anybody can help me ?

0 Kudos

HI,

Have you checked your coding, is everything seems ok. There may be chance that file is not open for READ DATASET so it is giving the dump.

Regards,

Atish

Former Member
0 Kudos

Hi,

everything is ok in my coding

OPEN DATASET w_filename FOR INPUT

IN TEXT MODE

MESSAGE msg.

  • Delete existing data

SELECT *

FROM zdsdatpwd.

DELETE zdsdatpwd.

ENDSELECT.

WHILE eof_ffile = '0'.

READ DATASET w_filename INTO ffile_enreg.

CASE sy-subrc.

WHEN 0.

WHEN 4.

MOVE '1' TO eof_ffile.

WHEN OTHERS.

MESSAGE a045(zm) WITH ffile_ds_name.

ENDCASE.

The file is opened but this error occur when the report is launch in background at 4:00AM.

raymond_giuseppi
Active Contributor
0 Kudos

The problem is coming from the NFS caching attributes.

In order to solve the problem the NFS caching should be removed by using "noac" mount option. Such change worses NFS performance, but it ensures that each NFS client is using up to date attributes and can access up to date data.

Additional information can be found in the [NFS Services Administrator's Guide|http://docs.hp.com/en/5992-0715/5992-0715.pdf]

Regards