Line Operator was removing 20 lb bags that had fallen off of pallet inside palletizer hoist area. Operator was standing at floor level outside of hoist area reaching in to get the bags and place on a pallet. Operator felt pain in shoulder while doing task. Diagnosed by doctor with muscle strain. On light duty work.