Printing bar code to LOCL printer

I have created a smartform to print a bar code using bar code BC_CD39.  I call the smartform function in an ABAP program and then display it in PDF form using function:
call function 'SSFCOMP_PDF_PREVIEW'
     EXPORTING
          i_otf                    = otfdata
     EXCEPTIONS
          convert_otf_to_pdf_error = 1
          cntl_error               = 2
          others                   = 3.
The bar code does show on the PDF, but it is just showing as repeating bars of the same size. Like this:  
And when I print to LOCL printer, it prints out the same.  Why is it not printing/displaying the true bar code?

Hi
Which printer are you using? To print the Barcodes you need a separate Barcode printer see the following
To Create a Bar code prefix:
1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
The place where you are using the field value use like this
<C1> &itab-field& </C1>.
You will get the field value in the form of barcode.
Which barcode printer are you using ? Can you download this file and see.
http://www.servopack.de/Files/HB/ZPLcommands.pdf.
It will give an idea about barcode commands.
Check this link:
http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
Check this link:
http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
Hope this link ll be useful..
http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm
go through these links and cose u r previous threads,
http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
smartform - barcode
http://www.erpgenie.com/abap/smartforms.htm
http://sap.ittoolbox.com/groups/technical-functional/sap-basis/print-barcode-with-smartform-634396
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/printing-barcode-733550
Detailed information about SAP Barcodes
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.
Regards
Anji

