IME2 number

I am working in logistics company, and newly we got samsung customer, the question is about IME2, how i can get IME2 automatic when i scan the barcode of IME1
right now i am taking it manualy which is hard as we are receiving daily 5000 to 10000 PCS
I heard there is a formula from samsung can give you IME2 when you scan the barcod of IME1
please help as it takes time and employees