01-16-2008 3:59 AM
Hi,
Please suggest me hoe to print BAR Code in sap script
Thanks,
Malini.
01-16-2008 4:02 AM
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.
Reward points if useful.
01-16-2008 4:04 AM
Go to Character format Tab. Create a character format C1 assign a barcode to this character format C1.Check the checkbox for the barcode.
All the barcodes you will get in Transaction SE73.
Use this character format while displaying your value.
For example for matnr use
<C1> &itab-matnr& </C1>
01-16-2008 4:16 AM
hi
in sapscripts -
create a character format there u can select required barcode format.save and activate that and use the character format where necessary.
01-16-2008 4:41 AM
Select / Create a barcode in SAP using transaction SE73.
Create a character format and include the barcode with it.
The data need to printed as barcode should be attributed via the character format.
e.g. / <BC>&VBAK-WERKS&</>
01-16-2008 5:28 AM
Hi Malini,
For printing Barcode, just Go to Character format Tab.
There create a character format say C1 and then assign a barcode to this character format C1 by choosing the option Barcade given at that screen.
There you can select the type of barcode that you want and its font as well.
All the barcodes you will get in Transaction SE73.
Use this character format while displaying your value as given below.
<C1> &it_vbek-vbeln& </C1>
Here vbeln is the field of your internal table it_vbak.
Reward points, if useful.
Regards,
Nitin
01-16-2008 5:29 AM
Hi
Hope this will help you.
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.
reward if help.,
01-16-2008 6:00 AM
Hi,
Here is typical ZPL code for a label without use of SAPScript.
Note the other example uses field numbers (^FN) to tie the data with field placeholders in the SAPScript.
Device type is usually LB_ZEB, unless you need to support CJK characters, then just use ASCIIPRI.
ASCIIPRI will usually work except some graphics will get messed up if codepage 850 isn't used (LB_ZB is 850).
This example has no graphics. concatenate 'FV' ctl-desc01 'FS' into w_string.
write: / 'XAPON^MMT'.
perform ut_write_offset_as_required.
write:
/ 'FO0,0GB609,406,2,2^FS',
/ 'FO35,043A0N,39,39' no-gap, zfs-matnr,
/ 'FO35,083BY2,2.4,40^B3N,65,N,N,N' no-gap, zfs-matnr,
/ 'FO35,134A0N,28,28FDNOKIA CODE', ctl-desc01, 'FS',
/ 'FO35,164BY2,3,40^B3N,65,N,N,N' no-gap, w_string,
/ 'FO35,214A0N,28,28FDNOKIA TYPE', ctl-kdmat, 'FS',
/ 'FO35,244B3N,65,N,N,N' no-gap, zfs-kdmat,
/ 'FO35,294A0N,28,28FDSerial No.FS',
/ 'FO235,294A0N,28,28' no-gap, ser-serial_sole,
/ 'FO35,324B3N,65,N,N,N' no-gap, ser-serial_sole,
/ 'FO00,374A0N,20,20FB609,1,,CFD', ctl-datecode_ppppmmmyy,
'^FS',
/ 'FO010,374A0N,16FD', ldef-abbrev, 'FS'.
perform wrt_pq_number_of_copies using ctl-curr_lblcnt. "^PQ
ZPL Programming manual is available at zebra.com
Reward points if found helpfull...
Cheers,
Siva.
01-16-2008 10:26 AM
its very easy
first make a character format with barcode format (u will see a drop down box in character format for barcode).
then suppose u have to print ebeln as barcode then writ following code in editor----
<C1> &wa_ebeln& </c1>
here c1 is ur barcode character format
reward points if it proves helpful