Hi,
I would request you to do a search whether any other thread has been raised on how system determines cost center automatically before raising a thread. As I could find following thread: Cost Center in Shipment Cost Document.. | SCN which contains some info, could you please check it?
Thanks,
Balaji