I don't think there is a function that will do it in one step for you.
There is the $zhex function which will convert a decimal to a hex value.
If you combine it with $ascii you can do one character at a time...
Use a for loop and you can get the result you want...
>set hex="" for i=1:1:$l("abc") set hex=hex_$zhex($ascii($e("abc",i)))
There is also a utility which may of be of use to you when working on the command line...
0000: 61 62 63