Mostly the BAdi : ME_PROCESS_PO_CUST is used for ME21N enhancement. But I've following questions, please clarify.
What is the function of ZM and what value you need to default?
How you correlate the function ZM with user?
Usually the partner function derived from Vendor master as well you can set partner schema based on your PO document type.