cancel
Showing results for 
Search instead for 
Did you mean: 

Barcode printing from SAP Script

Nirav_Desai
Explorer
0 Kudos

Dear all

I am trying to print a barcode from standard sap script (PM_COMMON). Barcode is coming perfect in print preview but it is not appearing in printing. Its only displaying the value for of the variable for which i am trying to print the barcode in printing. Are any specific settings needed for this?

Thanks and Regards.

Accepted Solutions (1)

Accepted Solutions (1)

Nirav_Desai
Explorer
0 Kudos

Resolved by self, following is the solution:

Prefix and suffix u2018*u2019 to the text which we need as barcode in output.

masoud_ebrahimzadeh
Participant
0 Kudos

HI

how use Prefix and suffix u2018*u2019  ?

<c>123456</>

Nirav_Desai
Explorer
0 Kudos

Prefix and suffix ASTERIK sign *.

I think in my past post I had written asterisk sign in single quote so that had been converted to ASCII.

masoud_ebrahimzadeh
Participant
0 Kudos

tnx

can you show me how use that if I want print 123 in barcode format ..

<c>123</>

Nirav_Desai
Explorer
0 Kudos

*123*

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi guru's,

I am facing same problem , I'm unable to c my custom barcode...

MY BAR CODE DETAILS : <C2>&W_VBAK-VBELN&</>

in c2  I saved my custom bar code name.

Thanks,Phani

former_member692695
Discoverer
0 Kudos

Hi Phani,

Did you figure out solution for your problem ? I am facing similar situation .

Regards

Srikanth

Former Member
0 Kudos

hi,

u need to check with ur basis team regarding ur printer config whether it supports barcode printing ar not .

but plase refrain from posting esaily searchable questions .

these type of questions have been asked multiple times.

regards,

prashanti

Nirav_Desai
Explorer
0 Kudos

My dear friend thank you very much for answering, but be specific in answering and dont answer just for sake of answering, if you are not clear about the solution. Have you checked out that how many questions of this type have been answered and resolved. Infact none of them.

Former Member
0 Kudos

Hi,

Check the dimensions for your barcode and try to adjust your window sizes or the left and top margins in paragraph formats while displaying it.

May be the barcode is not exactly fitting in the window size, but which looks fine in print preview.

This happend with barcode in my case too.

With Regards,

Dwaraka.S

Nirav_Desai
Explorer
0 Kudos

Dear Dwaraka, Thank you very much for replying, but in my case this will not help. I have only one main window and all the detilas are within it. If you were able to print barcode using SAP Script can you please give me some details regaring the same.

Thanks and Regards,

Nirav

Former Member
0 Kudos

Hi,

Try to insert line feed character " / " after the bar code line in the editor, which provides sufficient space for display of bar code printing.

P1 <BC>&MKPF-MBLNR&</>

/

/

/

/

/

display other fields.

or you can have one paragraph format P1 with values of space before and space after columns filled (eg 2 cm each... something like to increase the space for displaying your bar code)

P1 <BC>&MKPF-MBLNR&</>

I think this will solve your problem. Refer to the standard forms used for displaying the labels(picking, packing lists etc...form name WASCHEIN)

With Regards,

Dwaraka.S

Former Member
0 Kudos

Hi

in spad check the device type in your output device.

if it is laser printer it will work.

Thanks & Regards

Siromani

Nirav_Desai
Explorer
0 Kudos

Dear Dwaraka,

I am facing this problem with standard form PM_COMMON, following is the script code from where barcode is printed.

===========================================================================

/ <I0>Confirmation number</> ,,<H>&AFVGD-RUECK(Z)&</> ,,,,<BC>

= &AFVGD-RUECK(Z)&</>

/

/

/

/

/ <I0>Start date </> ,,<H>__________________</> ,,,, <I0>End date

</> ,,<H>___________________</>

===========================================================================

Edited by: Nirav Desai on Jan 28, 2009 10:49 AM

Edited by: Nirav Desai on Jan 28, 2009 10:50 AM

Former Member
0 Kudos

Hi,

Adjust the second tab position value (reduce the tab position) before printing the bar code or increase the line feed characters and check the default paragraph settings.

and also check whether you are able to get the bar code printed if you insert the below code starting in a new line.

<BC> &AFVGD-RUECK(Z)& without using the tab position and few line feed characters before bar code printing something like

/ <I0>Confirmation number ,,<H>&AFVGD-RUECK(Z)&

/

/

/

/ <BC> &AFVGD-RUECK(Z)&

/

/

/

/

With Regards,

Dwaraka.S