Hi Dixit,
As stated by mates, developer may be maintained logic for variables at CMOD(BW side). While doing test cases they may used break points to debug the code.They moved(transport) code with breakpoints to production. check in CMOD and if you find any break points, just remove them and try to re run your query.
Thanks