Skip to Content
author's profile photo Former Member
Former Member

Barcode in smart from

Hi Gurus.

Can anybody plz tell me how to print bar code in smartform, actually my requirement is to print postal barcode in smartfrom.

plz reply.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 01:37 PM

    You can look at SAPSCRIPT-BARCODETEST standard text to see all of the available barcode formats, and you can use any one of them to print it in both sapscript and smartform.


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 02:19 PM


    Just create a style with barcode and use it in smart form. U just use it as a style.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Friends,

      Thanks for the reply, i have created the styleshit for bar code,

      and i want barcode against postal address,for displaying addres i have created address node in smartform and passing address number to it, i also attached the barcode styleshit for the address node but its not working.

      plz tell me any thing left by me, or i have to add one more text node for only postal code and in that i have to attach the barcode style?

      thanks in advance.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 06:04 AM


    see this link you will get idea of what is barcodes and use

    Steps to implement bar code in the smart form:

    1. Create a Smart Style: Use the transaction code smart style. Give a suitable name .Choose Create.

    2. Create a Character Node: In change mode of the Smart Style select the Character Formats Node and choose Create. In the Character format field enter a two-character key. Click Continue.

    3. Select desired attributes of Bar Code: Select the desired attributes of the Bar Code on the tab Standard Settings.

    4. Choose Activate.

    5. Use the Smart style in the Smart form: Assign the character format to the field or character string in the smart form.

    6. Activate the smart form.

    7. Test the same.

    Reward if usefull

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2007 at 06:12 AM


    Just select barcode in style and use it in smartform.



    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 06:26 AM


    A barcode solution consists of the following:

    - a barcode printer

    - a barcode reader

    - a mobile data collection application/program

    A barcode label is a special symbology to represent human readable information such as a material number or batch number

    in machine readable format.

    There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.

    You can print barcodes from SAP by modifying an existing output form.

    Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.

    Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.

    The next part of the equation can be a bit tricky as you will need to get a printer to print that barcode font. Regular laser printers does not normally print barcode fonts, only specialized industrial printers that is specifically designed to support that protocol and that uses specialized label media and heat transfer (resin) ribbon to create the sharp image required for barcodes.

    Not to fear though, there are two ways to get around this:

    - You can have your IT department do some research -

    most laser printers can accept a font cartridge/dimm chip (similar to computer memory), called a BarDIMM that will allow a laser printer to support the printing of barcodes.

    - Secondly, you can buy software that you can upload in your SAP print Server that will convert the barcode symbology as an image that will print on a regular laser printer. I found that this option results in less sharper barcodes. This option is really if you need to convert a large quantity of printers (>10) to support barcodes.

    Now you have a barcode printed - what next?

    Well there are two options, depending on your business requirements:

    - You can use an existing SAP transaction on a regular workstation and get a barcode wedge reader to hook up between the keyboard and the PC. These wedge readers comes in a wand or scanner format. There are even wireless wedge scanners available that allows you to roam a few yards from the workstation to scan a label. This approach is mostly used where you want to prevent human errors in typing in long material, batch or serial numbers in receiving or issuing of material. The problem is that it's just replacing the keyboard input and you are basically locked down in one location and have to bring all the material to that location to process.

    - Another solution is to use SAPConsole transactions

    or write your own ABAP Dialog programs that will fit onto a barcode enabled wireless handheld terminal and that will follow the business logic as executed on the shop floor.

    These programs are highly complex exercises in industrial engineering and ergonomics because of the limited screen sizes and limited ability to accept keyboard input. The user is instructed step-by-step and only scan and push F-keys to interact with the SAP system. Scan, scan, beep, beep, enter - highly automated.



    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 07:12 AM

    Hi Mahesh,

    Goto SMARTSTYLES tcode, create a new character format. In 'Standard settings' tab of character format select barcode.

    Now select postal code and give its character format as created above.

    Kindly reward points if found useful.

    Thanks and Regards,

    Satyesh T

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      If the smartstyle with your barcode-characterformat is also in the general attributes of the smartform, ist is not necessary to put it also in the textelement.

      to format the variable which should be printed as barcode, u can select the characterformat u created for the barcode in the general attributes of the textelement, also u can go into the textelement, button "Editor" and put it directly into the text like this: <E2>&IS_BIL_INV_KOPF-BIL_NUMBER&</>

      (E2 is my characterformat, in the smartstyle it is connected to the smartstyle I created with SE73)

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.