SAP Script : Control Commands for printing Label (barcode) by Zebra Printer

Hello,
I would like to know the control commands in sap script for Zebra Printer. The purpose of task is to print a field in barcode format in Right Bottom of the label.
The sample code is placed below. Kindly have a look at it. The problem now i am facing is, the barcode for Customer PO is printing on the wrong place (Left Bottom, the text & barcode are overwriting). Can anyone suggest a possible way or can any one send the document for Barcode commands in SAP Script for Zebra Printer.
Sample script code:
Initialization and reset Barcode
XAMCY^XZ
Start
^XA
Barcode setup
^BY3,2.7,2.2
Set label home position
^LH
^FWN
FO385,025A0R,40,50FDPN: &VBAP-MATNR&FS
FO385,725A0R,40,50FD&VBAP-ARKTX&FS
FO385,1710A0R,40,50FDRtns: &zsntsc-contr&FS
FO345,025A0R,40,50FDService Order# &AUFK-AUFNR&FS
FO345,725A0R,40,50FDSerial# &EQUI-SERNR&FS
FO345,1710A0R,40,50FDRepair Order# &VBAP-VBELN&FS
FO245,025B3R,N,90,N,NFD&AUFK-AUFNR&FS
FO245,725B3R,N,90,N,NFD&EQUI-SERNR&FS
FO245,1710B3R,N,90,N,NFD&VBAP-VBELN&FS
FO138,1710A0R,40,35FDCustomer PO# &VBKD-BSTKD&FS
FO98,025A0R,40,50FDWrnty: &W_WARRANTY&FS
FO98,605A0R,40,50FDRoute: &W_ROUTE&FS
FO58,025A0R,40,35FDShip-to-name: &W_NAME1&FS
FO58,1325A0R,40,35FDMinor Group/Nr: &TVM5T-BEZEI&FS
FO58,1325A0R,40,35FDMinor Group/Nr: &TVM5T-BEZEI&FS
FO18,885A0R,40,35FDReported By: &QMEL-QMNAM&FS
FO18,1710B3R,N,90,N,NFD&VBKD-BSTKD&FS
^XZ
Thanks in Advance,
Ramasamy

HI
GOOD
GO THROUGH THIS
A barcode solution consists of the following:
- a barcode printer
- a barcode reader
- a mobile data collection application/program
A barcode label is a special symbology to represent human readable information such as a material number or batch number
in machine readable format.
There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
You can print barcodes from SAP by modifying an existing output form.
Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool. 
Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
The next part of the equation can be a bit tricky as you will need to get a printer to print that barcode font. Regular laser printers does not normally print barcode fonts, only specialized industrial printers that is specifically designed to support that protocol and that uses specialized label media and heat transfer (resin) ribbon to create the sharp image required for barcodes.
Not to fear though, there are two ways to get around this:
- You can have your IT department do some research - 
most laser printers can accept a font cartridge/dimm chip (similar to computer memory), called a BarDIMM that will allow a laser printer to support the printing of barcodes.
- Secondly, you can buy software that you can upload in your SAP print Server that will convert the barcode symbology as an image that will print on a regular laser printer. I found that this option results in less sharper barcodes. This option is really if you need to convert a large quantity of printers (>10) to support barcodes. 
- Thirdly, you can buy a third party software like Barcode.dll and install on your frontend PC connected to the laser printer.
Now you have a barcode printed - what next?
Well there are two options, depending on your business requirements:
- You can use an existing SAP transaction on a regular workstation and get a barcode wedge reader to hook up between the keyboard and the PC. These wedge readers comes in a wand or scanner format. There are even wireless wedge scanners available that allows you to roam a few yards from the workstation to scan a label. This approach is mostly used where you want to prevent human errors in typing in long material, batch or serial numbers in receiving or issuing of material. The problem is that it's just replacing the keyboard input and you are basically locked down in one location and have to bring all the material to that location to process.
- Another solution is to use SAPConsole transactions
or write your own ABAP Dialog programs that will fit onto a barcode enabled wireless handheld terminal and that will follow the business logic as executed on the shop floor. 
These programs are highly complex exercises in industrial engineering and ergonomics because of the limited screen sizes and limited ability to accept keyboard input. The user is instructed step-by-step and only scan and push F-keys to interact with the SAP system. Scan, scan, beep, beep, enter - highly automated.
GO THROUGH THESE LINKS
http://www.sap-img.com/abap/details-information-about-sap-barcodes.htm
http://help.sap.com/saphelp_nw04/helpdata/en/68/4a0d5b74110d44b1b88d9b6aa1315b/content.htm
THANKS
MRUTYUN

