In our earlier system, there were separate purchasing organization (for a country) for each company code so if the same vendor is used for both the purchase organization; we were able to define different payment terms and accordingly default in Purchase order.
Now in the new system, there is only one purchasing organization (for a country) for each company code. We can define separate payment terms in company code data for the same vendor but only one payment terms in purchasing view.
Now the issue is how to default payment terms in purchase order, one option is to use BADI ME_PROCESS_PO_CUST so that the payment terms in purchase order will come from the accounting view of the vendor.
Please let me know if anybody has faced the same issue and how to resolve it.