Hi Jain,
This kind of error occurs due to CMOD code which your were written for variables. The code may not be compatible with your present patch. i think you may need oss note. please check the blow links.
http://www.stechno.net/sap-notes.html?view=sapnote&id=1133267
https://scn.sap.com/thread/432901
Thanks