Procedure
This error means that the system is not being able to cost the material because it's missing some parametrizations are missing in the system in order to calculate the correct cost.
So when we have this error we need to see which kind of product are we trying to cost, and to try to understand where the system is supposed to pick the price.
Go to MM03 to display the material, and check the field "Valuation Type" in the tab "Accounting 1".

As a general rule we have the following:
However, it's possible to have other options, which are valid for both types of materials (produced + purchased):