From business perspective, pur org and plant should be relevant by business unit ka.
So we shouldn't maintain genc as WERKS_U401_DP11 as your mentioned ka. Because pur org U401 refer to US business unit but plant DP11 refer to Denmark business unit.
To improve this program as business requirement, we should fix program by adding field to check purchasing org then search plant under that purchasing org as we've discussed on yesterday ka.
If you've any queries,please feel free to contact me na ka as customer need to fix this report as urgent.