Skip to Content
0
Former Member
Apr 22, 2009 at 02:04 PM

Writing the Special charactor on the file (Application Server).

123 Views

I am writing the file on application server. i am having one field(wa_tab-addr) of 30 charactor that i need to write to file.

In field wa_tab-addr i got the string "LOVELL HLDGS LTD-52Á SIMCOE ST N".

wa_tab-addr = "LOVELL HLDGS LTD-52Á SIMCOE ST N"

If now i find length of field wa_tab-addr, it would give me 30 chanractor but when i am writing the file, it becomes 31 charactor because of special charactor ' Á ' in the string.

I am opening the file with statement

OPEN DATASET pv_filepath FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

Is there any way to handle this sothat it write only 30 charactor in the file.

Please let me know.