ASCII Operations In ABAP

DATA: lv_i     TYPE i.

DATA: lv_x     TYPE x.

DATA: lv_c     TYPE c.

FIELD-SYMBOLS: <c> TYPE c.

WRITE:/ ‘ASCII CODE’, 20 ‘HEX’, 40 ‘KARAKTER’.

CLEAR lv_x.

DO 256 TIMES.

  lv_i = lv_x.

  ASSIGN lv_x TO <c> CASTING.

  lv_c = <c>.

  WRITE:/ lv_i, 20 lv_x, 40 lv_c.

  ADD 1 TO lv_x.

ENDDO.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s