Hi Diwakar,
I guess that error is due to the standard code that runs when a Material is re-saved - nothing to do with GTS. Please try the Commodity Code update manually in the ERP system. If I'm right, then I suggest you post on the FI area instead.
Regards,
Dave