Hi,
You have to use the bar code scanner to read the the bar code into system , you have to integrate the bar coder scanner device with system.
for more detail please check below links
Bar Code Reader for Packing Goods in SAP B1
Barcode Scanner with SAP Business One
Integration of Bar Code with SAP-B1 Application
Hope it help you.
--Manish