cancel
Showing results for 
Search instead for 
Did you mean: 

*Barcode In Forms*

Former Member
0 Kudos

Hi,

Can some body say me the step by step process on how to implement the barcode in either sap script or smartforms.

Thank you,

Madhu

Accepted Solutions (0)

Answers (9)

Answers (9)

Former Member
0 Kudos

Hello MAdhu,

Please go through the link.

http://sapscriptcode.blogspot.com/2007/05/details-information-about-sap-barcodes.html

In Smart forms --> You can check teh Barcode in Character format.

Hope this will be helpful....

Regards,

Kittu

Former Member
0 Kudos

Hai,

Create a System Barcode using transaction SE73. If ur barcode size doesnot match with system barcodes.

In TCode smartforms, creta a character format in styles.

While creating charater format , give the barcode name.

Use this character format to print barcode.

Ex: <c1>123456</>

this will print barcode.

Thanks

Swetha

Former Member
0 Kudos

Hi madhu,

In Scripts you have character formatting..

In that you have barcode option... select one from the f4 help provided....

Apply the character formatting wherever you want the barcode representation.

eg. <c1>AB12423</>

here c1 is character formatting

regards

padma

Former Member
0 Kudos
Former Member
0 Kudos

1. A documentation on creating System Bar Code and using it in SAPscript layout for printing

1.1. Creating a System Bar Code

u2022 Transaction SE 73 is to be run to enter into u2018SAPscript Font Maintenance: Initial screen.

u2022 u2018System bar codesu2019 radio button is to be selected and change mode is to be clicked for entering data. A new screen named u2018SAPscript Font Maintenance: Change System Bar Codesu2019 will appear.

u2022 In u2018SAPscript Font Maintenance: Change System Bar Codesu2019 screen, u2018System bar Codesu2019 is to be selected from the u2018Header listu2019 and u2018Createu2019 option is to be clicked. A new screen u2018SAPscript Font Maintenance: Create/Change System Bar Codeu2019 will appear.

u2022 In u2018SAPscript Font Maintenance: Create/Change System Bar Codeu2019 screen, all details of barcode viz. Bar code, Description, Bar code type, Minimum character number, Maximum character number, Bar code width, Unit of measurement, Bar code height and Unit of measurement are to be provided as per requirement. Thus any system bar code of desired type can be created.

1.2 Including System Bar Code in Layout

(a) Character format screen of Layout

Standard attributes like Character format (string), Description and Bar code type are to be provided in Character Format of the layout. Bar code type is already defined during its creation whereas Character format (string) and Description are to be given as per standards.

(b) Page Window screen of layout

Here the character format (string) of barcode is to be included. For e.g. if character format string is AD and L1 is a paragraph format then in Page Window it should be :

/E ITEM_LINE

L1 <AD> &LTAP-MATNR& </>

In paragraph L1, any sort of tab setting, font setting can be done as per requirement. All these will be reflected in barcode.

Now the System Bar Code is ready for printing.

2. Changing standard bar code height and width:

Since the printer used was of device type HPLJ4000, OSS note 45643 is to be referred.

The note contains the explanation of the control sequences that are stored in the SBPxx print controls in R/3.

First, a custom barcode is created by copying the system bar code C128A_00 using transaction SE73. Next, corresponding to the printer device type HPLJ4000, our bar code ZC128A_0 is included. Each printer barcode has to contain a prefix and a suffix. Prefix is like SBPxx and suffix are like SBSxx. Print control sequences are maintained in both prefix and suffix. But for our requirement, we need to consider the control sequence for the prefix only.

For the standard device type of HPLJ4000, the prefix for C128A_00 was SBP25 and the suffix was SBS01. For ZC128A_0, the suffix is kept as SBS01. For prefix, a new prefix ZBP25 was created by copying the control sequence of SBP25 and then changing it. The logic for changing the control sequence has been explained below.

The original control sequence for SBP25 was like this:

1B2873317030303068313476352C313062352C313073323437303154

Within this control sequence, height of this barcode is represented by 313476 i.e. 14 point i.e. 14 * 1 / 72 inches. In order to create a barcode of height 3 cm, this was changed to 383476 i.e. 84 point i.e. 84 * 1 / 72 inches.

While increasing the width and the spacing of the barcode, it has to be remembered to do it proportionately otherwise barcode wonu2019t be scannable.

Within this control sequence, width of the (first and second) bars have been represented by 352C313062 i.e. 5 & 10 respectively, i.e. 5 * 1 / 600 inches and 10 * 1 / 600 inches respectively.

We changed it to 31322C323462 i.e. 12 & 24 i.e. 12 * 1 / 600 inches and 24 * 1 / 600 inches respectively.

Within this control sequence, width of the (first and second) spaces have been represented by 352C313073 i.e. 5 & 10 respectively, i.e. 5 * 1 / 600 inches and 10 * 1 / 600 inches respectively.

We changed it to 31322C323473 i.e. 12 & 24 i.e. 12 * 1 / 600 inches and 24 * 1 / 600 inches respectively.

The changed control sequence for prefix ZBP25 looks like this:

1B287331706838347631322C32346231322C323473323437303154

cheers

Aveek

Former Member
0 Kudos

hi,

Check this link for Barcodes.

http://www.sap-img.com/abap/details-information-about-sap-barcodes.htm

Regards,

sreelakshmi

0 Kudos

Hi,

i think u can create the bar code in the transaction code SE73.

after finish this creation u have to assign it to where u want convert the amount into bar code.

thanks.

sriram.

former_member195698
Active Contributor
0 Kudos

Check the below note and its associated notes for additional information.

Note 5196 - Printing bar codes with SAPscript

bpawanchand
Active Contributor
0 Kudos