Application Development and Automation 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: 
Read only

Barcode reading

Former Member
0 Likes
1,087

Hai Experts,

I have one requirement for reading barcode using scanner and have to pass the barcode to sap

and based on that i have to display the customer details(for the corresponding barcode).

How can i achieve this?

Can anyone provide me the sample code?

Regards

6 REPLIES 6
Read only

Former Member
0 Likes
971

My assumption is that, you need to read a simple barcode and decoding it, if its so, you have to parse the barcode, for that, the functional guy(functional spec) will provide you the formats & associated values, say, if its a material/product, for instance, from 2nd CHAR to 18 CHAR = MATNR #, next 3 CHARs are country, very 1st CHAR is special symbol like +/$ etc.

thanq

Read only

Former Member
0 Likes
971

Hi Kumar,

I am assumming that Bar code is for customer number. First you scan that code and store it in one variable. After that fatch the Data from table and display. It is normal SQL query e.g.

Select * from KNA1

Where kunnr eq x_kunnr " This is variable which is store the scan Customer number.

Regards,

Denish Patel.

Read only

Former Member
0 Likes
971

Hi,

[]

[]

[]

Read only

Former Member
0 Likes
971

Hi Kumar,

Kindly go through this link below:

Hope it helps

Regrds

Mansi

Read only

Former Member
0 Likes
971

Hi,

Check with the following link.

Thanks,

Neelima.

Read only

Former Member
0 Likes
971

If you want to upload the scanned Barcode into sap, save the scanned doc in TIFF format and upload it in to SAP by using RSTXLDMC (Uploading TIFF Files to SAPscript Texts). To print the barcode data in forms we need to convert it to std.text.

Then use Field symbols for this standard text.The value for this field symbols will get from print program.

Regards,

Joan