My requirement is to customize the plant determination for line items.
Is there any Function module or any code to ensure this functionality.
The standard functionality for determining the Plant for the line item comes from the Material master. The delivering plant filed that you have maintained in the Sales Org 1 View of the Material master.
If you want to have your own logic for determining the plant then you can write the User exit coding in the include MV45AFZZ form name "USEREXIT_MOVE_FIELD_TO_VBAP" .
Hope this helps you.
Let me know if you need any more information.
Don't forget to reward points if helpful.