cancel
Showing results for 
Search instead for 
Did you mean: 

barcodes

Former Member
0 Kudos

Hi,

Can anyone explain hot to generate barcodes in scripts as well as in smartforms so that I need to represent such a barcode in abox.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Go to T-code SE73(for barcode)

here you find out system defined barcode and you kan also define customizing barcode.

go to SE71 for script and click on Character format tab.

there is a option says barcode (here you can attache your barcode)

now go to widow where you want to print barcode

go to text editor and write in this way

ex:

<B> &itab-vbeln&<\B>

Hence you can print barcode

Thanks

Edited by: Ankur Sharma on Jun 5, 2008 7:05 AM

Edited by: Ankur Sharma on Jun 5, 2008 7:05 AM

Answers (6)

Answers (6)

Former Member
0 Kudos

I am new to SAP printing so bare with me. I need to know if the SAP postal codes can be printed to a PS printer only. What I mean by this is the printer will only print postscript files. The data sheet prints but it will not print the SAP postal barcodes because the barcodes that I have are PCL.

Is there a PS version barcodes that I need to know about?

Former Member
0 Kudos

Hi Sandeep,

Transaction for Barcodes is SE73

What is a BARCODE ???

http://www.sap-img.com/abap/details-information-about-sap-barcodes.htm

Printing Bar Codes

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

hopefully these link would provide u some useful info about BARCODES.

Regards with Points if you find this info helpful.

Regards

Karan

Former Member
0 Kudos

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.

for your reference check the below links:

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

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

for smart, please check the below link:

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

See the below program forbarcode in sapscript for your reference:

DATA: BAR_CODE1(16) VALUE `ABC01230123A01'

NEW-PAGE PRINT ON IMMEDIATELY `X'.

FORMAT COLOR OFF INTENSIFIED OFF.

If the barcode is the first element on the page, the following Write

statement is needed (otherwise you get a date in the first print

control.

WRITE:/

Turn on the barcode font, print the data, and switch back to the

printer's default font. Be sure to use NO-GAP to avoid unwanted

characters or CR/LF.

PRINT-CONTROL FUNCTION `BCPFX'

WRITE: BAR_CODE1 NO-GAP

PRINT-CONTROL FUNCTION `BCSFX'

Add a Write statement to prevent insertion of CR/LF into the barcode.

WRITE:/

Sample SAPSCRIPT

Variable BAR_CODE1 contains the barcode data, including asterisks.

The & is needed to avoid unwanted spaces or CR/LF characters

/E LINE

/: PRINT-CONTROL BCPFX

= &BAR_CODE1&

/: PRINT-CONTROL BCSFX

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

A barcode solution consists of the following:

a barcode printer

a barcode reader

a mobile data collection application/program

for more information follow this link.

http://www.sap-img.com/abap/details-information-about-sap-barcodes.htm

http://www.tec-it.com/asp/main/startfr.asp?mainmenu=Software&sbmenu=Software_BCSAP&content=&redirect...

http://www.erpgenie.com/interfaces/index.htm

Creating Bar code:

-->From trans 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

--> 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.

SAP Barcodes

-->Barcode solution consists of the following:

barcode printer

barcode reader

mobile data collection application/program

regards.

Former Member
0 Kudos

Simple way:

in SMARTSTYLES, create character format and paragraph format. and for character format provide the barcode u created in SE73 or the barcode type u want.

In SMARTFORMS: provide the style created in SMARTSTYLES.

and provide the paragraph format and character format in Editor.

PR < BC > &itab-matnr& < / >

PR : paragraph format

BC : character format for Barcode.

remove the spaces and provide the variable in between *

*******************************************************************

Elabarated way:

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

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.

Reward points..

Former Member
0 Kudos

Hi,

Barcodes are nothing but the character formats in scripts.

Go to SE73 --> select system barcodes and display.

You find many system barcodes in it.

give this barcode in the character format in your script.

Reward Points if useful

Thanks & Regards

Rajini Rajuladevi

Former Member
0 Kudos