Printing QR-Code barcodes in SAP smartforms

Hi,
Is it possible to print QR-Code barcodes in SAP smartforms using system barcode font? Can anybody please let me know the font settings for QR-Code in SE73 font maintenance?
A sample QR-Code lablel can be found [here|http://images.orkut.com/orkut/albums2/ATUAAADhaahG5MxsqQ66lcSO9oHRWD3X8zh7yv1kEakKwMtVHchChN1WfZlM__2D0_o8H7AS4_UaTTCymQQtvXHb9-q3AJtU9VCWnzkZ4gC1sVnCekVuQ90qmhzeMw.jpg].
Regards,
Milan

Hi Milan,
I'll blog in SDN about my research that I presented at TechEd during session CD119 (blog) but I'll begin sharing with you some ideas.
Basically, without relay on any printer specific driver I would propose to follow the following steps:
1.Generate the QR Code image file (.PNG) with one of the methods presented in the following pages
2.Upload the image into the SAP system
2.1 Convert the generated file (file.png) to TIFF using SAP IGS class CL_IGS_IMAGE_CONVERTER (see GRAPHICS_IGS_IMGCONV_DEMO)
2.2.Upload. Use report RSTXLDMC to upload the image into SE78
3.Include the image into the Form:
3.1.SAPScript/:INCLUDE ZHEX-MARCO-name OBJECT TEXT ID ST
If everything is clear, the missing point should now be the first one. To generate the PNG from ABAP I found some options if you like, the better I think is presented in my open source project called abap2qrcode published here http://code.google.com/p/abap2qrcode/.
I know it's not trivial and I'm curious to know what do you think about it.
Sergio

Similar Messages

  • Need to print SCC-14  and UCC-128 barcodes through SAP Smartforms

    Hi all,
    I have Two labels to be printed using smart forms.
    But in one label the barcode should be of SCC-14 type
    and in other the barcode should be of UCC-128 type.
    <b>How to print SCC-14  and UCC-128 barcodes through SAP Smartforms?</b>
    As standard barcodes do not meet my requirement i have created custom barcodes in transaction se73 of required height and width .
    This is as:Se73>System Barcodes>change>Create>New-->:
    I have given bar code and short text.
    Narrow Module Width &Linear Height&Code128 Mode given default values.
    But in this process where can i set the barcode should be of SCC-14.
    > I have known that if we give Code128 Mode =
    > 'U'-->It is like UCC-128.Is it correct ?
    >
    > But how can i know for SCC-14 barcode.
    >And How many inches is euqal to 1 unit of Narrow Module Width &
    How many inches is euqal 1 unit of Linear Height?
    Please help me in this regard.It is urgent.
    All solutions from you will be fully rewarded.
    Thank you in advance.

    Hi  Rama,
    We are working to print Bar codes using Smart forms.
    Barcode is printing in label (4*6 Inch’s) using printer (Zebra Z4 M PLUS (300 DPI)) (TLP-3842) which supports ZPL Language and Device type is ZLZEB3 (300 DPI).
    We are printing bar codes successfully.
    But After testing bar code using bar code tester (BC TESTER 4.4) software tool.
    The results are failed.
    We are expecting results: Like bellow.
    Value formatted type is: EAN
    Value is “[C142007470 “
    Total Description:   420. “Ship To-Deliver to “Postal Code a Single Postal Authority 07470
    Current Situation:
    Here we are Created Bar code (Ship to Post) in SE73 with
    Bar code type is: Code 128
    Width is: 08
    Height: 300
    Mode is: A    (Even I tried with ‘N’ and ‘U’)
    UCC check: Empty.
    I added this to character format in my Smart forms.
    Text in smart form is: ,,,,<C2>&W_POSTAL_CODE&</>    for  P1 Paragraph.
    Using this functionality  we are able to print a Bar code in Label.
    But while testing using BC Tester
    Values are showing:
    Value formatted type is: EAN
    Value is “42007470 “
    Total Description Values:  Empty
    The Type is ‘EAN’ is when we select the Manually EAN Radio button (but this not capturing automatically this is problem we are facing).
    Even I tried with some changes like bellow:
    But Forcefully writing some code in Program lines  Smartform: 
                   concatenate '420' fs_zediu017-pstlz into w_postal_code
    After this forcefully adding this Value [C1  in Before W_postal_code Element text :
    Text in smart form is:        ,,,,<C2>[C1&W_POSTAL_CODE&</>    for  P1 Paragraph.
    After this we are tested using BC tester
    Every thing is displaying correct Vales which mention above when we manually select the Value formatted type radio button ‘EAN’ but this Wrong.
    Client need when testing bar code using BC TESTER 4.4 it should be display to take EAN radio button and showing all the Values.
    Please let me know if you get any idea on this ?
    Thanks,
    Bathini.

  • To print labels with barcodes in sap-scripts

    how to print labels with barcodes in sap-scripts . explain with example.

    Hi,
    What was wrong with the answers you were given the first time you asked this question?
    labels with barcodes in smart forms
    Why have you ignored their efforts and logged the same question again?
    Nick

  • QR code Barcode(2D) in SAP

    Hi,
    Is it possible to print QR-Code barcodes(2D barcodes) in SAP smartforms using system barcode font?
    Can anybody please let me know the font settings for QR-Code in SE73 font maintenance? Also the steps to upload the QR code font into SAP.
    Thanks,
    Best regards,
    Prashant

    This is the best way to do it IMO.
    How to create a QR code and show it in a Smartform
    Uses a Google Charts API, the HTTP_CLASS, Monochrome Bitmaps and SMARTForms.
    This example is great as it includes all the code you need.
    You will need your SAP System connected to the internet though, go badger your BASIS team about this.

  • Printing 2-D barcodes

    hi folks,
              i have two doubts reagsrding barcodes.
    1. what is the difference between single dimension barcode and two dimesional barcode.
    2. can we print 2-D barcodes on SAP Scripts/smartforms on a data matrix printer.
    printer deatils are as follows.
            Printer: Intermec 4440
            Barcode Symbology: Codematrix
            SAP version 4.6c SP54
    if we can print, will the data matrix printer pritn it directly or do we need any software to do so. please help me regarding this..
                thns in advance,
                 santosh.

    Hi the correct use ist like this:
    = <MC>&BARCODEFIELD1&&BARCODEFIELD2&</>
    it works fine.

  • How to print  the barcode in a smartform satisfying specific condition

    Hi
    I have a requirement where I need to print the barcode System Bar code = BC_93
    satisfying the following requirement:
    The Bar code is made up of the concatenation of “code1 ”, “dash character”
    and “ code2”. The two codes ( that is some field in a custom table) should be
    eight char long each (put leading zero if the length of the code is shorter).
    This barcode shall be printed always apart from:
    a) code1 material type is ZCPF
    b )Is a combi order, with no code2 stored in storage location “abc”
    please help with example . its very urgent , points will be rewarded.
    Thanks

    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.
    Re: how to print barcode using smartform and sapscript...?

  • Printing QR codes and Barcodes together

    Dear All,
    I have referred the following link to print QR code as a post script:
    http://scn.sap.com/people/robert.russell/blog/2010/10/25/barcodes-in-sap-with-the-barcode-writer-in-pure-postscript
    While printing my SAP Script/ SMARTFORM output on any printer, if I specify output device as ZBWIPP then QR code is being printed perfectly, but barcodes (Which are already there in script and are expected to be there) are not being printed at all. When the output is printed without specifying any output device, then only barcodes are being printed and not the QR code.
    I have tried adding print controls ZBW01, ZBW02, ZBW09 and ZBW91 to the output type of printer, even then QR code is not being printed.
    I request your advice and help on how to get QR code and barcodes printed together. Thank you.
    Regards,
    Kartik
    P.S. These existing barcodes are of type BC_CD39, not post script barcodes.

    Hi Karthik,
    I have a requirement to
    1) Output data from an internal table into excel, and
    2) Create a chart from the data in excel
    So far I have been able to export the data using OLE calls, created a chart object,.
    My question:
    1. How to put Data Lables
    2. How to put Data Table under the Chart
    3. How to rename the series names.
    Below is the recorded Macro. I don't know how to convert it to ABAP.
    Sub Macro1()
    ActiveSheet.Shapes.AddChart.Select
    ActiveChart.ChartType = xlColumnClustered
    Application.CutCopyMode = False
    ActiveChart.SetSourceData Source:=Range("B1:E4")
    ActiveChart.SeriesCollection(1).Name = "=Sheet2!$A$2"
    ActiveChart.SeriesCollection(2).Name = "=Sheet2!$A$3"
    ActeChart.SeriesCollection(3).Name = "=Sheet2!$A$4"
    ActiveChart.SetElement (msoElementDataLabelOutSideEnd)
    ActiveChart.SetElement (msoElementDataTableWithLegendKeys)
    End Sub
    I have attached the current output and expected output.
    I have searched about this in google but i could not find any solution for this.
    Your help is greatly appreciated.
    Current Output:
    Expected Output:
    I hope that I have explained my query clearly.
    Thanks,
    Lakshmi.

  • Probelm in printing tabspace in barcode thro smartforms

    Hi Friends,
    I want to print the Barcode label thro smartforms. My code is as follows,
    I want to use TABSPACE separation in between fields instead of SPACE how do i do this pls guide me for the same. I  am using SAP ECC 5.0 version. So i tried using SEPARATED BY cl_abap_char_utilities=>HORIZONTAL_TAB but i am getting ' # ' sign in it. so pls help how to do it?
    DATA: GT_LINES  TYPE STANDARD TABLE OF TLINE,
    GS_LINES  LIKE LINE OF GT_LINES,
    NAME      LIKE THEAD-TDNAME.
    GS_HD_GEN = IS_BIL_INVOICE-HD_GEN.
    NAME = GS_HD_GEN-BIL_NUMBER.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        CLIENT   = SY-MANDT
        ID       = 'ZFOR'
        LANGUAGE = 'E'
        NAME     = NAME
        OBJECT   = 'VBBK'
      TABLES
        LINES    = GT_LINES.
    IF SY-SUBRC = 0.
      LOOP AT GT_LINES INTO GS_LINES.
        IF SY-TABIX = 1.
          TDLINE = GS_LINES-TDLINE.
          G_STR4 = TDLINE."GS_LINES-TDLINE.
        ELSEIF SY-TABIX = 2.
          G_STR4 = TDLINE."GS_LINES-TDLINE.
        ELSEIF SY-TABIX = 3.
          G_STR4 = TDLINE."GS_LINES-TDLINE.
        ELSEIF SY-TABIX = 4.
          G_STR4 = TDLINE."GS_LINES-TDLINE.
        ENDIF.
        CLEAR GS_LINES.
      ENDLOOP.
    ENDIF.
    DATA  LV_DEPEXNUM LIKE J_1IRG23D-DEPEXNUM.
    GS_HD_REF = IS_BIL_INVOICE-HD_REF.
    SELECT SINGLE DEPEXNUM FROM
    J_1IRG23D INTO LV_DEPEXNUM
    WHERE VBELN EQ GS_HD_REF-DELIV_NUMB.
    DATA: GV_DATE(10).
    WRITE GS_HD_GEN-BIL_DATE TO GV_DATE mm/dd/yyyy.
    DATA : LV_STR(15)." LIKE IS_BIL_INVOICE-HD_GEN-DPEND.
    read condition header data
    gs_hd_kond = is_bil_invoice-hd_kond.
    *reading excise data
    CLEAR: GS_HD_REF, GS_HD_GEN.
    READ TABLE gs_hd_kond INTO gs_hd_kond_w WITH KEY kschl = 'JEXT'.
    LV_STR = IS_BIL_INVOICE-HD_GEN-DPEND.
    read ref data
    GS_HD_REF = IS_BIL_INVOICE-HD_REF.
    read gen data
    GS_HD_GEN = IS_BIL_INVOICE-HD_GEN.
    clear: g_str, g_str1, g_str2, g_str3.
    concatenate
    IS_BIL_INVOICE-HD_REF-PURCH_NO
    LV_DEPEXNUM
    *GS_HD_GEN-BIL_DATE
    GV_DATE
    G_STR4
    LV_STR
    into g_str SEPARATED BY SPACE.
    clear: g_str1, g_str2, g_str3.
    LOOP AT IS_BIL_INVOICE-IT_GEN INTO GS_IT_GEN.
      IF SY-TABIX < 10.
        CLEAR G_STR1.
        g_str1 = GS_IT_GEN-FKIMG.
        concatenate g_str
        GS_IT_GEN-CUST_MAT   " AR ++ 29.07
                  GS_IT_GEN-SHORT_TEXT " AR -- 29.07
        g_str1
        into g_str separated by SPACE.
      ELSEIF SY-TABIX < 9.
        CLEAR G_STR1.
        g_str1 = GS_IT_GEN-FKIMG.
        concatenate g_str
        GS_IT_GEN-CUST_MAT    " AR ++ 29.07
                  GS_IT_GEN-SHORT_TEXT  " AR -- 29.07
        g_str1
        into g_str separated by SPACE.
      ELSE.
        CLEAR G_STR1.
        g_str1 = GS_IT_GEN-FKIMG.
        concatenate g_str
        GS_IT_GEN-CUST_MAT    " AR ++ 29.07
                  GS_IT_GEN-SHORT_TEXT  " AR -- 29.07
        g_str1
        into g_str separated by SPACE.
      ENDIF.
    ENDLOOP.

    Hi,
    There are two types are barcode existing in sap like system barcode and printer barcode. Use Tcode SE73 to create any of those.
    If you want to create your own customized barcode then you have to opt system barcode. Here while creating barcode it will ask whether to create new barocde or copy of existing barcode.
    However by taking into consideration your requirement, you have to create system bar code.
    Goto SE73->System barcode->change-> create new barcode->New barcode technology.
    Here you have to mention barcode name and short text. then supported barcode symbology like C39,C128, code93 etc.
    After selecting any of the symbology, you have to choose Bar Code Alignment: like normal. inverted, etc. Then specify other barcode parameters like height,width, barcode ratio etc.
    Then try to print any text element with this customized barcode as per your requirement.
    Like you can print text element with smartform style, here you can include your customized created barcode in character format. While creating charactor format, give name of your customized barcode in standard setting->name.
    Then print text element by using smartform style.
    Hope this works for you.
    Thanks.......

  • 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

  • Smartform to Print a 2D barcode.

    Hi,
    We are developing a smartform, though which we have to print a 2D barcode. The barcode format required in PDF417, and will be based on data fed into this barcode.
    Problem we are facing is: PDF417 Barcode format is not available in SAP 4.6C. We came across one OSS note which suggests upgrading Kernel Patch to 1615 (4.6D). Client is far behind the current patch level and this is not the workable solution
    Can anyone please suggest an alternate solution for the above problem.
    Thanks in Advance
    Nikhil

    Hi,
    we used SAP Add-on that generates the barcode DMC.
    http://www.suchymips.de/de/rbarc_datamatrix.htm
    I then created the corresponding print programs and Smart Forms.
    Kind regards
    Dietmar Blome
    www.xing.com/profile/Dietmar_Blome

  • 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 Vertical barcode in SAP script

    I want to print barcode related items in SAP script . can you plz tell me any one
    1.How to print vertical barcode in SAP script ?
    2.How to print vertical text in SAP script ?

    1.
    Create the character format in se71, in that select standard barcode. like
    Char.format: C1 Description: Barcode
    Barcode: BC_CD39 save the character format.
    you can select from the list.
    in the form coding, can you use barcode like
    <C1> program variablr <>.
    <C1> &itab-matnr <>.    "--->like this
    Then it shows the barcode in output.
    check this.
    2. for vertical text ..
    if this is a window text then its possible but
    like
    S
    H
    I
    P
    T
    O
    This is possible in giving the window name but in the layout i never tried this.
    If u can tell the scenario(with data reference) then may be i can try but not sure that this will give me hit.
    regards,
    vijay.

  • 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 make use of label printing in sap smartforms

    Hi Dear,
    How to make use of label printing in sap smartforms.. I need to print four records from internal table into sap smart forms. It will
    come as four labels.All page should follow the same procedure... How to do...please help me..
    Regards,
    Nikhil

    Hi,
    Please go through below link, would be helpfull for you.
    [http://help.sap.com/saphelp_nw04/helpdata/EN/6b/54b4b8cbfb11d2998c0000e83dd9fc/frameset.htm]

  • Can i print Storage Unit number as barcode in SAP??

    can i print Storage Unit number as barcode in SAP and also Scan the same number in RF devices.

    Hello,
    yes you can, the solution depends on which printer do you have, if you want to print on laser or label printer.
    Please explain your requirement in more details
    Christophe

Maybe you are looking for

  • Creating a triangle using polygon class problem?

    Hi i am trying to create a triangle with the polygon class. If successful, the user should be able to click on the screen and triangles should appear. private Polygon[] m_polyTriangleArr; MainWindow()   m_polyTriangleArr = new Polygon[15]; class Mous

  • How can i get my text back after loading ios5

    How can I make my text come back after loading IOS 5

  • New iMac 24" 3.06 Apple Logo on front and back.

    I was wondering if the logo on the front and rear of the iMac is supposed to light up.

  • Mapping - Questions

    Hi,    I have few basic questions regarding mappings.    1)  I think we can do everything by using Graphical Mapping. Then what is the purpose for Java, XSLT and ABAP mapping? Please give me an example for this...    2) Which mapping will give better

  • No print spooler

    I lost my print spooler after running mulitple anti-malware programs. How do i reload? Thanks.