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: 

DATASET_WRITE_ERROR (Invalid argument 22)

Former Member
0 Kudos

Hi,

I am getting a dump DATASET_WRITE_ERROR which says 'The current program had to be terminated because a capacity limit has been reached.

Error analysis:

An error occurred when writing to the file

"Z***".

Error text: "Invalid argument"

Error code: 22

The section of code where error is occuring:

  • Open dataset for writing

OPEN DATASET o_file FOR OUTPUT IN TEXT MODE.

LOOP AT LISTASCI.

TRANSFER LISTASCI TO o_file.

endloop.

A partial file is written to the file path before the dump occurs.

Any ideas what causes this, i.e. is it corrupt data or a system memory issue.

Regards,

Warren.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

May u need to check this disk space available where u r writing the file.

Vasanth

4 REPLIES 4

Former Member
0 Kudos

Hello,

May u need to check this disk space available where u r writing the file.

Vasanth

Former Member
0 Kudos

Hi Warren,

Please refer the link,

Regards,

Hema.

    • Reward points if it is useful.

Former Member
0 Kudos

It was a temporary memory issue

0 Kudos

Hi Warrenabap,

I'm new in Abap development and i have the same problem as you. You said that was a temporary memory issue. What did you do?

Can you tell me how to fix it.

We have a Basis guy but he's also new in SAP.

I'll apreciate so much if you'll help us!