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: 

Application server file is full

Former Member
0 Kudos

Hi,

I am downloading a file onto applocation server.

the file contain huge amount of data.

I scheduled a background job, It got cancelled with error DATASET_WRITE_ERROR

Runtime errors DATASET_WRITE_ERROR

Exception CX_SY_FILE_IO

Occurred on 10/16/2006 at 20:05:23

Error when writing to the file "
sapr3dq\sapmnt\trans\new_testaudit010194916.t

What happened?

The current program, "ZLGF_AUDIT_TEST", had to be terminated because a capacity

limit

has been reached.

What can you do?

Make a note of the actions and input which caused the error.

To resolve the problem, contact your SAP system administrator.

You can use transaction ST22 (ABAP Dump Analysis) to view and administer

termination messages, especially those beyond their normal deletion

date.

Error analysis

An exception occurred. This exception is dealt with in more detail below

. The exception, which is assigned to the class 'CX_SY_FILE_IO', was neither

caught nor passed along using a RAISING clause, in the procedure "DOWLOAD_NEW"

.

Since the caller of the procedure could not have expected this exception

to occur, the running program was terminated.

The reason for the exception is:

An error occurred when writing to the file

"
sapr3dq\sapmnt\trans\new_testaudit010194916.txt".

Error text: "No such file or directory"

Error code: 2

How to correct the error

The exception must either be prevented, caught within the procedure

"DOWLOAD_NEW"

"(FORM)", or declared in the procedure's RAISING clause.

To prevent the exception, note the following:

You may able to find an interim solution to the problem

in the SAP note system. If you have access to the note system yourself,

use the following search criteria:

This is how I am using

DATA:BEGIN OF out_tab OCCURS 0,

text(250),

END OF out_tab.

IF p_pre = 'X'.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

filename = l_flname

filetype = 'DAT'

append = 'X'

  • confirm_overwrite = 'X'

TABLES

data_tab = out_tab

EXCEPTIONS

file_write_error = 1

no_batch = 2

gui_refuse_filetransfer = 3

invalid_type = 4

no_authority = 5

unknown_error = 6

header_not_allowed = 7

separator_not_allowed = 8

filesize_not_allowed = 9

header_too_long = 10

dp_error_create = 11

dp_error_send = 12

dp_error_write = 13

unknown_dp_error = 14

access_denied = 15

dp_out_of_memory = 16

disk_full = 17

dp_timeout = 18

file_not_found = 19

dataprovider_exception = 20

control_flush_error = 21

OTHERS = 22.

IF sy-subrc EQ 0.

WRITE:/ 'File',

l_flname,

'created successfuly'.

ELSE.

WRITE:/ 'Error in creating File',

l_flname.

endif.

ELSE.

concatenate l_name 'new_testaudit010' sy-uzeit '.txt' into l_file.

move l_file to p_sfile.

OPEN DATASET p_sfile FOR APPENDING IN TEXT MODE ENCODING NON-UNICODE.

IF sy-subrc EQ 0.

LOOP AT out_tab.

TRANSFER out_tab-text TO p_sfile.

ENDLOOP.

CLOSE DATASET p_sfile.

clear out_tab.

refresh out_tab.

WRITE:/ 'File',

p_sfile,

'created successfuly'.

ELSE.

WRITE:/ 'Error in creating File',

p_sfile.

ENDIF.

ENDIF.

ENDFORM. " dowload_new

I am assuming the file on the application server has reached its capacity of storing data.

If I am right please let me know how to solve this problem.

Thanks

4 REPLIES 4

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

I hope the problem may be because append = 'X' in FM.Since the file does not exists[from error analysis].Just try commneting it.Kindly reward points by clicking the star on the left of reply,if it helps.

The reason for the exception is:

An error occurred when writing to the file

"
sapr3dq\sapmnt\trans\new_testaudit010194916.txt".

Error text: "No such file or directory"

Error code: 2

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

filename = l_flname

filetype = 'DAT'

<b>*append = 'X'</b>

  • confirm_overwrite = 'X'

TABLES

data_tab = out_tab

EXCEPTIONS

file_write_error = 1

no_batch = 2

gui_refuse_filetransfer = 3

invalid_type = 4

no_authority = 5

unknown_error = 6

header_not_allowed = 7

separator_not_allowed = 8

filesize_not_allowed = 9

header_too_long = 10

dp_error_create = 11

dp_error_send = 12

dp_error_write = 13

unknown_dp_error = 14

access_denied = 15

dp_out_of_memory = 16

disk_full = 17

dp_timeout = 18

file_not_found = 19

dataprovider_exception = 20

control_flush_error = 21

OTHERS = 22.

0 Kudos

Hi Jayanthi,

I got the error when I am downloading to a Application server not on to PC.

If the storage capacity of a file in a server is exhasuted with data ie can't accomodate more data, then what should be the best way to transfer very large amount of data, without error.

Please let me know.

Thanks

0 Kudos

I don't think the APP server (UNIX) is like a PC in that files can't fill up all available space on the drive. I think you can get your basis people to allocate more space to the directory that you're writing.

Rob

Message was edited by: Rob Burbank

Former Member
0 Kudos

Hello, I have the same Dump, can you tell me how you resolve the problem.

Greetings from Chile,