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

Declaration for Hexadecimal value

Former Member
0 Likes
2,762

Hi Experts,

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

Thanks,

Singh.

Thank u very much

7 REPLIES 7
Read only

Former Member
0 Likes
1,488
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

.

Read only

0 Likes
1,488

Thank u very much

Read only

Former Member
0 Likes
1,488

hi,

DATA : hex TYPE x .

Regards,

Sen

Read only

0 Likes
1,488

Thank u Sen

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

Read only

0 Likes
1,488

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.

Read only

Former Member
0 Likes
1,488

You can refer this link to get more ideas on HEX

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

Read only

Former Member
0 Likes
1,488

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