AT SELECTION-SCREEN ON VALUE-REQUEST FOR MATERIAL.
CALL FUNCTION -> F4IF_INT_TABLE_VALUE_REQUEST to get material and material group for the plant.

Related questions