Dear All,
I have created a simple scanning system:
1. Click the respective scan button
2. Scan barcode
3. Scanned data is populated into text input beside the clicked scan button

Need help to create a simpler UX design as per below:
1. Select any text input I want
2. Click scan to scan barcode
3. Populate the scanned data into selected text input

Hope to receive some guidance from this community. Thanks in advance.