You can use Tcode
RSRTQ – Query Definition in Detail
You can also run program
RSRQ_QUERYDEFINITION
You can check below link for more detailed information if you need...
http://scn.sap.com/docs/DOC-26063
RSRTQ – Query Definition in Detail
You can also run program
RSRQ_QUERYDEFINITION
You can check below link for more detailed information if you need...
http://scn.sap.com/docs/DOC-26063