Hi Vaani -
IDOC # in ECC is not same as what is generated by PI(inbound) so you can not find it in IDX5.
However there is an alternative solution suggested by Greg and you can find it @
http://scn.sap.com/thread/2130669
In the same thread another simple solution suggested by Kiran