4/6/2018

Esn Dec Meid Converter To Dec

Jan 31, 2013 You can use MEID Convertor to convert between MEID and ESN, and to view both decimal and hexadecimal formats. This can help you when trying to. Dec To Imei Converter Excel ESN Converter to Decimal. See more: meid esn excel, convert meid esn excel, convert meid hex esn excel, hex dec conversion esn excel, meid hex esn excel. MobileID info is a simple app designed to do one thing well. It allows you to quickly and efficiently convert ESN/IMEI/MEIDs between decimal and hex notation. Convert MEID (HEX) to MEID (DEC) This question is answered.

Esn Dec Meid Converter To Dec

Copy Code DATA: lv_input TYPE /sapdmc/ls_value, lv_dec_1 TYPE string, lv_dec_2 TYPE string, ev_export TYPE to_dec, lv_hex ( 4 ) TYPE x. Lv_input = iv_hex_value ( 8 ). *-- input first part of HEX value CALL FUNCTION 'Z_HEX_TO_DEC_CONVERT' EXPORTING pin = lv_input IMPORTING ra = ev_export. *-- store in tmp variable lv_dec_1 = ev_export. CONDENSE lv_dec_1. Lv_input = iv_hex_value+8 ( 8 ). CLEAR ev_export.

Esn Dec Meid Converter To Dec

*-- input the rest of the HEX value CALL FUNCTION 'Z_HEX_TO_DEC_CONVERT' EXPORTING pin = lv_input IMPORTING ra = ev_export. Lv_dec_2 = ev_export. CONDENSE lv_dec_2. CONCATENATE lv_dec_1 lv_dec_2 INTO lv_input SEPARATED BY '. REPLACE '-' in lv_input WITH '.

CONDENSE lv_input NO -GAPS. Ev_decimal_value = lv_input.

Code of Z_HEX_TO_DEC_CONVERT. Copy Code data: i_ra ( 15 ) type x, i_ra2 ( 4 ) type x, i_pin like pin, n_pin ( 30 ) type n, i_len type i, i_ra3 type xstring. If pin co ' '. Move pin to i_pin. Move i_pin to n_pin. I_pin = n_pin.

I_ra = i_pin. Image Optimizer 3 0 Keygenguru. Move pin to i_pin. I_len = strlen ( i_pin ). If i_len = 8. I_ra2 = i_pin.

I_ra = i_pin. I_ra3 = i_pin. While i_len lt 30. Concatenate '0' i_pin into i_pin. I_len = strlen ( i_pin ). I_ra = i_pin.

* ra = i_num. Endif.:Thanks Tags: • abap • hexidecimal • conversion_routines • decimal. I had a look at wikipedia article on MEID format and it gave required information. You want to convert 7700 to 10057472.

99000124base16 = base10 997700base16 = 10057472base10 Concatenating base10 numbers gives 10057472. Theory: Split the hex number into 2 parts, length 8 and length 6. Convert those parts to decimal, and then concatenate the parts. Code: The code is not straightforward.

Reason being the integer variable is of 2 bytes, and it can't store big enough numbers like. I had written a document on how to handle Below code snippet is using same class given in my document, and it is able to give correct answer. After looking at how it works, you can clean and optimize it. Note: Padding zeros on left side of parts may be required. • START- OF-SELECTION. • DATA meid_hex TYPE string VALUE '7700'. • DATA meid_dec TYPE string.

• DATA temp TYPE string. • DATA lr_dec TYPE REF TO lcl_bignum.

• DATA lr_16 TYPE REF TO lcl_bignum. 'fix value for base 16 • DATA lr_power TYPE REF TO lcl_bignum. • DATA lr_multiplier TYPE REF TO lcl_bignum. • DATA lr_digit TYPE REF TO lcl_bignum. • DATA lr_tempdec TYPE REF TO lcl_bignum. • DATA offset TYPE i. • offset = 13.