Download PDF only from SAP

Hi,
I need your experience in extracting reports from excel

I have a table in sap which has list of documents
Each has type like pdf ,msgs etc
How to loop and create a selecter that goes only to PDF records