2008 Jul 18 11:44 AM
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
2008 Jul 18 12:06 PM
2008 Sep 12 11:34 PM
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
2008 Oct 15 8:55 PM
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.
2008 Oct 15 9:04 PM
*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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |