cancel
Showing results for 
Search instead for 
Did you mean: 

Problem printing horizontal text in smartform with zebra Z6M label printer

Former Member
0 Kudos

hello,

The situation is this:

There is a Z smartform wich prints a label to a zebra Z6M label printer with the text and barcodes vertically.

The form have a command in the main windows with the parameter: S_LZPL_SETUP '^FWR'

This label works fine, but the client want to change the form, they have told me to create a new smartform and print the info horizontally, using the same printer.

The tests i have done are the following:

create a smartform from ground and write a template text and a barcode with a new font of system barcodes. the bardoce is shown ok(it is shown horizontally), the problem is that the template text is shown vertically, as in the original smartform.

then i tried on another zebra ZM600 label printer, similar model, but not the same, and the smartform printed was ok (text and barcodes shown horizontally). So i think is a configuration setting problem, but i dont know where to search.

i have checked the label printer parameters in SPAD, but didnt find anything souspicios.

have you any idea?

thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Sometimes this could happen because of the printer settings, you can consult you Basis team they can help you in doing printer setting for you.

Regards,

SR

Answers (4)

Answers (4)

Former Member
0 Kudos

Hello,

Restarting the printer solved the problem.

Former Member
0 Kudos

Hello Patrik,

The barcode is printed out ok, horizontally as needed, the problem is the text, which by default is been printed vertically.

i have done the following tests:

-i have printed the smartform using printer Z6M by selecting the printer as a registered printer in SAP, and the text comes out vertically but i want it to be printed horizontally.

-then i have printed the smartform with the same printer, not as a sap registered printer but as the local printer, previously i have installed the printer to my windows machine. and the smartform is printed correctly ( with the barcodes and the text horizontally )

so i assume is a sap printer configuration setting, but i cant tell precisely.

thanks for your help.

Former Member
0 Kudos

I am not sure, since basis is not avialable at you place, try the following.

Goto SPAD and output devices, make sure you select your output devices, and goto output attributes tab, and chage the values of horizontal move and vertical shift under "additional SAPscript and smartform information". Use F1 help for more information.

Regards,

SR

Former Member
0 Kudos

Hello NSR REDDY,

thank you for your answer, the basis consultant is not available, do you know any useful transaction to view the config parameters? does exist a printer parameter that sets the text vertically as default?

thanks again.

Former Member
0 Kudos

See these if they be of any help.....

BARCODE:

goto smartform styles-> create a style-->

create a character format.

under standard settings give the bar code name

use this style in ur smartform. select the data field which u want to barcode print and assign the character format

Similarly

SAPSCRIPT

open the form and click the character format button and

repeat the step as above....

http://help.sap.com/saphelp_nw04/helpdata/en/68/4a0d5b74110d44b1b88d9b6aa1315b/frameset.htm

Go to Character formate in your form.

create a new char formate with enable BAR code AND

you can give its type too.

To Create a Bar code prefix:

1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save

2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix

Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.

The place where you are using the field value use like this

<C1> &itab-field& </C1>.

You will get the field value in the form of barcode.

Which barcode printer are you using ? Can you download this file and see.

http://www.servopack.de/Files/HB/ZPLcommands.pdf.

It will give an idea about barcode commands.

Check this link:

http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm

Check this link:

http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm

Hope this link ll be useful..

http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm

go through these links and cose u r previous threads,

http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm

http://www.erpgenie.com/abap/smartforms.htm

http://sap.ittoolbox.com/groups/technical-functional/sap-basis/print-barcode-with-smartform-634396

http://sap.ittoolbox.com/groups/technical-functional/sap-dev/printing-barcode-733550

Detailed information about SAP Barcodes

A barcode solution consists of the following:

a barcode printer

a barcode reader

a mobile data collection application/program

A barcode label is a special symbology to represent human readable information such as a material number or batch number

in machine readable format.

There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.

You can print barcodes from SAP by modifying an existing output form.

Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.

Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.

Creating Bar code:

) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save

2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix

Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.

The place where you are using the field value use like this

<C1> &itab-field& </C1>.

You will get the field value in the form of barcode.

Check this thread for detail information.