Kavyen,
How about using a Document Attribute? If there are documents that you want to display together in a query, you can create an attribute for those document types and make sure that the attributes are set to the same value.
For example, all documents coming from your ERP system could have an attribute called SourceSystem set to ERP. You could then query the transaction analysis for all documents where SourceSystem = ERP by using the Custom Criteria.
Just an idea.
#Integration-Server-and-ESB#webMethods#B2B-Integration