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: 

Barcode is printing with Zero

Former Member
0 Kudos

Dear Champs,

I have one issue, in my company barcode is printing with smartform. but issue is whenever length of barcode number is odd then system is adding one zero in barcode number and make it even number.

So , How to resolve this?

Ex : My barcode number is : 1234567 then when i print this then system will print barcode with 01234567.

and if my barcode number is : 12345678 then system will print my barcode perfectly like *12345678.

If want to system do not add barcode with additional zero at the time of printing.

Regards,

Satyen Trivedi

5 REPLIES 5

former_member217316
Contributor
0 Kudos

What is the TYPE of this field?

Also, is it only while printing? Did you checked it in debug mode the field value.

0 Kudos

Dear Harsh,

Yes I have checked that when I check spool file , barcode number is displayed correctly but at the time of printing one more zero is adding. I think there should be printer setting issue in SAP.

Regards,

Satyen Trivedi

rajkumarnarasimman
Active Contributor
0 Kudos

Hi Satyen..

For 8 digit character if it is printing correctly, then that won't be printer issue.

i hope you can use FM CONVERSION_EXIT_ALPHA_OUTPUT to remove the zeros, before generating the barcode, use the FM CONVERSION_EXIT_ALPHA_OUTPUT and remove zeros in the appropriate variable.

Regards

Rajkumar Narasimman

0 Kudos

Dear Rajkumar,

Yes,,,, but my smartform is working correctly. I can checked in my spool file with correct barcode.

But when I print this barcode , then one zero is added.

Regards,

Satyen Trivedi

kabil_g
Active Participant
0 Kudos

Hi Satyen ,

Try these. to remove zero's  (Z) ..

Example:

&GW_VBAP-POSNR(Z)&

Kabil