Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Scan hexadecimal delimited barcode into screen field.

Former Member
0 Kudos
569

Gurus,

Could you please offer some insight into this problem:

I am developing an application which accepts input from a barcode scanner. The barcodes are formatted such that hexadecimal codes (eg ‘1E’, ‘1D’) are separating the values I need for the application. I need to be able to scan the barcode into a screen field in a dialog module, check for the hex codes, and separate the values in order to continue processing.

For example, the hexadecimal delimted string is built using code similar to this:

data barcode type string.

constants gs type x value '1D'.

CONCATENATE '123' gs 'ABC' into barcode.

My specific question is: How can I create a screen field in such a way that will accept the scanned input including the hex codes? Whenever I scan the input into a normal dialog module screen field created using the screen painter the GUI seems to strip away the hex codes, leaving only the plain text.

I figure there must be a way to do this using a normal SAP screen field. I can do this using an editable ALV grid input field. The customer does not prefer this solution but so far it is the only one I can come up with. The application is for 4.6c.

Thanks in advance,

-roger

1 REPLY 1

0 Kudos
138

Hi Roger,

Did you ever solve this problem?

We have programmed our readers to convert the HEX delimiters to ~ but this is not ideal as we have lots of them.

Thanks, Matt