cancel
Showing results for 
Search instead for 
Did you mean: 

Scanner passes the single value to multiple fields

Former Member
0 Kudos

Hello,

I am using a barcode value as XYZ ABC . While scanner reads this data , it should pass on XYZ to field 1 and ABC to field2 .

How to do pass the data to two different fields in the SAP screen .

Regards,

kevin

Accepted Solutions (0)

Answers (1)

Answers (1)

raviahuja
Contributor
0 Kudos

Hi,

Assuming, I've understood your requirements correctly. Read bar code value in a single temporary variable. Then, split the value on space into two different variables and pass it on screen.

Thanks.

Ravi

Former Member
0 Kudos

Currently i am using the same way . I have included the code in the

AT SELECTION SCREEN ON field1 event . This happens only when the user press the enter button .

Is there any other way the field2 value gets populated without pressing the enter button .

Thanks,

kevin

raviahuja
Contributor
0 Kudos

Hi,

At SELECTION-SCREEN ON <field> is triggered when some action happens on selection screen like someone presses enter or f8 button. If you need variables to populate when selection screen is displayed, try events INITIALIZATION or AT SELECTION-SCREEN OUTPUT.

Thanks.

Ravi