‎2007 Mar 22 5:48 AM
formula to convert a given number into decimal number system and hexadecimal
‎2007 Mar 22 5:51 AM
hi,
* Converting type n to type p
DATA: SNP(6) TYPE N VALUE '012345',
T1NP(10) TYPE P,
T2NP(2) TYPE P.
MOVE SNP TO T1NP.Regards
Reshma
‎2007 Mar 22 5:51 AM
Hi,
U can do type casting instead... this is the easiest and most efficient way of doing this..!!
‎2007 Mar 22 5:54 AM
type casting is for data types i think so.
Conversion from one number system to another.
Can u explain it with an example pls
‎2007 Mar 22 5:51 AM
hi,
* Converting type n to type p
DATA: SNP(6) TYPE N VALUE '012345',
T1NP(10) TYPE P,
T2NP(2) TYPE P.
MOVE SNP TO T1NP.Regards
Reshma
‎2007 Mar 22 5:53 AM
‎2007 Mar 22 5:58 AM
Hi ........
go through the fn module
CRM_ET_KB_CONV_DEC_TO_HEX.
‎2007 Mar 22 6:02 AM
its saying function module doesnt exists.Is it in abap or crm.
I need in abap
‎2007 Mar 22 6:05 AM
Hi,
Try this, <b>EI not ET</b>
<b>CRM_EI_KB_CONV_DEC_TO_HEX
</b>
‎2007 Mar 22 5:59 AM
Hi,
LOOK AT THE FOLLOWING FUNCTION MODULE.
CRM_EI_KB_CONV_DEC_TO_HEX
Regards
Sandhya
‎2007 Mar 22 6:03 AM
hi
DATA:
W_HEX(20) TYPE C VALUE 'Hexadecimal value',
W_DEC(20) TYPE C VALUE 'Decimal equivalent',
W_X1(2) TYPE X,
W_X2(2) TYPE X,
W_X3(3) TYPE X,
W_X4(2) TYPE X,
W_Decimal1 TYPE I VALUE '984601',
W_Decimal2 TYPE I VALUE '21589',
W_Decimal3 TYPE I VALUE '2642345',
W_Decimal4 TYPE I VALUE '15680'.
MOVE W_Decimal1 TO W_X1.
MOVE W_Decimal2 TO W_X2.
MOVE W_Decimal3 TO W_X3.
MOVE W_Decimal4 TO W_X4.
WRITE:
10 W_DEC,
40 W_HEX,/.
ULINE AT 10(40).
WRITE:
/ w_Decimal1 UNDER W_DEC,
W_X1 UNDER W_HEX,
/ w_Decimal2 UNDER W_DEC,
W_X2 UNDER W_HEX,
/ w_Decimal3 UNDER W_DEC,
W_X3 UNDER W_HEX,
/ w_Decimal4 UNDER W_DEC,
W_X4 UNDER W_HEX.
reward if helpful.
regards,
kiran kumar k