‎2007 Feb 19 10:57 PM
Hi,
My code is like this:
<b>DATA : unix_file TYPE rlgrap-filename.</b>
<b> OPEN DATASET unix_file FOR OUTPUT IN TEXT MODE encoding default.</b>
I get an error like this :
<b>"TYPE ...", "FILTER ...", "MESSAGE ..." or "AT POSITION ..." expected
after "MODE". </b>
Can anyone please solve this?
Message was edited by:
ramana peddu
‎2007 Feb 19 11:27 PM
Hi,
Please remove encoding default.
It is not working in 4.6C.
I think it is for unicode purposes.
Check this link for more information.
/people/ulrich.brink/blog/2005/08/18/unicode-file-handling-in-abap
Regards,
Ferry Lianto
‎2007 Feb 19 11:06 PM
‎2007 Feb 19 11:08 PM
‎2007 Feb 19 11:14 PM
‎2007 Feb 19 11:18 PM
Hi,
Have you have assigned file name and path to unix_file workarea?
If you did then please try this ...
DATA : unix_file TYPE rlgrap-filename.
OPEN DATASET unix_file FOR OUTPUT IN TEXT MODE.
Regards,
Ferry Lianto
‎2007 Feb 19 11:22 PM
Hi Ferry,
I have done the same code as u mentioned but I placed the <b>encoding default</b>
Is it a mistake? Please explain what is the use of <b>encoding default</b>
‎2007 Feb 19 11:19 PM
Hi,
I believe the encoding default addition is not available in 4.6C..Remove that..
DATA : unix_file TYPE rlgrap-filename.
OPEN DATASET unix_file FOR OUTPUT IN TEXT MODE <b><u>encoding default</u></b>.
Thanks,
Naren
‎2007 Feb 19 11:27 PM
Hi,
Please remove encoding default.
It is not working in 4.6C.
I think it is for unicode purposes.
Check this link for more information.
/people/ulrich.brink/blog/2005/08/18/unicode-file-handling-in-abap
Regards,
Ferry Lianto
‎2007 Feb 19 11:27 PM
Hi Ramana,
I too encountered the same problem. Then i removed the "ENCODING DEFAULT" keyword and it worked.
DATA : unix_file TYPE rlgrap-filename.
OPEN DATASET unix_file FOR OUTPUT IN TEXT MODE.
<b>This problem you wont encounter in releases greater than and equal to 620.
The keyword "ENCODING" doesnt work for releases less than or equal to 46C.</b>
Thus the problem occurs because your system release is less than 620.
NOTE: PLease reward points if you feel that my explanation is relevant and
helpful :).
Thanks and regards,
Ravi .