cancel
Showing results for 
Search instead for 
Did you mean: 

Printing Lables on Zebra's Z4M using ZPL in SapScript

Former Member
0 Kudos

Hello Everyone,

I've got one major problem. I'm trying to print labels using ZPL-Commands in Sap-Script.

I created a new label as explained in so many posts here: One page, one page window, next page = first page.

I got the ZPL-Code into the SapScript-Form as mentioned in older posts (importing into standard-text. then copy to main-windows of form.).

O.k., everything went fine. And tadaa, I even can print the label out of my quality notification (--> stability study --> storage labels).

O.k., now theres the point I need your help. Is there any idea why there is only one label printed? And not 10 like I wanted to be printed? In SAP-spool there are 10 pages.

Heres the ZPL-Code of my Label:

  • XATA000JSNLT0MMTMNWMTTPONPMNLH0,0JMAPR4,4MD0JUSLRNCI0^XZ

/XALL0281

/^PW799

/FT152,53A0N,45,45FHFDMuster für Stabilitätsprüfung^FS

/FT256,95A0N,23,24FHFD&MAKT-MAKTX&^FS

/FT256,255A0N,23,24FHFD&QPRS-EINLDT&^FS

/FT256,175A0N,23,24FHFD&QPRS-ABORT&^FS

/FT256,215A0N,23,24FHFD&QPRS-KTEXT&^FS

/FT256,135A0N,23,24FHFD&QPRS-CHARG&^FS

/FT40,215A0N,23,24FHFDLagerbedingung:^FS

/FT40,135A0N,23,24FHFDCharge:^FS

/FT40,255A0N,23,24FHFDEinlagerungsdatum:^FS

/FT40,175A0N,23,24FHFDEinlagerungsort:^FS

/FT40,95A0N,23,24FHFDMaterial:^FS

/PQ1,0,1,YXZ

/E NEXT_WINDOW

/* Neues Fenster für nächstes Etikett

/: NEW-WINDOW

I even tried it without the NEW-WINDOW command, but this didn't work either.

Any good ideas?

If you need more information just let me know.

Thanks.

Dirk

25.06.2007: Hey folks. Am I the only one having this problem?

Thanks.

Message was edited by: Dirk Judas --> Push

Dirk Judas

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Everyone,

I've got one major problem. I'm trying to print

labels using ZPL-Commands in Sap-Script.

I created a new label as explained in so many posts

here: One page, one page window, next page = first

page.

I got the ZPL-Code into the SapScript-Form as

mentioned in older posts (importing into

standard-text. then copy to main-windows of form.).

O.k., everything went fine. And tadaa, I even can

print the label out of my quality notification (-->

stability study --> storage labels).

O.k., now theres the point I need your help. Is there

any idea why there is only one label printed? And not

10 like I wanted to be printed? In SAP-spool there

are 10 pages.

Heres the ZPL-Code of my Label:

*

XATA000JSNLT0MMTMNWMTTPONPMNLH0,0JMAPR4,4^

MD0JUSLRNCI0XZ

/XALL0281

/^PW799

/FT152,53A0N,45,45FHFDMuster für

Stabilitätsprüfung^FS

/FT256,95A0N,23,24FHFD&MAKT-MAKTX&^FS

/FT256,255A0N,23,24FHFD&QPRS-EINLDT&^FS

/FT256,175A0N,23,24FHFD&QPRS-ABORT&^FS

/FT256,215A0N,23,24FHFD&QPRS-KTEXT&^FS

/FT256,135A0N,23,24FHFD&QPRS-CHARG&^FS

/FT40,215A0N,23,24FHFDLagerbedingung:^FS

/FT40,135A0N,23,24FHFDCharge:^FS

/FT40,255A0N,23,24FHFDEinlagerungsdatum:^FS

/FT40,175A0N,23,24FHFDEinlagerungsort:^FS

/FT40,95A0N,23,24FHFDMaterial:^FS

/PQ1,0,1,YXZ

/E NEXT_WINDOW

/* Neues Fenster für nächstes Etikett

/: NEW-WINDOW

I even tried it without the NEW-WINDOW command, but

this didn't work either.

Any good ideas?

If you need more information just let me know.

Thanks.

Dirk

25.06.2007: Hey folks. Am I the only one having this

problem?

Thanks.

Message was edited by: Dirk Judas --> Push

Dirk Judas

Hello again,

I solved the problem with a little help from a senior programmer. She told me to set the element /LABEL at the beginning of my textelement in main-windows.

That's what I forgot.

Dirk Judas

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You are telling it to do 10 copies in the ABAP coding right?

Regards,

RIch Heilman

Former Member
0 Kudos

Hi Rich,

usingTransaction QST01 or QM02 (Stability Study) I get asked how many labels I would like to print.

The originally form used is QM_SAMPLE_LABEL1. The form consists of one page with 12 windows (= A4 with 12 Labels). If I use the original form, 10 labels are printed.

Dirk