I just searched SCN (and you should too to further refine what you are looking for) - see Infoset Query: User Defined Fields or SAP Adhoc Query SQ01 SQ02 SQ03
I searched and found over 4,620 hits on SCN - there are several explanations on how to do it. Good luck