|
1. Can we print bar codes in SAP only from ZEBRA printers
?
2. I had read that bar code printing is enabled in SAP and only needs to configure device/printer for that. Does this mean that we can use our existing HP 2300 or like printers to print bar codes without any ZEBRA like printers and the printed bar codes are readable through any reader ? 3. Are there any specific steps to print bar codes from SAP (from within Smartforms) including data fetch and printer configurations. 4. What is the process or method for reading data in bar code form into sap ( as far as I think that we can upload the txt file created from reader and upload it to SAP ). Can we do this without uploading TXT file i.e. directly reading from bar code reader into SAP. In other means what are the normal ways to read bar codes data into SAP. Furthermore, we have taken a zebra Z4M plus printer from one of vendor on trial basis but even after following the recommended steps as mentioned in the config. manual we are unable to print any thing on bar code printer from within SAP. I do agree that we can print bar codes from excel or from outside SAP but we wanted to print it out from within SAP and we think SMARTFORM is an easier way as compare to SAPSCRIPT (although we don't have any idea of printing bar codes from SAPSCRIPTs). About reading from bar code reader .... yes we know that we have to read the bar codes into a ASCII or text file but in that case we need to write a ABAP program to upload that information into SAP to do MIGO (in our case) and for that we also need to fill in certain other information into that text file after reading bar codes ....?? is there any other simpler way of doing this ??? We are able to print barcodes from smartforms. Doing this way, we print barcodes on laser printers. We are also printing from sap to zebra printers using
two ways:
You need a barcode reader to read the barcodes, and this scanner acts like a keyboard, it sends the data scanned to the active field on screen. (which might be a notepad, word, excel or an input field or ... ). Back to your problem: 1. We're using Zebra 2746-e (Eltron) to print labels that have some barcodes in their design. There are several approaches to solve this problem. We've decided to work with the programming language of the printer (EPL-2), because we use the zebra printers from SAP or from other windows applications. Our solution was to develope function module that creates an ascii file (a vbscript file) and then use the ws_execute to run wscript with this file. The vbscript just opens the port for output and sends a sequence of writeline, each of them with a command to the printer. After all the commands were sent to the printer, we close the port . Just note that the port acts the same as a file. This is an EXAMPLE of the visual basic script code; Set fs=CreateObject("Scripting.FileSystemObject")
We've send this code to an ascii file or as part of a
macro to be run within an excel sheet. We have succeed in both cases.
If my memory isn't failing, I think that I've read something about controlling zebra printers from smartforms in service.sap.com, but I haven't explored this possibility. 2. From 4.6c on, you can use smartforms to print barcodes without buying any barcode.dll software nor hardware extention like Bardimm on any laser/inkjet printer (Please Note that I haven't mentioned Zebra printers here!). To do this, you have to create a smartstyle -> character format with the desired barcode font (defined within sap).Then in the smartform, create a window, put the field and associate it the character format. That's all (I mean, that's all we do at least :-). I think, you have to consider the barcode specifications before sending the barcode value to the smartform (Just an example, if you're using 3 of 9, the code should start and end with an asterisk - '*' -) We're printing an interleaved 2 out of 5 barcode in our invoices due to a legal requirement, and we did it this way. 3. If you have a barcode scanner, then you should not
need reading the barcode into an ascii file to get the data read in an
standard or custom screen field. You can read it directly to the
field you want. (unless... you have complex data coded in the barcode
- for example if you're using an ean-ucc 128 compliant code and you're
sending several fields in a single code ... In this case, an interface
is almost mandatory because you must interpret the data fields according
to the ucc standard, split the code into several fields .... and .... pure
programming logic ).
Smartforms Tips by : Horacio |
|
See Also
ABAP Books
More ABAP Tips
SAP Basis, ABAP Programming and Other IMG Stuff http://www.erpgreat.com All the site contents are Copyright © www.erpgreat.com
and the content authors. All rights reserved.
|