cancel
Showing results for 
Search instead for 
Did you mean: 

Printing SAP Script in ZEBRA

Former Member
0 Kudos

Hello experts!

I have to develop a SAP Script to print out of LT31.

I already have the printer code (below), but since this is going to be printed from a standard transaction I need to transform this into a SAP Script program.

Can anyone help me out? How do I put this in a SAP Script or SmartForm?

This is the ZEBRA printer code:

^XA

^CW1,R:DOWNLD1.FNT

^CW2,R:DOWNLD2.FNT

^CW3,R:DOWNLD3.FNT

^CW4,R:DOWNLD4.FNT

COY,0MMT^MD+0

^XZ

^XA

PR3FS

BY6,2.5FS

FT65,195BCN,134,N,N,YFD>;12345678901234FS

FT282,233A0N,45,35FD12345678901234FS

FT41,324A0N,37,28FDNO. DE MATERIAL:FS

FT41,392A0N,37,21FDDESCRIPCION:FS

FT487,330A0N,59,65FD200042FS

FT41,522A0N,37,21FDLOTE:FS

FT41,587A0N,62,39FD9876543210FS

FO0,259GB798,0,2,B^FS

FO0,356GB798,0,2,B^FS

FO0,470GB798,0,2,B^FS

FT41,42A0N,37,28FDIUT:FS

FT374,522A0N,37,21FDCANTIDAD:FS

FT378,586A0N,62,39FD540,000.123FS

FT698,589A0N,59,43FDEAFS

FO342,467GB0,129,2,B^FS

FT41,451A0N,59,23^FDLAMIN TP 4S DBLOUT MENTA ^FS

ISSTRNWARE,NFS

^XZ

^XA

ILSTRNWAREFS

PF0FS

^PQ1,0,0,Y

^XZ

^XA

^IDSTRNWARE

^XZ

Thanks a lot guys!

Regards,

Fernanda

Edited by: Fernanda Nunes Ramalho on Jul 13, 2009 8:01 PM

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

I have used to printing commands inside the Z program to print it! It worked fine!

Thanks for all the help!

Former Member
0 Kudos

Thanks guys, let me try this...

=o)

Former Member
0 Kudos

Hi,

I hope ypou know something about sapscript

you have to make a sapscript with only 1 big MAIN window.

In this sapscript you add an /E item

with iin it your zebra commands.

your variables you have to surround with the '&' character

like

/E ZEBRA_DATA

  • XA

  • ^CW1,R:DOWNLD1.FNT

  • ^CW2,R:DOWNLD2.FNT

  • ^CW3,R:DOWNLD3.FNT

  • ^CW4,R:DOWNLD4.FNT

  • COY,0MMT^MD+0

  • ^XZ

  • ^XA

  • PR3FS

  • BY6,2.5FS

  • FT65,195BCN,134,N,N,YFD>;12345678901234FS

  • FT282,233A0N,45,35FD12345678901234FS

  • FT41,324A0N,37,28FDNO. DE MATERIAL:FS

  • FT41,392A0N,37,21FDDESCRIPCION:FS

  • FT487,330A0N,59,65FD200042FS

  • FT41,522A0N,37,21FDLOTE:FS

  • FT41,587A0N,62,39FD9876543210FS

  • FO0,259GB798,0,2,B^FS

  • FO0,356GB798,0,2,B^FS

  • FO0,470GB798,0,2,B^FS

  • FT41,42A0N,37,28FDIUT:FS

  • FT374,522A0N,37,21FDCANTIDAD:FS

  • FT378,586A0N,62,39FD540,000.123FS

  • FT698,589A0N,59,43FDEAFS

  • FO342,467GB0,129,2,B^FS

  • FT41,451A0N,59,23^FDLAMIN TP 4S DBLOUT MENTA ^FS

  • ISSTRNWARE,NFS

  • ^XZ

  • ^XA

  • ILSTRNWAREFS

  • PF0FS

  • ^PQ1,0,0,Y

  • ^XZ

  • ^XA

  • ^IDSTRNWARE

  • ^XZ

success

Gr., Frank

Former Member
0 Kudos

Hi

Copy this into ur Z script and do some changes in the Text editor

for example FT65,195BCN,134,N,N,YFD>;12345678901234FS where 195^BCN are the co-odinates like X Y Z axis

its all trail and error u will get more

i have done the same changing the co-dordinates and inserting some values in between etc etc

surya