Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BARCODE in SAP Script

Former Member
0 Likes
2,944

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

12 REPLIES 12
Read only

ibrahim_u
Active Participant
0 Likes
1,745

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.

Read only

Former Member
0 Likes
1,745

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

Read only

0 Likes
1,745

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

Read only

0 Likes
1,745

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

Read only

0 Likes
1,745

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

Read only

0 Likes
1,745

hi

everything you did was correct

but you forget one thing add *

then it will gives you the output

like &yourfield&

Regards,

Phani

Read only

0 Likes
1,745

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

Read only

Former Member
0 Likes
1,745

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

Read only

Former Member
0 Likes
1,745

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.

Read only

0 Likes
1,745

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.

Read only

Former Member
0 Likes
1,745

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

Read only

Former Member
0 Likes
1,745

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