Hello
You can use MD04 to evaluate materials from the same MRP Group, for example. Take a look on the following document for more details:
Material Grouping and Cross-Plant View in the Stock/Requirement List(T-code MD04)
If you are developing your own report, you can call the mentioned BAPI several times, one for each material.
Regards
Caetano