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

How to convert Hexadecimal data into something readable

Former Member
0 Likes
3,080

Hi,

I am using Adobe Forms and converting PDF data into internal table. But the problem is that data in the internal table is in Hexadecimal format.

How can i retrieve readable information from the same and insert into an internal table. ?

Answers will be rewarded.

Regards,

Rohan

Hi,

I am using Adobe Forms and converting PDF data into internal table. But the problem is that data in the internal table is in Hexadecimal format.

How can i retrieve readable information from the same and insert into an internal table. ?

Answers will be rewarded.

Regards,

Rohan

4 REPLIES 4
Read only

Former Member
0 Likes
1,844

hi

You can use "AIN_EPC_HEX_TO_CHAR" Fm.

regards

Lokesh

Read only

Former Member
0 Likes
1,844

Hi Rohan,

Simple and faster way to convert any hexa decimal to character is using Field Symbols.

Please try the below code.

*Data Declaration

Data: hexa(400) type x,

string(200).

field-symbols : <fs> type any.

*Start of Process

assign hexa to <fs> casting type c.

string = <fs>.

write : / 'string'.

Thanks

Lakshman

Read only

0 Likes
1,844

I tried this to Convert hexadecimal to String. IT didn't work.

Data: hexvalue(400) type x value '00310030003200300030003000300030003000300030003000300034003000317735940000200032003000300038003100300031003000320030003400360035',

string(20) type c.

field-symbols : <fs> type any.

*Start of Process

assign hexvalue to <fs> casting type c.

string = <fs>. "= hexa.

write : / string.

Read only

Former Member
0 Likes
1,844

*Data Declaration

Data: hexa(400) type X,

string(200) type c.

field-symbols : <fs> type ms_rfc0800.

*Start of Process

hexa = you have to get the length of the hexadecimal string and then assign it.

assign hexa to <fs> casting.

string = <fs>.

write : / 'string'.

Edited by: t sree on Oct 15, 2008 10:04 PM

Edited by: t sree on Oct 15, 2008 10:07 PM