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

SmartForm Barcode Label To Zebra Printer-How To Cut/Tear Cmd In One Spool?

I am trying to print barcode labels from a SmartForm to a Zebra ZM400 Label Printer with a cutter installed. I am passing the number of copies to the form. In my case, it is 12. I need 12 labels to print and after the 12th label a cut to occur.

It seems that I am only able to issue one command per spool file. The only way I have had any success is to call the form with copies = 11 with the form and a hardcoded command of S_LZPL_SETUP_PM = 'T' for tear and then call a copy of the form with a copy of 1 with a command of S_LZPL_SETUP_PM = 'C'. The S_LZPL_SETUP_PM command is directly in the Smartform and hardcoded. Form1 has a T command with 11 copies and Form2 has a C command with 1 copy hardcoded appropriately.

The problem is that I get two spool files by doing this and when rapidly sending data to the printer, the spool files get out of sequence and the labels don't come out in groups of 12 with a cut.

Has anyone had this requirement before and if so, how were you able to cut your labels accordingly within one spool file.


Edited by: Randy Dyer on Mar 17, 2010 5:25 PM

Edited by: Randy Dyer on Mar 17, 2010 5:36 PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Mar 17, 2010 at 09:51 PM

    I don't know if you have 1 or more spool work processes defined in your SAP system. If you have 2 or more, you may use the "print spools sequentially" option in the output device. It won't work if the programs which generate the spools are run parallely and there's a COMMIT WORK between each spool, unless you COMMIT WORK once after the 2 spools or use the lock concept to make parallel processes wait until the couple of 2 spools are both committed.

    I created this wiki about the topic of [printing spools sequentially|] if you need references.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Randy/Sandra Rossi.

      I have a similar requirement,hope one of you may help me in getting this requirement.

      How to work on the cutter in smartforms with barcode label to zebra printer.

      I know about the S_LZPL_SETUP_PM = 'C' but how to use this and where to add the number where the cutter should be trigger... help me out.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.