Mastering these four functions is the difference between a chaotic, expensive mess and a smooth, profitable supply chain that delivers customer satisfaction.