If you are using the option "Inventory put-away/pick" direct from purchase order document then please check the following setup on the location card.
1) Location code should be Bin Mandatory with Bin master created
2) Require Put-Away check mark YES on the location card
3) Purchase Order document should be released
Then this error should not come. Kindly check the setup.
Thanks
Navin Mahadule