‎2007 Oct 16 7:08 AM
‎2007 Oct 16 7:10 AM
‎2007 Oct 16 8:21 AM
It not working my input is 1111 but its not giving 'F' as output
‎2007 Oct 16 8:26 AM
hi
good
CONVERT_FROM_CHAR_SORT_RFW - it will Convert from character to any datatype.
thanks
mrutyun^
‎2007 Oct 16 8:38 AM
HI,
Thanks but the above module is not present my system.
I have number which needs to be converted into binary first and then into Hex.
I have written it code for conversion of decimal number into Binary.But i am not able to convert it into Hex.
My rough code is ....
types : begin of t_temp,
r1 type i,
end of t_temp.
data : ty_temp type standard table of t_temp ,
wa_temp type t_temp.
DATA : num TYPE i,
temp1 TYPE string,
temp2 TYPE string,
temp3 TYPE string,
temp4 TYPE x.
******************************
temp1 = 0.
temp2 = ''.
num = 64.
****************************************
while num ne 1.
temp1 = num MOD 2.
num = num / 2.
If temp1 = 1.
num = num - 1.
endif.
concatenate temp1 temp2 into temp2 .
endwhile.
temp1 = 1.
concatenate temp1 temp2 into temp2 .
condense temp2 no-gaps .
WRITE : temp2 .
‎2007 Oct 17 4:44 AM
Plz if any of u can help me than i will be i highly oblidged...