Hi Chitanya,
You can go to SPRO,
Interfaces->ERP intergration->Map storage location from ERP system to EWM, you are mapping availablity group to storage locaiton
and under GR process->Configure Avaialbity group for putaway, you are assign stock type to availabiety group.
Based on those two setting, you can design how to map your storage location.
BR
Vic