cancel
Showing results for 
Search instead for 
Did you mean: 

barcode problem in smartforms

Former Member
0 Kudos

hi all,

i am creating a smartform for bill report.

and i am facing problem to access barcode

pls tell me some how i can do codding for barcode.

thanks and regards

vikas saini.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

To Create a Bar code prefix:

1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save

2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix

Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.

The place where you are using the field value use like this

<C1> &itab-field& </C1>.

You will get the field value in the form of barcode.

Go through below links ..

http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm

Regards,

Former Member
0 Kudos

hi vikas,

to print the bar code follow the steps:

1. CREATE THE PARAGRAPH AND CHARACTER FORMATS BY USING THE “SMARTSTYLE” TCODE R SELECT THE “STYLE” RADIOBUTTON IN “SMARTFORMS” TCODE(WHICH IS CREATED FOR SMARTFORMS).

2. GIVE “P1” AS PARAGRAPH FORMAT

3. CLICK THE “FONT” TAB,THEN ENTER THE font family n font size n color as u require

4. CREATE THE NODE FOR CHARACTER FORMAT "C1"

5. SELECT THE BAR CODE NAME AS “BC_EAN8”

6. CLICK THE “FONT” TAB AND CHANGE THE OPTIONS WHICH U WANT.

7. SAVE,AND ACTIVATE IT.

8. CREATE THE SMARTFORM in transaction "SMARTFORMS"

9. take a window, create text for that window & in that text Click on “output options” tab, select the style which u created earlier

10. in text editor write some text ex: hello & assign the character format to it like <c1>hello

11. save & activate

12. see the print preview, u can view the hello in form of barcodes.

hope it can help u. if any doubts, feel free to ask.