‎2009 Feb 22 2:52 PM
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
‎2009 Feb 22 3:01 PM
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
‎2009 Feb 23 7:26 AM
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.
‎2009 Feb 23 7:40 AM
‎2009 Feb 23 7:47 AM
‎2009 Feb 23 8:40 AM
‎2009 Feb 23 8:57 AM
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