List of components per drawing

How do I create a report that shows only the list of components on one drawing?  My thoughts are to assign all parts on the drawing to the same function.  But, I am not quite sure how to create the list of components by function.  I would also like to add the generated report to the drawing instead of the report showing up on a seperate sheet.

SolidworksElectrical