Create purchase orders with default cost center
Is there any way to get automatically default cost center when creating a PO (for example, depending on material group).
The aim is to get cost center field populated but not using personal settings.
I guess it can be done using OKB9 transaction, but I don't know what to include in each field. I tried indicating company code, cost center and G/L account as cost element (that is the way it is customized here: material group = G/L account). But it didn't work.
Thanks in advance.