Skip to Content
Former Member
Feb 13, 2007 at 04:17 PM

Scan hexadecimal delimited barcode into screen field.



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,