Melamine (and protein) are some chemicals rich in nitrogen, so when protein content in milk products is checked by comparing nitrogen content (such as with the Kjeldahl protein test which is still used in China, or the Dumas protein test), the addition of melamine can hide the fraudulent dilution of milk. The same chemical has been in several other instances to give false results in protein tests, such as in pet food recalls in Europe and the U.S. in 2007, and to mask the low quality of cattle feed used by some farmers (including in soy meal, corn gluten meal or cottonseed meal).
The Health Ministry of Indonesia imposed an import ban on dairy products from China as a preventive measure, while offices of the Indonesian Food and Drugs Supervisory Agency (IFDSA) gave orders to withdraw Chinese dairy products from stores. The government of Indonesia had also withdrawn the local distribution permit given to the only dairy product from China. The nation's health ministry tested 19 candies and drinks products, and said twelve were found to contain melamine levels between 8.51 and 945.86 milligrams per kilogram.
wikipedia