cancel
Showing results for 
Search instead for 
Did you mean: 

ZM400- Zebra print is not coming

Former Member
0 Kudos

Dear All,

I have written a code to take print from Zebra- ZM400 printer, For that I wrote code in SE71

/E MAINTEXT

/ ^XA

/ ^MD10

/ ^MNY

/ ^XZ

/ ^XA

/ LH0,0FS

/: FO140,66A0N,27,23CI13FRFDBKE-AA201275FS

/: BY2,3.0FO87,05BAN,59,N,Y,YFRFDBKE-AA201275FS

/: FO593,66A0N,27,23CI13FRFDBKE-AA201276FS

/ FD&SERNO1&FS

/: BY2,3.0FO508,05BAN,58,N,Y,YFRFDBKE-AA201276FS

/ FO1,1FD ^FS

/ LH0,0FS

/ ^XZ

_______________________________________________________________

BKE-AA201275 is my hard code value. After I execute my Zprog 3 pages are coming blank.

Requirement: I want hardcode value to be print in ZEBRA format.

Please help me to resolve this issue.

Waiting for positive reply.

Regards,

Accepted Solutions (1)

Accepted Solutions (1)

Sandra_Rossi
Active Contributor
0 Kudos

> /: FO140,66A0N,27,23CI13FRFDBKE-AA201275FS

> /: BY2,3.0FO87,05BAN,59,N,Y,YFRFDBKE-AA201275FS

> /: FO593,66A0N,27,23CI13FRFDBKE-AA201276FS

> / FD&SERNO1&FS

> /: BY2,3.0FO508,05BAN,58,N,Y,YFRFDBKE-AA201276FS

Please replace /: (means SAP command, it won't be output to printer) by /

You could have find that problem by displaying the spool content in raw mode: you would have seen that everything is sent to the printer except these lines

Former Member
0 Kudos

Thansk for reply,

We tried the following code but didn't get the output could you please tell us what is the problem in following code

MAINTEXT

^XA

^MD10

^MNY

^XZ

^XA

LH0,0FS

FO140,66A0N,27,23CI13FRFD&SERNO1(12)&FS

FO593,66A0N,27,23CI13FRFD&SERNO2(12)&FS

FO593,66A0N,27,23CI13FRFD&SERNO2(12)&FS

BY2,3.0FO87,05BAN,59,N,Y,YFRFD&SERNO1(12)&FS

BY2,3.0FO508,05BAN,58,N,Y,YFRFD&SERNO2(12)&FS

BY2,3.0FO508,05BAN,58,N,Y,YFRFD&SERNO2(12)&FS

BY2,3.0FO87,05BAN,59,N,Y,YFRFD&SERNO1(12)&FS

FO593,66A0N,27,23CI13FRFDBKE-AA201276FS

BY2,3.0FO508,05BAN,58,N,Y,YFRFDBKE-AA201276FS

FO1,1FD ^FS FO5,1FD ^FS

LH0,0FS

^XZ

Sandra_Rossi
Active Contributor
0 Kudos

please paste the RAW content of the spool (ctrlshiftF10 to choose display in RAW mode)

Thx

Clemenss
Active Contributor
0 Kudos

Hi Mehul,

follow what Sandra said.

MAINTEXT was a sapscript text element which is triggered by sapscript control program. In the first column of the sapscript you should press F1 to learn more...

Regards,

Clemens

Clemenss
Active Contributor
0 Kudos

Mehul,

I don't know where you take the code from.

^XA starts the format, ^XZ closes it. So i don't see a reason to have that multiple

You can check the contents of field data &SERNO1(12)& and &SERNO2(12)& at runtime using the sapscript debugger.

The code you posted first looks quite OK except that /E MAINTEXT is a sapscript text element that has to be triggered in the forms program (function START_ELEMENT). / in the format column just means newline. The, randomly, you use /: in the format column and the command seems to be a valid ZEBRA command sequence. This will never work because /: exoects a valid sapscript control command after that.

The best way is to go to the zebra page, make a free registration and get [ZebraDesignerSAP.exe|http://www.zebra.com/id/zebra/na/en/index/service_support.html]

Regards,

Clemens

Answers (1)

Answers (1)

Clemenss
Active Contributor
0 Kudos

Hi Mehul,

I remember we has pretty good results downloading and using software for the printer (exact model specified!) from the zebra web page.

Print to the spool without immediate print and check what the ouput (in raw format) looks like.

Regards,

Clemens