Pavan,
In order to run the extractor, you would already have an info package, transformation, DTP etc. The info package allows you to choose data selection i.e. which location-products you'd like to extract the data for. In the Info Package data selection tab for MATRN, maintain the value for "Type" as "6 - ABAP Routine".
An ABAP developer can write a code in the routine to pass materials numbers which correspond to certain SNP Planner or any other master data attribute by maintaining these combinations in a table.
Regards
AK