Similar Messages

  • Hp officejet pro 8100 and it does not print bar codes from UPS or USPS

    have an hp officejet pro 8100 and it does not print bar codes from UPS or USPS.  Can you please please help? i have used my ipad, by HP G62-355DX Notebook and neither will give me printed bar codes.  The balance of the mailing label do print, just not the bar code.  It may be my imagination, by I believe it used to print thebar codes.

    Hi,
    Try adding an alternate driver and try to print.
    To use an alternate print driver for HP printers in Windows 7:
    1. Click on the Start menu.
    2. Click on Devices and Printers.
    3. Click Add a Printer
    4. Add a local Printer
    5. Select Create a New Port
    6. Select Standard TCP\IP port
    7. Enter Printer IP address (Printer IP address can be found by printing network config page from printer
    8. Under Manufacturer select HP and under printer select HP Officejet 8000 pirinter or Officejet 7410
    9. Click apply and try printing
    Although I am an HP employee, I am speaking for myself and not for HP.
    --Say "Thanks" by clicking the Kudos Star in the post that helped you.
    --Please mark the post that solves your problem as "Accepted Solution"

  • Use abap report program to print bar code instead of smartforms

    Do anyone know how to use abap report program to print bar code?

    Hi Celina,
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci839063,00.html
    I hope this will help, also it depends on the barcode type like ARTNR-code 128...
    Regards,
    Sudhi

  • How to Print Bar codes in SAP script.

    Hi Experts,
    Could you please tell me how to print bar codes through sapscript (the steps basically)?
    <<text removed by moderator>>
    Thanks in advance,
    Suchi.
    Edited by: Matt on Nov 13, 2008 2:04 PM - do not use ASAP or urgent.

    hi,
    check these.
    [https://forums.sdn.sap.com/click.jspa?searchID=18572128&messageID=4724540]
    [http://help.sap.com/saphelp_nw04/helpdata/en/68/4a0d5b74110d44b1b88d9b6aa1315b/content.htm]

  • How to print bar codes in sap script and smartform

    bar code sheet to print for particular customer when the
    transfer order is created.

    Hi,
       You create a bar code or change a bar code in the font maintenance transaction (transaction SE73). To do this, proceed as follows:
    &#9675; Start transaction SE73, and choose System Bar Codes ® Change.
    &#9675; If you create a bar code, the system asks whether you want to use the new bar code technology or traditional system bar codes. Choose New.
    You can enter a name and a description for the bar code. Note that the name must begin with a Zto avoid conflict between your bar codes and the standard bar codes.
    2. If you have created a new bar code, you must now add this to a Smart Style as a character format. For information about this, see the section Maintenance of Styles with the Style Builder and its subsections in the Smart Forms documentation.
    If you have only changed the bar code, continue with the next step.
    3. You can now select text in Smart Forms and choose the corresponding style with the bar code as the character format for this text.
    4. You can then print the bar code.
    Refer
    https://forums.sdn.sap.com/click.jspa?searchID=10581664&messageID=3321556
    Check the pdf below..
    http://www.sap-press.com/downloads/h955_preview.pdf
    Regards
    Kiran

  • How to print BAR code in SMART Form

    Hi All,
    I have the requirement to print BAR CODE in Smartforms.
    For this, I create a character format with Bar code in style forms and create a text element in Smart form and associate bar code character format with this text element.
    Now when I look the print preview for the data, then it shows me data in bar code format but not in right format i.e. its shows me all the similar block in bar code.
    If you look the bar code in SAP script, its always show you bar code with similar block, but in SMART FORM it will show you exact bar code; as in SAP Script, bar code is generated at printer end and in SMARTFORM bar code is generated as graphic in SAP and then sent to printer for print.
    PLease let me know, why in SMARTFORM its not showing BAR CODE in correct format in print preview.
    Thanks
    Piyush Mathur

    Hi,
    To Create a Bar code prefix:
    1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
    2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
    Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
    The place where you are using the field value use like this
    <C1> &itab-field& </C1>.
    You will get the field value in the form of barcode.
    Which barcode printer are you using ? Can you download this file and see.
    http://www.servopack.de/Files/HB/ZPLcommands.pdf.
    It will give an idea about barcode commands.
    Check this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
    Detailed information about SAP Barcodes
    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.
    reward if useful
    regards,
    ANJI

  • My HP 309a all in one printer will not print bar codes like airline boarding passes or tickets.

    I use Windows 7 with XP Pro I have received no error messages and have plenty of free disc space. I have not a clue as to what has happened. I see the ticket with a bar code on my computer screen but when I  try to print it the bad code will not print. Any suggestions?

    my hp6980 printer won't print bar codes using windows 7 on computer

  • Print Bar code for inspection report

    Dear all,
    I have a requirement for printing bar code in the inspection report. Normally, we use QGA3 print inspection report which based on the script form. Now as I would like to add bar code, as I know, I have to use smart form to realize. but it can just enter Form in the standard way. So could anyone give me some useful suggestion to realize this requirement?
    Thanks a lot.
    Best regards,
    Benny.

    Hi,
    Identify corresponding form.In the character format we have to define the bar code and assign that one infornt of which we need the bar code.
    eg:
    SE71 screen if you go the character
    there below you will get the bar code
    specify one character for that bar code and
    in place of which u want to print place it.
    for eg u have character specified as bb,
    and in place of Inspection lot (w_lot) you want to have bar code
    the just type.
    <bb>w_lot</>, this will print the bar code for instead of inspection lot
    Regards,
    Krishna Mohan
    Edited by: Krishna Mohan N on Jan 22, 2008 7:26 AM

  • Print Bar code

    Hi All,
    I am trying to print BarCode from SAP Script, but failed. I have tried it with SE73 and it printing successfully. But font which i created in SAP script with same barcode name as i am using in SE73. Kindly help me out how can i print bar code thru SAP script.
    Regards,
    Syed Tayab shah

    Hi,
    Go to SE73 and Create a character format C1.Give barcode to the character format.
    Use this character format against the value which you have to print as barcode.Use same font that you created in Se73.
    Thanks,
    Kasiraman R

  • To print bar code in smartforms.

    Hi,
             I want to print bar code in smartforms. how to do that one.
      Thanks ,
      sanjukta

    Hi,
    There's another way of doing it. Here we go... You can generate an ITF file for your data from any third party softwares.
    Once you have the ITF file, this is what you have got to do.
    <b>Uploading label file to SAPscript</b>
    1. Use the standard text editor (Transaction SO10) to upload the print file to SAPscript.
    2. Create a new standard text with any name. In the text editor load the created print file
    (.ITF file) with the function "Text->Upload" and select "ASCII" as a format. Store the ITF
    print file as a standard text.
    3. Include the standard text in your SAPScript.
    4. <b>Set up Device Type </b>Generally, a special device type (a variant of the device type ASCIIPRI) must be used for the correct printout of the layout set on a label printer. SAP supplies these device types on the ftp server sapservX and delivers them in the standard SAP system. The device type ASCIIPRI can normally be used for the basic test of procedure with other label printers.
    5. <b>Define your output Device</b> As the last step, an output device (printer) must be set up in the R/3 with Transaction SPAD. The special device type or ASCIIPRI is assigned to this output device (printer). The application program must now use this output device to print the labels. The label printer connects itself to the R/3 via one of the standard available connection types in SAP R/3 (local print on the application server/removed print via lpd server/removed print via Windows PC and SAPlpd/frontend print). Your thermal printer must be connected to one of the available output channels for print output.
    6. What is the Barcode Symbology you are using? Upload method doesn't support EAN.UCC 128. But still there is workaround.
    Feel free to revert back.
    --Ragu

  • Print Bar code in Smart form

    Hi,
      Can you pls tell me how to print bar code in smart form?

    Hi,
    You create a bar code or change a bar code in the font maintenance transaction (transaction SE73). To do this, proceed as follows:
    &#9675; Start transaction SE73, and choose System Bar Codes ® Change.
    &#9675; If you create a bar code, the system asks whether you want to use the new bar code technology or traditional system bar codes. Choose New.
    You can enter a name and a description for the bar code. Note that the name must begin with a Zto avoid conflict between your bar codes and the standard bar codes.
    2. If you have created a new bar code, you must now add this to a Smart Style as a character format. For information about this, see the section Maintenance of Styles with the Style Builder and its subsections in the Smart Forms documentation.
    If you have only changed the bar code, continue with the next step.
    3. You can now select text in Smart Forms and choose the corresponding style with the bar code as the character format for this text.
    4. You can then print the bar code.
    Refer
    https://forums.sdn.sap.com/click.jspa?searchID=10581664&messageID=3321556
    Check the pdf below..
    http://www.sap-press.com/downloads/h955_preview.pdf
    Regards
    Kiran
    Edited by: Kiran Sure(skk) on Apr 10, 2008 11:01 AM

  • Save State Form - dirty when bar codes added on print.

    Hi All,
    I have a form that is in a saved state. When it is printed bar codes are added on the preprint and removed on the post print. This "dirtys" the form. I have tried many ways to reset the dirty flag so that the form is still in a save state but nothing has worked.
    Has anyone ever been successful in doing this using "event.target.dirty" or any other way?
    I can get app.execMenuItem("SaveAs"); to work but not app.execMenuItem("Save");
    Thank you,
    Barry

    Hi,
    I have an sample form for a similar case.
    It uses a fuction to reset the dirty flag eveytime a 'animated' button changes it's color.
    Have a look, it may be helpful for you
    http://thelivecycle.blogspot.com/2009/11/control-appearance-of-save-changes.html
    Nachricht geändert durch radzmar

  • Can't print bar codes on Laserjet 2840, please help?

    Having installed a bar code font on to my PC I thought it would be easy  to print bar code labels for my retail shop but what prints out is just the bar code number instead.  Could someone tell me what I am doing wrong? 

    I don't have an answer but can suggest a couple of things. I use an old HP Laserjet 2100 with built-in ethnernet. I don't use Appletalk to print but IP printing. Your bridge must have a TCP/IP address. You might be able to use IP printing to send directly to that. Another idea is maybe you need to enable Appletalk on the MBP. By default it's disabled you can turn it on in the networking panel. You might already have that so I'm not sure if that would help. One last thing might if you have the firewall on in the sharing preferences that could be blocking it also.

  • About the bar code report in printer server

    Hi:
    I have a question about the bar code report in printer server, i can do the bar code report in my local computer ,
    but it can't be work when put it into the printer server ,
    It would be get the error message :
    REP-110: can't open the file 'null'.
    REP-1070: it have a error when it open or sqve the document.
    REP-0110: can't open the file 'null'.
    I had study the document orbr_barcode.pdf before,
    and I do something below:
    1. copy a new oraclebarcode.jar into my computer.
    2. change the regedit HKEY_LOCAL_MACHINE\SOFTWARE\ORACLEHOME1\REPORTS_CLASSPATH,
    add a new path that the oraclebarcode.jar was.
    3. import java class
    oracle.apps.barcode.util.BarCodeConstant
    oracle.apps.barcode.BarCodeMaker
    4. new PACKAGE globals IS
    bcobj ora_java.jobject;
    barcode_to_use varchar(256);
    tempdir varchar(100);
    directory_sep varchar(2);
    END;
    5.modify function BeforeReport return boolean is
    begin
    globals.barcode_to_use := BarCodeConstants.BAR_CODE_39;
    globals.bcobj := barcodemaker.new();
    return (TRUE);
    end;
    6. new Formula in the DataModel, and set to image,
    function CF_barCodeFormula return VARCHAR2 is
    myfilename varchar2(500);
    result varchar2(500);
    barcodeData VarChar2(500) := :ast_no;
    begin
    myFileName := srw.create_temporary_filename;
    barcodemaker.setBarWidthInch(globals.bcobj,0.005);
    barcodemaker.setBaseCodeData(globals.bcobj,barcodeData);
    barcodemaker.setBarCodeType(globals.bcobj,globals.barcode_to_use);
    myFileName := barcodeData;
    barcodemaker.setFullPath(globals.bcobj, myFileName);
    barcodemaker.renderBarCode(globals.bcobj);
    return(myfilename);
    end;
    It's success when I build a bar code report in local computer,
    but I copy the oraclebarcode.jar into printer server and chage the HKEY_LOCAL_MACHINE\SOFTWARE\ORACLEHOME1\REPORTS_CLASSPATH, but it get the error message ...
    Please help me , I try it so many times and it still fail,
    your sincerely ,
    Hsiu-Chen, Yeh

    Dear Ph.
    sorry ...
    I can understand your command : the engine element in the server config file.
    can you Please explain this command more detail to me, Please.
    I deeply appreciated your kindness.
    Hsiu-chen, Yeh

  • How to print BAR CODE in SAP SMART FORMS

    Hi,
    I want to print inspection lot's BAR CODE in the smart form, but i dont know the way how to print this into the smartform.
    if anyone have any idea, please suggest me how to print this as it is urgent for me to complete the object.
    Thanks in advance.
    Best Regards,
    Abnish Jain

    Hello Abnish,
    Welcome to SDN.
    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:
    1. Download the data to an excel sheet, then creating a macro that opens the printer port and sending the commands to the printer through this "file". All this is done via vb script provided with excel)..
    2. The second way is creating a vbscript (an ascii file from sap) with the printer commands and then runing it using ws_execute.
    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 ... ).
    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 ).
    To put it clear: if you have to read, for example, a barcode that holds the legal number of an invoice using a barcode scanner and this number should be sent to migo-> bktxt then you don't need an interface. The scanner itself acts like a fast operator entering the characters using a keyboard and filling in the field.
    We're reading barcodes in several places (when we finish each pallet, when we receive an invoice, and so on. Each case is a different screen. We arent using an ascii file to read these barcodes. Furthermore, we read the invoice legal number into migo bktxt field (Head Text).
    http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
    Regards
    Naren

Maybe you are looking for

  • Cannot connect to ipod software update server

    I have been battling for weeks to get my daughters iPod updated to iOS 5. I keep getting an error message when I try to upgrade "iTunes could not contact the iPod software update server because you are not connected to the Internet." The internet and

  • Groups Based On SubGroup Totals

    I'm wondering, without doing a subreport, if you can have Groups that are based on values within subgroups. For example: g:  Warehouse A d:     Item # subtotal:  Count of Item # for Warehouse A g:  Warehouse B d:     Item # subtotal:  Count of Item #

  • P&L Statement business area wise

    Dear Experts, we have a scenario like below.. we have defined the document splitting with two characteristics 1. Business area  2. Profit center.and  we have created Plant as a Business area. we have two plants like Plant A, Plant B, Plant A is Manuf

  • Points for unknown bugs

    Hi, why you reach point for a good answer, article, tutorial etc. but not when you report an unknown bug? SAP should always be happy for improving his software. Kind regards Roberto

  • Camera Raw for the New Nikon 810

    Shot with my new Nikon D810. Updated from Photoshop CS6 to CC and my Bridge to CC thinking I would be able to open the NEF (RAW) files. Is the Nikon D810 supported yet? Thanks!