Similar Messages

  • Problem with SAP Script (Control Commands)

    Dear friends,
          I am facing one problem withg control commands. When i use <b>PROTECT.....ENDPROTECT</b> with <b>VAR type</b> window then it is not working instead i use with <b>MAIN type</b> window it is working fine. Another problem with <b>BOX command</b> when i use with <b>MAIN type</b> window then it is not working but when i use with VAR type window then it is working fine. SO i am little bit confused that is there any relation between control commands and window type?
    THanks & Regards,
    Bhavin

    Hi,
    There is no restriction to use any control commands on any windows.
    The SAP doesnt give any error, but the point of using Protect Endprotect in windows other than main window doesnt apply.
    Only main window carries from one page to another. So in order to print certain lines in a single page we use this control command.
    Regarding BOX command it works fine on any window.
    Thanks and Regards.
    Lavanya.

  • Printing labels (barcode, datamatrix code, ...) with LabView via Codesoft

    Hello together,
    could anyone post a sample vi which enables printing labels (barcodes, datamatrix code, ...) with LabView
    via the Teklynx Codesoft Runtime Software? There are no sample programs from Teklynx for LabView.
    Many Thanks for your help, Thomas.
    Message Edited by maximint on 01-04-2007 10:04 AM

    maximint wrote:
    Hi JLS,
    thanks for the answer. I agree with you that closing the references is the best und most stable solution. But it is really slow. I made an exe but this is also slow.
    But apart from this, the VI is running well, even with a handing over of variables. I guess this is one of the first VIs in the net which combines LV with
    Codesoft from Teklynx.
    Thanks, Thomas.
    PS: I made a wrong click on the rating of your last post. Sorry. I guess I rated it too bad.
    Well, this is easily solved with an intelligent global buffer VI or as they are also often called a LabVIEw 2 style global. I use them quite often for all kinds of reasons including to avoid globals in my programs almost 100% but this is one of the cases where they are also very handy.
    Basically you write a VI that has a while loop, and a case structure inside. The while loop normally only executes once. One or more uninitialized shift registers store different values that can be reused on each call to that VI. The case selector is wired to an enum (I make them always strict typedefed) on the front panel and that one is connected to the connector pane of the VI.
    Make the enum have init, print, close items and in the respective case frame do the opening of the refnum in the init case and anything else you need to do once at initialization time storing the refnum to the right shift register terminal. In the close case do everything to close done the software and then close the refnum coming from the right shift register terminal itself passing a Not A Refnum to the right shift register terminal. The print case uses the refnum from the right shift register terminal too, does all that is necessary to do printing and then stores the refnum back to the right shift register terminal. You now have an intelligent manager function for your interface to the printing software.
    The init case is called somewhere during initialization of your application while the close case is called somwehre when you close your application. A variant is to combine the init and print case but forst test for the refnum to be Not A Refnum (comparison palette) and in that case do the initialization first, otherwise just do the printing. The advantage with this is that the Codesoft interface is only initialized if you really need it.
    There is one caveat for this if you use dynamic top level VIs to implement for instance test steps or deamon like operation. LabVIEW remembers the top level VI under whom a refnum was opened and automatically closes refnums when that top level VI goes idle (stops running). So you would need to make sure that the initialization is done in the main hierarchy that is guaranteed to run for the entire time that your interface is required.
    I have included a small archive containing an API for Codesoft 7 that also supports variable query and substitution in templates. It is an older version of something I'm currently using and not very well tested as is, but the newer version is a lot more involved and complicated and not suited to be put here. I also included another archive showing a version of such an intelligent manager buffer function using that API.
    Rolf Kalbermatter

  • SAP-Script Control on a Dynpro

    Hello to all
    I am trying to implement a SAP-Script control on a Dynpro (a PA-Infotype) using the class CL_GUI_SAPSCRIPT_EDITOR.
    Basically this works pretty smooth but I am facing an odd problem:
    How can I determine that the user made changes to the text and I therefor need to save the Infotype and the content of the control? I found this suitable looking method IS_MODIFIED of said class which seems to return a boolean value that indicates wether there have been changes made or not.
    Sadly though this method always returns false.
    Has anybody a clue as to what needs to be done here?
    Cheers
    Markus

    I think, one should flush the changes before requesting the modification status.

  • Error when including SAP Scripting Control

    Hello,
    I was using SAP Scripting Control in VB with SAPGUI 620 without any problems. I upgraded my SAPGUI to 640 (patch level 8). Now, I am not able to include the SAP Scripting Control (sapfewse.ocx) in Visual Basic. Whenever I try to include it, I get an error "Circular dependencies between modules". Am I doing something wrong?
    I also installed the patch level 20 but I still get the same error.
    Any help would be highly appreciated.
    Thanks.

    Hi Vishal,
    please upgrade to the latest 640 patch. The problem was fixed, I think patch 11 should work fine.
    Best regards,
    Christian

  • Printing trhough SAPWIN with ZEBRA printer

    Hi Gurus
    I need your help please since I already spent a lot of time to find a solution and not found any.
    I use Smartform to produce labels on ZEBRA printer (output Device Z201, Device Type ZLZEB2:Zebra label printer 203dpi). All fields on my form use HELVE as font. I print my form through Z201 and it works fine.
    My requirement now is to print the form to ZEBRA printer locally using SAPWIN (Rel 4.x/SAPlpd 4.09 + ONL:Y) as device type. To do this I created a new output device LCLB, copied the device type SAPWIN into ZWIN and attached to output device LCLB
    The problem is when I print the form using LCLB, all my fields with HELV font are printed with COURRIER font.
    I went in transaction SE73 and display printer fonts associated with ZWIN and it seems that all fonts (COURCYR, COURIER, OUR_I7, HELVCYR, HELVE, HELV_I7, OCRA, OCRB, TIMECYR, TIMES, TIME_I7) are defined there. Do I miss something? Do I have to redefine the print control in ZWIN with control characters corresponding with ZEBRA printer?
    Any feedback would be appreciated
    Thank you

    Hi Valter,
    did you figured it out why do you had a problem with that printer?
    tks
    best regards,
    Pedro

  • Print-control commands for dotmatrix printer

    dear all,
    Here my requirement is we are using datamax printer ( dotmatrix printer) for printing script and i need some commands for that.
    please reply soon.
    thanx inadvance

    Hi Don
    Thank's for your reply.
    That's excactly what we want to do: within the same report we'll use different trays and/or number of copies.
    In the meantime, we talked to the manufacturer of the ELP module. They told us that the print stream contains parts of the correct sequence, but unfortunately the trailing two closing paranthesis are missing. For that reason, the command string is not recognized as valid command and is therefore printed "as is".
    We tried to add additional characters after the trailing paranthesis, again no success...
    The next step is to use the newer CR runtime, as Nikhil suggested in his answer.
    Weird problem...
    Regards
    Daniel

  • SAP SCRIPTs and syntax for text elements!

    Hi all,
    I am very new to this forum.
    I am learning SAP scripts.Can any body here suggest me how to go about it?
    More over i want the syntax that is used in page windows text elements.
    It would be greatly appreciated if u could provide the documents if any for the same.
    Thanks,
    Ravi Soni.

    Warm welcome to SDN.
    Have a look below online PDFs related to scripts:
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRRDI/BCSRVSCRRDI.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCREDIT/BCSRVSCREDIT.pdf
    Also have a look at below links:
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/80318f454211d189710000e8322d00/frameset.htm
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf.
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    I hope it helps.
    If you are satisfied with the answers, then you can give points to those answers by clicking on left side of the answer and mark them as useful answer, very helpful answer or solved problem.
    Best Regards,
    Vibha
    <b>*Please mark all the helpful answers</b>

  • Not printing the label in the zebra printer for 4 X 7 inch size

    Dear all,
    Iam trying to print the barcode in the label of size 4.00 X 7.00 inche in smartforms , for which i have created a page format in SPAD with 4 x 7 inch and specified the same in Form interface and specified 4.00 x 6.00 inche in the MainWindow of smarforms,
    im getting the print preview ,but it is not printing it in the printer, i checked with the zebra printer set up also and in the printing preferences i gave it as user defined.
    but when i tried with page size of 4.00 x 6.00 , it is printing without any problem. but my requirement i need to print that in 4.00 x 7.00.
    Can anybody guide me how to resolve this.
    thanks in advance. Points assured.

    sorted out by setting the SPAD - Device types
    format, just added the zxxx format to this and now it is working

  • Logo printing on label output from Zebra printer

    Hi guru, I am new to zpl command and I cannot find out how SAP is compiling the logo object and load into SAPSCRIPT. Bascially, our company is using zebra printer to print out receiving label with logo on it. There is a requirement to change the logo. What should be the steps?
    The transaction I was told to use is OMCF. I can see the precompile file path/name is listed in each label text object. Something list C:\BARONER3\Logos\logo1.bmp or C:\Logos\logo2.bmp. If I need to change a new bmp file for the logo, how should I do it?
    Also, is there any good documentation about BAR-ONE and ZPL command?
    According to SAP help, the label design is done in BAR-ONE then the print file is downloaded as .ITF format and import into SAPscript as standard text using SO10. However, I cannot find any standard text in SO10 which have the same text ID and text name as in OMCF -> Text Object.....what is the connection between the Standard text and the OMCF text object?
    Any advise on the details step to how to create a simple logo/barcode label using BAR-ONE and SAP is greatly appreciated.
    Thank you.
    Minami

    Hi Minami,
                   Please check the transaction SE 78 here you can upload new logo or pic with some retriction on size compnay logo should not be a problem.Then you can change the logo.I think this link might be of use to you.I am sending you link
    [SAP LOGO|Logo in sapScript;.
    For SAP Barcode Documentation Please refer this SAP Library Link:
    [Barcode|http://help.sap.com/saphelp_nw04/helpdata/en/68/4a0d5b74110d44b1b88d9b6aa1315b/content.htm]
    Have a best day ahead.

  • Problem printing labels on dot-matrix printer

    I am currently using Oracle Reports v 3.0 on an NT network. I need to print labels on an Epson LQ-570+ printer. The user will run a number of reports which will create a file for each location we need to send to. The user will then send 10 - 20 files to the printer at a time. The problem I am having is that since we went to Reports 3.0 on NT if a file has only one label, it will print that label then page forward spitting out 10 blank labels. It then prints the next file. We are using continuous feed labels and are wasting a LOT of labels. I have tried to reset the page size in the properties page of the report but no luck. Any help would be greatly appreciated!

    hello, I could not write English, but I will help you
    You could see it in SYSTEM PARAMETERS of reports, in the MODE option, putting the to initial value Character type
    You also have to see the Dflt.prt file, that this located in the C:\ ORAWIN95\ REPORT60\ PRINTERS, the who you control the margins of
    impression in manner [caracter]. They for [default] are 80 Columns and 66 Lines, the
    who you could publish and change the courages
    You count me if I operate you.
    Greeting

  • No of print labels based on Product (printing of shopfloor paper)

    Requirement is to print labels during the confirmation of production orders. Number of print labels is
    determined based on the Finished Good product. For example
    Finished Good A --> 1 print label for production order confirmation of 1 unit
    Finished Good B --> 2 print labels for production order confirmation of 1 unit
    like wise,Finished Good Z --> 10 print labels for production order confirmation of 1 unit
    How could we achieve this, what configuration in print shop floor paper needs to be done.
    ===========================================================================================
    Note:Labels are printed,but defaulting to 1 print label during production order confirmation
            regardless of finished Product.

    Hi Aprasada,
                         You can modify the print program as Abhijit said.
                         Or if you condsider the option of adding a little bit to your work without going for program changes, after the first print you may go to the spool controller, select the printed label and in the option to print with changed parameters change the number of copies to your desired level.
    Regards
    Sm.
    Edited by: Sm on Oct 28, 2011 5:01 AM

  • How to print Chinese character in Zebra printer?

    Hi,
    Could you please advise how to print Chinese in Zebra printer, I have added below ZPL command line in SAPSCRIPT, but it did not work.
    ^CW1,B:MSUNG.FNT
    FO711,60A1N,47,79CI17F8FB1561,3,0,LFN998^FS

    Hi,
    go through the following links.
    [Printing Chinese Characters on Labels using ZEBRA;
    I hope it helps.
    Regards,
    Rohit

  • How to find SAP Script Form name for an particular transaction

    Hi,
    I had an issue, in the transaction F110  Payment advice. They need to adjust the spacing on the cheque printing, which is overlapping the names on the cheque and hence I have forgotten how to find the form name and the driver program of the script. Can anybody suggest me how to find those. Your help will be appreciated.
    Thanks in advance.

    >
    Muralidhar Medisetty wrote:
    > Hi,
    >
    > I had an issue, in the transaction F110  Payment advice. They need to adjust the spacing on the cheque printing, which is overlapping the names on the cheque and hence I have forgotten how to find the form name and the driver program of the script. Can anybody suggest me how to find those. Your help will be appreciated.
    >
    > Thanks in advance.
    hey
    NACE is the transaction ..for this u must know the output type..
    Script for Cheque Printing and Payment Advice can be known from Transaction FBZP...
    FBZP -> paying Company Codes -> u will get Script used for Payment Advice
    FBZP -> Pmnt methods in company code -> u will get Script used for Cheque Print
    ....Give points if useful.....
    Edited by: Satyabrata sahoo on Oct 14, 2008 4:42 PM

  • Script or command for GP Custom Interface to start IE 11 in Metro Mode at login (Win 8.1)

    Hi,
    I am aware you can use GP's to set IE to open in kiosk mode by entering the following;
    C:\Program Files (x86)\Internet Explorer\ieplore.exe -k
    I'm also aware that you can use assigned access to lock down a computer to only the IE metro app.
    Also, I could probably spend a few hours per PC locking Windows down (via GPs) so all that displays/is accessible is the metro app in the start menu.
    But, for a very long winded explanation, none of these options are acceptable to me.
    What I was wondering is if there is a script to fire up IE in Metro Mode at login? Or a path/switch like iexplore.exe -k for the custom interface that I can use? Everyone seems to know how to disable Metro Mode, but nothing I've found on the internet says
    how to disable desktop mode.
    And don't link me to this;
    https://social.technet.microsoft.com/Forums/windows/en-US/96d21228-4e92-4123-b769-88086710348b/start-ie-in-metro-mode-from-script?forum=w8itprogeneral
    Because it doesn't answer the question in the least.
    Thanks in advance.

    Hi D1fty,
    If my understanding is right, we need to open IE in full screen as Metro Mode when we login the computer.
    I think there are two methods to  open IE in full screen.
    1. Press F11, and the Internet Explorer will become full screen and it will still in this mode the next time we open IE.
    2. Open Internet Option and Choose Always in Internet Explorer, and then if we open any website shortcut, we will open metro IE
    If you insist to use script and kiosk mode, we could seek help in script forum for better script support.
    https://social.technet.microsoft.com/Forums/scriptcenter/en-Us/home?forum=ITCG
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

Maybe you are looking for

  • AIR 3.9.0.880 StageWebView and Retina MBP

    When I compile my app using AIR 3.9.0.880, my StageWebView is 1/4 size on my Retina MBP unless I pass true to the StageWebView constructor for the "useNative" parameter. Is this by design? I have this set in my app descriptor: <requestedDisplayResolu

  • Open items list, authorization

    When I give authorization to a user under Authorizations>>Reports>>Sales Reports>>Open Items List - Full Authorization, the Open Items List does not show up in Reports (as it does for the super users).  We are using SAP B1, 2007 A, sp: 01 pl: 08. Tha

  • Change Colors in Results Window

    Hi does anyone know how I can change the colors (text and backgrounf) of the results window?

  • Tabbing sequence incorrect after emailing

    After I emailed my forms to my boss she told me the tabbing sequence is out of order.  I checked back over my forms and it looked fine.  Do I need to lock all fields before emailing to prevent this problem?

  • Passing Variable back to batch script

    I need to pass the result of a sql script back to the calling batch script. How would I do this? This is what I have tried Batch Script return_code = 'sqlplus loginname/pass@database path/sqlscript.sql' echo $return_code sqlscript Declare v_locked va