You can only create an engineering change order (ECO) directly if the Require ECR Before Creating ECO check box is cleared on the BOM Preferences form.
Assuming that’s the case, below is an example of a scenario that works for us. You don’t need the Inventory ID or warehouse because these will populate based on the BOM.