2D barcode - PDF417 in ZPL printer

Hello All,
I am trying to print 2D barcode in PDF417, using the below code.
CONCATENATE '[)>' '1E' '06' '1D' 'P' w_partno
  '1D' 'Q' w_quantity
  '1D' 'V' w_supplier
  '1D' 'D' l_date
  '1D' 'M' w_serial
  '1E' '04'
  INTO w_2d.
The barcode was printing fine. But now the client requirement is to use the seperator as 'chr(30)' intsead of 'ID'.
Similarly 'chr(29)' instead of 'IE'. we tried changing that and now it is not printing the 2D barcode as the number of characters is exceeding.
In the SPOOL i can see all the characters, but 2D barcode is not printed. 
W_2d is defined as string to accomodate more characters but still not sure why it is not printing.
Also, when we remove any fields or reduce the number of characters then we can see the barcode is printing fine. not sure with the problem happening. Can anyone help us here..
Regards,
T.....

ZPL manual gives an example: [)>_1E01_1D961...
1E and 1D must be preceded by the hex escape character indicated in the preceding ^FH command (_ is the default escape character)

Similar Messages

  • 2D Barcode (PDF417) in Smartforms

    Hi Gurus,
    I have a Smartforms with 2D-Barcode (PDF417).
    I have to use header, field separators and foot into the barcode ( [)>, RS, GS, EOT...).
    I define these separators like this:
    CONSTANTS:
    c_head VALUE '\0X5B\0X29\0X3E',       " Complience Indicator
    c_rs   VALUE '\0X1E',                 " Format Trailer Character
    c_gs   VALUE '\0X1D',                 " Data Field Separator
    c_eot  VALUE '\0X04'.                 " Message Trailer
    and then fill my barcode variable like this:
    CONCATENATE
    c_head c_rs '06'              
    c_gs '12SGTLVWAG01'      
    c_gs '2L'   gv_werk_empf    
    c_gs '1L'   label_data-ablad 
    c_gs        gv_license_plate  
    c_gs 'P'    label_data-kdmat   
    c_gs 'Q'    gv_vemng       
    c_gs 'B'    label_data-vhmku  
    c_gs 'V'    label_data-eikto   
    c_gs '12S'  label_data-vbeln  
    *c_gs '1T'   label_data-charg  
    c_gs c_rs c_eot 
    INTO gv_pdf.
    The problem is, when I scan my barcode I have the \ separator, and I can't delete it...
    \06\12SGTLVWAG01\2L22\1L001X1\1JUN341382615100348063\P 0B1 200 345 E\Q1\B106925\V261988\12S0063397339\\
    Any idea how I can delete this \ ?
    Regards,
    David

    SAP ABAP Code to Generate PDF417 Barcodes
     Preparing SAP data to be printed as a linear barcode can be a pain at times; when 2D barcodes with proper field separators are required the pain factor goes up. Most of the problems come from trying to convince SAP to assign non-printing control characters to the output variable. So, I have written a small example which demonstrates both how to generate a PDF417 barcode and the steps required to assign special characters to a string in ABAP. SAPscript cannot handle 2D barcodes, so this code will only really work in SmartForms. 
    DATA: gv_pdf417 TYPE string, 
          gv_date_old TYPE likp-wadat,
         gv_serial TYPE num9,
          gv_kdmat TYPE vwahn-kdmat,
          gv_meng TYPE char10,
         lf_masterorsingle TYPE char3,
          lf_hex_rs TYPE x LENGTH 4 VALUE '001E',
          lf_hex_gs TYPE x LENGTH 4 VALUE '001D',
          lf_hex_eot TYPE x LENGTH 4 VALUE '0004',
          lf_char_rs TYPE c,
          lf_char_gs TYPE c,
          lf_char_eot TYPE c.
    FIELD-SYMBOLS: <lfs_rs>,
                   <lfs_gs>,
                   <lfs_eot>.
    WRITE is_wahn-wadat TO gv_date_old yymmdd.
    WRITE is_wahn-exidv+11(9) TO gv_serial.
    " Get non-printing control characters set
    ASSIGN lf_hex_rs TO <lfs_rs> CASTING TYPE c.
    ASSIGN lf_hex_gs TO <lfs_gs> CASTING TYPE c.
    ASSIGN lf_hex_eot TO <lfs_eot> CASTING TYPE c.
    lf_char_rs = <lfs_rs>.
    lf_char_gs = <lfs_gs>.
    lf_char_eot = <lfs_eot>.
    " Master or single label
    IF is_wahn-zzmastersingle = 'M'.
            lf_masterorsingle = 'M'.
    ELSE.
            lf_masterorsingle = 'S'.
    ENDIF.
    CONCATENATE
    '[)>' lf_char_rs
    '06' lf_char_gs
    'P' gv_kdmat lf_char_gs
    'Q' gv_menge lf_char_gs
    'V' gv_lifnr lf_char_gs
    'D' gv_date_old lf_char_gs
      lf_masterorsingle gv_serial
      lf_char_rs lf_char_eot
    INTO gv_pdf417.
    If all goes well, then the variable gv_pdf417 should contain a string like the one below (the characters in the angle brackets are the hex codes for the control characters). In SmartForms the variable should be output in a text area with using the PDF417 barcode character formatting (your basis team will have to install it if it is not already available). The barcode at the top of page is generated from the string below.

  • Barcode is not getting printed in the SmartForm

    Hi All,
    I am trying to print BARCODE in a SMARTFORM but it is not getting printed.
    I have created a barcode ZTest_Barcode from the transaction SE73. Then I have created a Character Format C1 with this barcode ZTest_Barcode.
    In the SmartForm I have applied this character format like this <C1>&WA_VBAK-VBELN&</C1>.
    But in the preview of this SmartForm barcode is not getting printed while this field is printing like <C1>220<C1>.
    I have also tried with some SAP barcodes like BC_CD39, C128A_01, etc. But the result is same.
    Please help me to resolve this issue.
    Regards,
    Avaneet

    hi avaneet,
    check this site for barcode.
    http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm
    it may help you.
    thanks
    Sachin

  • Barcode is not getting printed in Sapscript

    Hi,
    I want to print the PO as barcode in my Script. I have converted the output to PDF format
    I have created a character format for this and given C128A as Barcode and used this character format to print the barcode. but the barcode is not geettting printed in the PDF output. the PO is blank.
    Did i miss anything in the process?
    Please let me know the exact procedure for printing the Barcodes.
    thanks
    Rakesh

    hi,
    There're differents solutions for the creation and print BARCODEs . All of them have the same problem : When you create a spool from a form/smartform with Barcodes, it's not possible to convert the spool to a PDF file because the BARCODE is created at the time of printing.
    just try printing one copy and see.
    ags

  • Printing Barcode in Dot Matrix Printer

    Dear Experts,
    We have developed Smart form to print Barcode and it's printing fine in LaserJet printer & readable by the scanner,  We need it on Dot Matrix printer for (multiple copies) and tried the same with Dot Matrix printer it use to print but not readable with scanner.
    SAP Transaction - MIGO (GI Posting)
    Dot Matrix Printer - Epson DFX9000  & Oki data PACEMARK 4410
    Please help me to Print Barcode in Dot Matrix printer through Smart form.

    There is something I don't understand: if the barcode printed is visually correct, and exactly the same as with a laser printer, why do you want it would be better with a PDF (especially on a dot matrix printer).
    Could you also tell us what symbology you use, and do you use smart form new barcode technology?

  • Print barcode label from sato printer

    hi everybody,
    i am trying to print barcode label from sato printer (CL408e) in code 128 or code 39 format. the length of my data is 32 characters and my data contains alphanumeric. but i have no printout or the printout is not proper. i think my command structure is not correct.
    can you help me to solve this problem.
    thanks everybody.

    Hi Mohit
    Look for the similar kind of thread
    Printing barcode labels with SAP ECC 5.0
    Regards
    Sachin

  • Can 2D BarCode (PDF417) be generated in Reports?

    Is it possible to generate 2D barcode (PDF417 spec) using Oracle Reports? What should I do in order to generate barcode?
    Thanks,
    Dejan Bogojevic

    Thanks for your answer, but that is not helping me generate 2D BarCode (Spec PDF417) as I mentioned before.
    Thanks,
    Dejan

  • Paper Form Barcode (PDF417)

    All
    Anyone can please tell me that what is the maximum data length we can embed in a Paper Form Barcode (PDF417)?
    In case of any queries, please feel free to contact me.
    Thanks in advance.
    Syed Hussain Itiba Naqvi

    Hi Scoot ,
    I need little help on 2Dbarcodes
    as per my understanding we have less then 800 character limit for barcode ,
    do we have any impact of duplicate data on barcode ?
    because when  i gave same input to the barcode and scan it ,i dont find any data in it ?
    for example: i gave  "9" character 6000 times , which almost generates more  8 barcodes, but when i scan the barcode i dont find any data in it .
    can you please help out  whats the issue with it ?
    you can mail me on my id :[email protected]
    Thanks,
    Satish Shirahatti

  • Problem with printing barcodes to a Zebra printer via Smartform

    Hi
    I am trying to create a printed label from smartforms, being directed to a zebra printer.  The label must include a barcode.
    Via oss notes 750002 and 750772 I have imported the LZEB2 device type.
    In SE73 I have created a system bar code on the new technology.
    In the smart form style, I create a character type with this barcode font.
    The barcode prints okay and can be read when it has up to 10 characters.
    However we need a long bar code of appoximately 22 characters.
    I can find no supported barcode type which will let me write a barcode of this length
    The max length in the smartform style for the barcode format is always coming up as 50mm which is too short.
    I have tried with using a printer bar code prefix and suffix with the native zebra ZPI-II commands, attaching to command nodes on either side of the text node in the smart form,  But this does not seem to work.
    Any advice ?
    Thanks

    sounds like the variable containing the barcode data is too short...is it at least 22 characters long?

  • Barcode related Template output Printing Junk characters  in XML Publisher

    Hi Gurus,
    Could you please help me out..
    I have a bar code related Template and registered to Concurrent Program(i.e. Report type as Executable) and i run the Program in PDF Output.
    I am using free "3 of 9 font" for Bar code in my template
    Problem Occurrence Procedure
    1) When i submit the Concurrent Program and Click the View Output Button
    2) the out put looks good with Bar code and Text in Table Format.
    3) when i assign a printer, while Concurrent Program Submission then the printer prints output with Junks Characters and no data in it.
    4) if i save the PDF Output file in Desktop and give print then it prints Good with barcode and text in Table Format.
    The main problem is when printer is assigned to the Concurrent Program while submission of Request then the Printer output is printing Junk Characters but through View Output Button in Request Window we get Barcode Output Good with data in it
    Could you please give me the Solution in Step by step Procedure
    It would be grateful to me..
    Thanks,
    Vijay

    Hi Schavali,
    Ours Database Server
    RDBMS : 10.2.0.4.0
    Oracle Applications : 11.5.10.2
    OS:- IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio
    If you are using UTF8, direct PDF printing is not supported. Has the barcode font been installed ?
    i am using free 3 of 9 bacode font..
    Could you please give me the step by step procedure for printing the Output with barcode labels..
    Thanks,
    Viajy

  • Crystal Reports 8.5 and Barcode field on Postscript printer

    Hi, I have a Crystal 8.5 document with a barcode Code128 inside (Azale font). If I print the document on a PLC printer using Azalea Truetype font the Barcode are printed. If I print the document on a PostScript printer the barcode are not printed. If I change font with PostScript version and I print on a PostScript printer the barcode are not printed to.
    If I print the same document with Crystal 2008 the barcode are printed in both case.
    There are some problems in Crystal 8.5 for Postscript print ?
    thanks Filippo

    Could be, all I can suggest is you go to the download page and install all patches available for CR 8.5. Click on the Businessobjects tab above and the Crystal Reports and then the link to get downloads.
    IF that doesn't resolve the issue you may want to get the latest print drivers for your printer. If that still doesn't fix the problem then you have no option but to upgrade and try again. Cr 8.5 is 10 years old, no new updates available now.
    Thank you
    Don

  • Barcode in Evergreen Check Printing

    Hi,
    I would like to print postal barcodes on the Evergreen check printing report.
    Can someone throw some light where to start ?.
    Thanks in advance,
    Robert

    Robert,
    I never used any bar codes in my report, so not sure what issues can arise on the way. But basic s/w requirement is to have report builder and preferably 10g (10.1.2.x). And this is the starting point. Other instructions are given in the link how to setup the report builder or report for java beans.
    Hope this helps.
    FS

  • Barcode and PDF document printing in SAP MII

    Hi All,
    I am using SAP MII 15.0, one of my requirement is to print the Barcode and PDF file automatically.
    I have came across the link below which tells to print the label
    http://scn.sap.com/community/manufacturing/mii/blog/2014/08/17/industrial-label-printing-with-mii
    In the above document, I can send only the string as a message in the PCo query CALL SEND(address=’127.0.0.1’, port=’20000’, message=’Hello World’);
    Is that possible to send the document to the printer?
    I am using the PDF action block.Can any one tell me how to print the document automatically?
    Also, if my printer is connected to client, how it can be printed from client PC?
    Regards
    G.P

    Hi chris,
    I have to do via SAP MII and their is no other option.
    In the above document, I can send only the string as a message in the PCo query
    CALL SEND(address=’127.0.0.1’, port=’20000’, message=’Hello World’);
    Is that possible to send the document from MII?
    Is there any command like below for pushing the document to the printer so that it will be useful?
    CALL SEND(address=’127.0.0.1’, port=’20000’, message=’Hello World’);
    Also please let me know any idea of printer used, which will help ?
    Regards
    G.P

  • BARCODE PREVIEWING BUT NOT PRINTING

    Hi GURUS / EXPERTS;
    I have created a SAP SCRIPT FORM and Driver program for BARCODE Printing. Now my problem is that the
    BARCODE is appearing on screen (Preview), but when print system print numbers instead of BARCODE.
    Steps carried out: IN SE73: Create a SYSTEM BARCODE WITH NEW TECHNOLOGY, check the preview, it is OK.
    IN SE73: SAP SCRIPT FONT MAINTENANCE: Defined the prefix & Suffix (SBP26 & SBS02) for that BARCODE & DEVICE.
    IN SE71: created a character (BC) reich check the check box (Selection) and select the barcode.
    Use that character in script as    <BC> &T_BAR-CHARG&</>
    in SE38: use the driver program to call the script form: IT DISPLAY THE BARCODE, BUT WHEN GIVE THE PRINT- PRINTING THE NUMBER. 123456 - Where 123456 is the value of T_BAR-CHARG.
    Please help. or suggest where I am wrong.
    Thanks in advance.
    DSC.

    Hi,
    It is correvt that the new barcode technology is only supported via smartforms, see SAP Note #645158.
    With sapscript, your printer must have barocde fonts installed.(see SAP note 45643)
    Another solution is to print via a Windows system with a windows device type like SAPWIN or SWINCF and a barcode.dll.(see SAP note #14561)
    Regards,
    Aidan

  • Confusion with the use of PDF417 Barcodes

    I am trying to get clarification on what is required to utilize the Acrobat Designer to create a form that creates a PDF417 barcode. Here is the scenario:
    We would like to create a form with Designer (bundled with Acrobat 7.0 Professional)that will be used as an index sheet for a document scanning system.
    The form would contain one or more fields that a user would complete using the standard Acrobat 7.0 Reader that they can download from Adobe. When the user completes the data entry into the fields, they will print out the form (containing the 2D barcode (PDF417).
    The form would be scanned and put through recognition software that is supposed to ready PDF417 2D barcodes.
    I have read through the literature and have seen inconsistent representations regarding the ability of a user to use the Acrobat reader to complete the form and print it with the PDF417 barcode.
    In one of the forum postings a user was told that they needed certain decoder software from Adobe or extensions.
    I am not clear if the user filling out a form using Acrobat 7.0 reader, which generates the PDF417 barcode supposedly, can be read by an application which supports that barcode type. Or, if this is a special type of PDF417 barcode that has some additional attributes that requires special software from Adobe to be recognized.
    Please explain how I accomplish the objective set forth above.

    Mike,
    It looks like I scanned over your email a little too quickly and missed a
    VERY important point. You mention that your form will be "bundled with Acrobat 7.0 Professional". This is VERY important.
    In fact, you will need to license nothing else from Adobe. You DO NOT need Reader Extensions because you are deploying Acrobat Professional on the work stations that will be filling in your forms. You do not need to "turn on" hidden functionality of the Free Reader if you are using Acrobat Pro. You already have all the functionality you need.
    Second, when you fill in a Barcoded Form with Acrobat Professional the PDF417 Barcode that is rendered in your form will be a 100% standard PDF417 Barcode. But do not turn on compression. When filled in - in Acrobat - the Barcode is rendered so that it can be read by ANY Decoder that can read PDF417. However, if you enable compression you will need to use the Adobe Decoder. If you start decoding and see you are getting lower than a 99.9% decode rate, take a look at buying the Adobe Decoder. Not the whole "Barcoded Forms" license, just the Decoder.
    Again,
    if you are using Acrobat to fill in these forms, you have nothing else to buy. If you want to deploy these forms with the Free Reader then you will need to license Adobe LiveCycle Barcoded Forms and possibly ARES.

Maybe you are looking for