Hi R V,
If you used absolute URL in the openDocument URL then it will always point to DEV report though you migrated both reports in QA.
To avoid that you have use relative URL in openDocument syntax so that URL will point to the report present in that environment only.
E.g.:- ../../opendoc/openDocument.jsp?sIDType=CUID&iDocID=Gt4ZiVCPYgEA1QgAACBIV18BAFQWjUpR&sRefresh=Y
This is relative URL for openDocument.
Regards,
Aashutosh