Skip to Content
author's profile photo Former Member
Former Member

Label Printing from SAP through Smartforms to Zebra

Hi,

We need to print Labels from SAP to Zebra Printer using Smartforms. we have defined smartstyles with Barcode and have used it in the Smartforms.

We are not able to print labels in the Zebra Printer. Our SAP system is ECC 5.

It will be of great help if somebody gives me the guidelines for doing this. What are all the things we need for the BASIS to set up. They have already set up the printer and it is outputting Labels printed using ZPL II language but not SAP.

Do we need to use Printcontrols and how do we use them.

Thanks

Arunava

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 01, 2006 at 03:10 AM

    Hi Arunava,

    Do you have the correct drivers for smartforms?

    Take a look at the OSS notes: 750772 - Information on the ZPL-II printer driver for SmartForms

    Cheers

    VJ

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 01, 2006 at 03:54 AM

    Hi Arunava,

    To test it from SAP you can try this small piece of code from SAP Scripts I know that your requirement is Smartforms but to make sure that it prints from SAP. You can do this.

    This should go in SE38.....

    data: itcpo type itcpo.

    data: field1(30) type c,

    field2(30) type c,

    field3(30) type c.

    parameters: p_spld type usr01-spld.

    start-of-selection.

    itcpo-tddest = p_spld.

    itcpo-tdimmed = 'X'.

    itcpo-tddelete = 'X'.

    itcpo-tdprogram = sy-repid.

    field1 = 'Test One'.

    field2 = 'Test Two'.

    field3 = 'Test Thress'.

    call function 'OPEN_FORM'

    exporting

    form = 'ZEBRA_DEMO'

    language = sy-langu

    options = itcpo

    dialog = space

    exceptions

    others = 1.

    call function 'WRITE_FORM'

    exporting

    ELEMENT = 'MAIN_ELEMENT'

    window = 'MAIN'

    exceptions

    others = 1.

    call function 'CLOSE_FORM'

    exceptions

    others = 1.

    This should go in SE71 with form name ZEBRA_DEMO....

    /E MAIN_ELEMENT

    / XACWJ,E:MSUNG24.FNT

    / FO100,100AJ,50,50^CI0

    / FDHello Arunava!FS

    / FO100,200AJ,50,50CI17F8^FD &FIELD1& ^FS

    / ^XZ

    This is ZPL II code try running this you should get a label with <b>Hello Arunava</b> and <b>Test One</b> value.

    Thanks & Regards,

    YJR.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Vijay,

      We have got stuck at the SAPscript also.

      We we are doing Test priting through the SAPscript ONLY the worl HELLO gets printed. Rest of the words are not printed.

      Also when we try to Trigger the SAPscript from the Report the Output is not coming.

      Please guide.

      Arunava

  • author's profile photo Former Member
    Former Member
    Posted on Jun 01, 2006 at 06:35 PM

    Hi Anubhav,

    We are doing exactly the same thing what you need to do. We are using third party label software (BARTENDER 7.72 from Seagull scientific) to create label definition and layout. It is very inexpensive software. The SAP variables are used as 'screen data' in Bartender ( string enclosed with & &). The Seagull provides the driver for all kind of printers.

    Once the label design is final, create printer specific template file as ITF file. Upload that file in smartforms. It works like charm.

    Add comment
    10|10000 characters needed characters exceeded