Application Development 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: 

Declaration for Hexadecimal value

Former Member
0 Kudos

Hi Experts,

How to declare datatype for hexadecimal. Please give with example for hexadecimal declaration value.

Thanks,

Singh.

7 REPLIES 7

Former Member
0 Kudos
data: d_string_char(1),
      d_string_hex(10).
field-symbols: <fs>.
 
* here d_string_char contains the string value
* for example:
d_string_char = 'A'.
assign d_string_char to <fs> type 'X'.
write <fs> to d_string_hex.
 
write d_string_hex

.

0 Kudos

Thank u very much

Former Member
0 Kudos

hi,

DATA : hex TYPE x .

Regards,

Sen

0 Kudos

Thank u Sen

I need with example..... where could we find ABAP declarations with examples....

0 Kudos

Hey,

Why do you use F1 button on your abap editor and find?

there is so much information availible in SAP help.

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2fcc358411d1829f0000e829fbfe/content.htm

or go to transaction ABAPDOCU so many sample programs.

Regards and Best wishes.

Former Member
0 Kudos

You can refer this link to get more ideas on HEX

[http://wiki.sdn.sap.com/wiki/display/ABAP/ABAP+Types]

Former Member
0 Kudos

Moderator message - Please do not ask or answer basic questions - thread locked