User exit for ME21N
My requirement is to implement a user exit which gives out an error if the plants on different line items are different. All the line items should have the same plant as line item '10'. If line item 20 has a different plant other than line item 10, then should be an error message popping up.
Anyone has any ideas of a user exit which will help me to do this??
I would suggest using the check method instead. From the header you can get the list of items and then loop into each item and get data, and then compare the plants.
A similar scenario was dsicussed in one other thread. Check for Uwe answer in this thread: