Skip to Content
0
Former Member
Jul 30, 2009 at 07:51 AM

ASCII Code in ABAP

2100 Views

Hi Experts,

We need to enter a unique ASCII character called 'US' or Unit Separator in a text file being generated through a program.

The ASCII code for US is 31. However when we try and do it programmatically the character '#' is getting populated.

The code is as follows:

DATA : lv_sep type c.

field-symbols : <xfs> type x.

assign lv_sep to <xfs> casting.

<xfs> = 0031.

write lv_sep.

Kindly help us out.

Thanks and Regards,

Ravi Bhatnagar