Hi Shailesh,
If you have the Process Order number, you can get all consumed materials for that order from MSEG table by passing the order number (AUFNR) and movement type (BWART) = "261" and get the returned material number (MATNR).
You can get the same result using AUFM table. It's smaller table compared to MSEG. To use this table, please ensure that parameter "Planned Goods Issue" and "Unplanned Goods Issue" parameters are ticked in the "Documented Goods Movements" section in "Order Type Dependent Parameters" customizing in SPRO or transaction OPL8.
Regards,
Julian