‎2006 Dec 26 12:47 PM
Hi All,
I have to add a BAR CODE in SAP Script and pass the bar code data in bar code.
Could you please help me to know the step by step solution for this query as i have no idea how to add bar code in Sap Script.
Thanks in advance.
Piyush Mathur
‎2006 Dec 26 1:03 PM
First of all, you must install the Barcode font in SE73,
And then, in character formats section of sapscript form, create new character format and type your installed Barcode name into Barcode field in Standard section of character format.
Now you can you this character format to print out barcode.
Dont forget to install Barcode drivers into SapLPD server.
‎2006 Dec 26 1:09 PM
Hi Piyush,
Go to character format and create one character format and in the options select the printer type and assign this character format to the Field for which you want to have the barcode printed.
Note: Whatever the printer u r assiging should be able to print barcode.
Regards,
Kannaiah
‎2006 Dec 28 4:23 AM
Hi All,
I try the following approach to populate the BAR CODE.
First I create a Paragraph MD.
Second, i create a character format MD and associate BAR CODE with the character format.
After this, we modify the script for TOP as follows :
<MD>&MSEG-MBLNR&</>/
But when i check the print preview, it show only data not BAR CODE.
I do not know why the data is not convert into BAR CODE.
Please let me know, if I am missing any step.
Thanks
Piyush Mathur
Thanks
‎2006 Dec 28 6:35 AM
Hi All,
One more issue, when i test a newly created BAR CODE using transaction SE73 and take print out, i am able to view the BAR CODE on print out but when i use the same BAR CODE in script, it shows only data not the BAR CODE.
Please help me to solve this issue.
Thanks
Piyush Mathur
‎2006 Dec 28 6:40 AM
Hi Piyush,
In the character format tab where you are assigning the barcode to the character format there is one check box 'Selection' check it.In the Sapscript text window wirte <MD>&mseg-mblnr&</MD>.It will print the barcode
‎2006 Dec 28 2:40 PM
hi
everything you did was correct
but you forget one thing add *
then it will gives you the output
like &yourfield&
Regards,
Phani
‎2006 Dec 29 9:50 AM
Hi Phani,
Thanks for response.
Well, i also try the same approach but did not get the required result.
When i take the print out, it does not print data but it shows BAR CODE in spool preview.
I try to forward the spool preview in mail andnits generate a PDF file.This file show the BAR code but when i try to read the bar code, i was not able to get the data.
Thanks
Piyush Mathur
‎2006 Dec 26 1:43 PM
hi piyush
First of all, you must install the Barcode font in SE73,
And then, in character formats section of sapscript form, create new character format and type your installed Barcode name into Barcode field in Standard section of character format.
u can define variable in ur program for barcode,use control break event in ur program also write logic for variable as per ur calculation for barcode and also u can write variable under barcode window text
Now you can you this character format to print out barcode.
Dont forget to install Barcode drivers into SapLPD server.
thanks
deepak
‎2006 Dec 26 1:45 PM
Create a character format in the SAPScript.
Choose the Bar Code for the character format.
And finally to display barcodes, in the command enter:
<C1>&vbeln&</>where C1 is the character format created and vbeln is the variable for which the barcode is to be created.
Cheers.
‎2006 Dec 26 2:47 PM
You can create the barcode block by block, using the box command: something like:
/:BOX XPOS '0' CM YPOS '0' CM FRAME 30 TW WIDTH '1.20' CM
HEIGHT 0 CM
Rolf.
‎2006 Dec 29 10:26 AM
Hi Piyush,
In Trxn SO10, give this Standard Text SAPSCRIPT-BARCODETEST, try printing this on your printer...
If you had selected the correct barcode type while defining ur Character format and could see in preview, its the printer problem for not able to print it... you need proper drivers for printing barcodes...
Regards,
Raj
‎2006 Dec 29 11:12 AM
Hello fellows,
what about the dependencies of the printer.
SAP Script alone seems to be not enough !
Does anyone knows how to update firmware of the printer?
BR, Volker