cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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.

Thanks

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

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Sandra_Rossi
Active Contributor
0 Kudos

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|http://wiki.sdn.sap.com/wiki/display/ABAP/Printspoolssequentially] if you need references.

former_member233090
Active Contributor
0 Kudos

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.

Thanks,

Rohini