Application Development 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: 

Print barcode into sapscript

Former Member
0 Kudos
1,172

Hi Guys !

I've tried to print barcode into a sapscript form.

I found a tutorial and I followed these steps:

1- Create a new barcode font (with SE73):

ZEAN128 (Code 128).

2- Create a new character format (with SE71):

BC (in which I chose ZEAN128 and checked the checkbox).

3- Add a value into barcode in form (SE71):

In one of my window (HEADER), I created the symbol &gs_final-vbeln& and I specify the character format by choosing BC (previously created).

Then, when I trigger the printing, the barcode is not printed : it remains blank!

I also tested my new barcode font ZEAN128 with the t-code SE73 and it works!

The &gs_final-vbeln& is well printed if I do'nt implement the character format BC.

So  don't understant why it does not work.

Can you help me?

Thanks in advance.

Have a nice day.

6 REPLIES 6

Former Member
0 Kudos
707

Did you apply character format like this  : <BC>&gs_final-vbeln&</> ?

Say BC is the name of the character format.

I do not see anything wrong in the steps you mentioned here.

However creating a new barcode font in se73 involves different important section.

If possible cross check that section?

Regards

Ansumesh

0 Kudos
707

Hi,

To be sure that it's not linked to the barcode fint I created, I changed ZEAN128 with a SAP standard barcode font and I obtain the same result.

1- the character format setting:

2- the implementation of the character format to a value in the form:

0 Kudos
707

Hi Anderton,

It may not be the cause but a guess, if your Testing and Development clients are different then do a client copy via transaction SCC1.

BR.

Former Member
0 Kudos
707

Hi

Follow the bellow steps.

1.Create one character format with name BC and give barcode name CODE128 in that character format.

2. in page window->in change editor screen->write logic as below

  <BC>&wa-matnr&</>

3. if you are using different client for testing then transport the form from your development client to testing client using tcode scc1.

arindam_m
Active Contributor
0 Kudos
707

Hi,

Barcodes are often not visible in the print preview. Also the Specific Printers support such Barcode printing. You might be missing that printer font that allows that.

Cheers,

Arindam

Former Member
0 Kudos
707

It's basically a printer issue.Because we have experienced the same problem.

In some script BARCODE is visible and for some it's not..

But after taking a physical print..you will definitely get it.

Regards

Ansumesh