You can use the table MARC for the material and plant relationship.
Select your material and substitue material from MARA into one internal table. Now get the plants from MARC for both material and modify your internal table. Now, Loop on that internal table and compare the plants and set the flag. Based on the flag you can control your dispaly.
Regards,
Naimesh Patel
Add a comment