Please use the Std Functionality available in SAP .
Use the Transaction code - ME2M ,
input your required materials
select the "scope list ' as required
also select the "selection parameter" -"WE101" For the open purchase order
Hope this will meet your requirements