Agribusiness and food giant Cargill has entered into an agreement to buy the commercial edible oils and fats business of Australian food group Goodman Fielder.