Grouping Document from Purchase Header & Purch. Inv Head

Hi friends,

My scenario is to group the documents (i.e document PO123 will be in purchase header also if we post the PO123 it will hit Purch.Inv header table) if i give the filter for the order date then the system give the PO created on that date ideally the system should group the documents both in posted and unposted. I have tried but it is grouping posted seperately and unposted seperately...
Everything is Possible