Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

doubt in hexadecimal stuff

Former Member
0 Likes
326

Hi all,

can you please explain me how to use hexadecimal value in a program. I dont know how to proceed with hexadecimal stuff. My requirement is i have to check if the hexadecimal value of a variable is '000A'. How to implement this in the program.

POINTS PROMISED

regards,

Buvana

Hi all,

can you please explain me how to use hexadecimal value in a program. I dont know how to proceed with hexadecimal stuff. My requirement is i have to check if the hexadecimal value of a variable is '000A'. How to implement this in the program.

POINTS PROMISED

regards,

Buvana

1 REPLY 1
Read only

Former Member
0 Likes
309

You can start with:


REPORT ztest NO STANDARD PAGE HEADING MESSAGE-ID 00.

DATA: f1(2) TYPE x VALUE '000A',
      f2(2) TYPE x VALUE '000B'.

IF f1 = '000A'.
  WRITE: /001 'F1 is a Hit!'.
ELSE.
  WRITE: /001 'F1 is a Miss!'.
ENDIF.

IF f2 = '000A'.
  WRITE: /001 'F2 is a Hit!'.
ELSE.
  WRITE: /001 'F2 is a Miss!'.
ENDIF.

Rob