ABAP Keyword Documentation → ABAP − Reference → Processing Internal Data → Assignments → Assignment and Conversion Rules → Conversion Rules for Elementary Data Objects
Byte-Like Source Fields
Other versions: 7.31 | 7.40 | 7.54
Example
Conversion of the byte field from hexadecimal content FFFF to different
target types. The type-friendly formatted output is 65535, FFFF, FFFF,
 01800605. The date of type d is 65535 days since 01.01.0001.
DATA hex TYPE x LENGTH 2 VALUE `FFFF`. 
cl_demo_output=>display( 
  |i:       { CONV i( hex ) }\n| && 
  |string:  { CONV string( hex ) }\n| && 
  |xstring: { CONV xstring( hex ) }\n| && 
  |d:       { CONV d( hex ) }\n| ).