If you would like to use this barcode only for verification (of batch or productnumber) BAdI /SCWM/ES_RF_VERIF should work for you. If you would like to enter the serialnumber (or/and batch) by scanning your barcode, you need your own RF Step or your own RF Transaction, where you can interpret your barcode.
best regards,
Harald