Skip to Content
0
Former Member
Dec 26, 2007 at 04:14 PM

OpenDataSet dump occurs...

24 Views

Hello Members,

I have a problem.

I tried this code on a 4.6C :

OPEN DATASET '/TEST/users.xml'

FOR INPUT IN TEXT MODE "ENCODING DEFAULT

MESSAGE lv_file_error.

  • mode encoding default.

loop at itab.

transfer itab to '/TEST/users.xml' LENGTH 100 .

"MESSSAGE lv_file_error2.

endloop.

close dataset '/ESS/xml_synchro_user/users.xml'.

An dump occurs at the instruction transfer. ST22 shows this message :

An error occurred when writing to the file "/TEST/users.xml".

Error text: "Bad file number"

Error code: 9

What could be the problem ?

Regards,

Aurélien HENRY