How to print Barcode in te SAP SCRIPTS?

Hi All,
Can anyone of you let me know how to print the Barcode in the SAP SCRIPT? This is the first time I'm working on the Barcode. I've to print many fields data into one barcode. Like PO number, Material Number, Plant, Company code..etc..
Best Regards,
Venkatesh Eddala.

Hello Venkat,
Creating Bar code:
-->From trans 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
--> 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.
Which barcode printer are you using ? Can you download this file and see.
http://www.servopack.de/Files/HB/ZPLcommands.pdf.
It will give an idea about barcode commands.
SAP Barcodes
-->Barcode solution consists of the following:
barcode printer
barcode reader
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.
for your reference check the below links:
http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
for smart, please check the below link:
http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
See the below program forbarcode in sapscript for your reference:
DATA: BAR_CODE1(16) VALUE `ABC01230123A01'
NEW-PAGE PRINT ON IMMEDIATELY `X'.
FORMAT COLOR OFF INTENSIFIED OFF.
If the barcode is the first element on the page, the following Write
statement is needed (otherwise you get a date in the first print
control.
WRITE:/
Turn on the barcode font, print the data, and switch back to the
printer's default font. Be sure to use NO-GAP to avoid unwanted
characters or CR/LF.
PRINT-CONTROL FUNCTION `BCPFX'
WRITE: BAR_CODE1 NO-GAP
PRINT-CONTROL FUNCTION `BCSFX'
Add a Write statement to prevent insertion of CR/LF into the barcode.
WRITE:/
Sample SAPSCRIPT
Variable BAR_CODE1 contains the barcode data, including asterisks.
The & is needed to avoid unwanted spaces or CR/LF characters
/E LINE
/: PRINT-CONTROL BCPFX
= &BAR_CODE1&
/: PRINT-CONTROL BCSFX
Venkat - Please reward points for previous therad if you feel good answer ...
Thanks
Seshu

Similar Messages

  • How to print last page in sap script in ladscape format?

    Hi all,
    can any 1 tell me How to print last page in sap script in ladscape format?
    Thanks In advance.
    Pravin

    Hi Pravin Sherkar,
    we can do this in SAP Scripts.
    we need to create two pages, one of landscape and another of potrait.
    now after filling the data at last we need to call the page which is of format landscape using START_FORM  function module.
    You can use condition &PAGE& = &FORMPAGES&.
    Please check this link
    Printing Portrait/Landscape in sapscript
    Re: Landscape and potrait in same layout?
    http://www.sap-img.com/ts013.htm
    Best regards,
    raam

  • How to print Special Characters in Sap-Scripts

    How to print Special Characters in Sap-Scripts
    Thanks,
    Ravi

    Hi
    if u want print special characters we can use hot codes i.e '  '  (single inverted commas). in between these hot codes insert u r special characters.
    write    '    !@#$%^&*( )  '.
    for the above write statement output is
    output is   !@#$%^&*( )

  • How to print the Totals in SAP Scripts..?

    Hi,
    I have an SAP Script layout. Currently I am displaying the Line items in the layout. The new requirement has come up to display the TOTAL of the amount value in the layout at the end of the line items. Can someone tell me how to display the Sum of the Amount value at the end of the Line items in an SAP Script.
    The Print program for this layout is standard program. Can this be handled within the layout..? Someone please provide me some sample code if available.
    Thanks in advance.
    Best regards,
    Paddu.

    Hi,
    Thank you for your reply.
    My Standard print program doesn't provide the total value.  Could you please tell me where exactly we need to write the logic in the Layout. I mean, do we need to write under separate element..? and in the External subroutine, how would be the logic. It would be greatful if you provide some sample code.
    Thanks & Regards,
    Paddu.

  • How to print different pages of sap script  from diff. trays of printer

    Hi All,
    I have the requirement in SAP script. How to print different pages from different trays in the printer.
    For example  page 1 logo and address has to print from tray-1,
                        page 2 main data print from tray-2,
                        page 3 footer data print from tray-3.
    will appreciate if u come up with solutions asap.
    Thanks in advance.

    Hi,
    May be the links given below might help you,
    SAPScript:Selecting Different Tray in SAPscript
    Print to different output tray in SAPscript/Print Workbench
    Regards,
    Hema.
    Reward points if it is useful.

  • How to print check box in sap script

    I have a requirement in SAP Script to print a Check bok.
    I tried using SAP symbols in the script, but it does not print. It inserts <679> for checkbox &  <697> for marked checkbox. Any special command to be passed?
    Regards,
    Prabhu Rajesh.

    Hi,
    Are you sure your printer is capable of printing graphics ?
    Cheers
    Colin.

  • How to Print Bar codes in SAP script.

    Hi Experts,
    Could you please tell me how to print bar codes through sapscript (the steps basically)?
    <<text removed by moderator>>
    Thanks in advance,
    Suchi.
    Edited by: Matt on Nov 13, 2008 2:04 PM - do not use ASAP or urgent.

    hi,
    check these.
    [https://forums.sdn.sap.com/click.jspa?searchID=18572128&messageID=4724540]
    [http://help.sap.com/saphelp_nw04/helpdata/en/68/4a0d5b74110d44b1b88d9b6aa1315b/content.htm]

  • How to print '≤' or '≥' Signs Through SAP script

    Hi Experts,
    i am trying to print 'u2264' or 'u2265'  from SAP script. but i am not able to print is.
    In the final output through printer i am getting '#' printed.
    Thanks
    Rajpal Sehrawat

    Hi,
    Firstly, use the unicode MS Word editor as the sapscript editor. Then you need a devcie type that supports these characters. Try to print via windows and unicode device type SWINCF if you have a unicode system.
    Regards,
    Aidan

  • Printing barcode lables in sap script forms

    hi friends,
    i am trying from long time to print barcode on Z4m barcode printer.the folowing is the requirment.
    Application object is : MM07ET
    Text ID : 7001 of the application object
    Layout set: RM07ETIKETT .
    Layout set is i copied from client 000 .
    Folowing is the ZPL code i am using to get barcode print.
    /    ^XA
    /    CWI,U00S8_S2.FNTFS
    /    FO125,10A0N,21,0CI0FRFDAES CARTEGENAFS
    /    CWJ,U00O01JW.FNTFS
    /    FO20,57A0N,27,0CI0FRFDMaterial Number :FS
    /    CWK,T00O01JW.FNTFS
    /    FO19,97A0N,27,0CI0FRFDMatl Desc :FS
    /    CWJ,U00O01JW.FNTFS
    /    FO20,133A0N,27,0CI0FRFDStorage Location :FS
    /    CWJ,U00O01JW.FNTFS
    /    FO20,175A0N,27,0CI0FRFDBin Location :FS
    /    CWJ,U00O01JW.FNTFS
    /    FO19,214A0N,27,0CI0FRFDValuation Type :FS
    /    CWK,T00O01JW.FNTFS
    /    FO19,253A0N,27,0CI0FRFDDoc Number/Item :FS
    /    BY2,3.0FO64,290BCN,64,N,Y,NFRFD>:10.000.006FS
    /    CWL,T00S8_S2.FNTFS
    /    FO144,101A0N,21,0CI0FRFDabcdefghijklmnopqrstuvwxyzFS
    /    CWI,U00S8_S2.FNTFS
    /    FO154,360A0N,21,0CI0FRFD10.000.006FS
    /    CWI,U00S8_S2.FNTFS
    /    FO179,181A0N,21,0CI0FRFDasdf123456FS
    /    CWI,U00S8_S2.FNTFS
    /    FO230,137A0N,21,0CI0FRFD01234FS
    /    CWI,U00S8_S2.FNTFS
    /    FO220,63A0N,21,0CI0FRFD10.000.006FS
    /    CWI,U00S8_S2.FNTFS
    /    FO200,219A0N,21,0CI0FRFDM1FS
    /    CWI,U00S8_S2.FNTFS
    /    FO222,258A0N,21,0CI0FRFD5000000011FS
    /    ^PQ1
    /    ^XZ
    i need clarification on following items.
    1) Weather this zpl code i need to write in MM07ET object.? or in layoutset ZRM07ETIKETT
    2) ABOVE CODE HAS BEEN CREATED BY BARONE.(OTHER WISE I CAN ALSO WRITE MY OWN ZPL LANGUAGE)
    3)HOW TO SEND SEND SAME CODE IN TO PRINTER MEMOREY.(IF IT IS .ITF HOW TO SEND IT THROUGH SAPSCRIPT.)
    (PLS ANSWER ANY ONE AS EARLY AS POSSIBLE).

    Typically I've put the code into the MM07ET object, leaving the layout set as simple as possible.
    The question I pose is how do you transport MM07ET? I have done it in the past in older versions, but it seems my notes are not valid anymore? I know you can upload and download MM07ET, but a transport is preferable.
    I used to manually assign an object to the transport:
    R3TR TEXT MM07ET,MM07ET_ETIKETT,7001,E
    Any ideas?
    Regards,
    Louise Langley

  • How to print different copies in sap Script

    Hi experts,
    I am developing the excise Invoice. For this I copied standard print program as Zprogram and Standard Script also.So I can change the ITCPO structure with three copies. But how to check these copies to print each copi with different headings?. what is required code to write in my Script?
    T

    Look at my question =>How To Get Control once Second Print Is Issued to printer in Script
    This might give you some hint.

  • How To use barcode in the sap scripts

    I have to put two windows in a form ,both windows should contain BARCODE
    so how i can proceed plz provide me solutions for same and possible few example code which can guide me .

    There is no change required to the print program the bar code conversion is handled by the SAPScript form.  What you do need to do is create a special character string.
    Simply click on the Character Formats button and then in standard attributes, select Bar Code in the appropriate field (it is labled Bar Code)  you probably need to talk to someone regarding which Bar Code format to use, since there is a quite a few  of them.
    Hope this helps.

  • How to Print PDF Format In SAP SCRIPT

    Hi All,
    I have a requirement to print the output in PDF format.
    First we can pass the parameter from Excel sheet,through on the parameters , we can fetch the output and print the PDF format.
    Please help me.
    regards
    raghava

    Hi Ragha,
    SAP has created a standard program RSTXPDFT4 to convert your Sapscripts spools into a PDF format.
    You will get the spool number from transaction SP02.
    Also go through the following document:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49e15474-0e01-0010-9cba-e62df8244556
    Regards,
    Nitin.

  • How to print bar codes in sap script and smartform

    bar code sheet to print for particular customer when the
    transfer order is created.

    Hi,
       You create a bar code or change a bar code in the font maintenance transaction (transaction SE73). To do this, proceed as follows:
    &#9675; Start transaction SE73, and choose System Bar Codes ® Change.
    &#9675; If you create a bar code, the system asks whether you want to use the new bar code technology or traditional system bar codes. Choose New.
    You can enter a name and a description for the bar code. Note that the name must begin with a Zto avoid conflict between your bar codes and the standard bar codes.
    2. If you have created a new bar code, you must now add this to a Smart Style as a character format. For information about this, see the section Maintenance of Styles with the Style Builder and its subsections in the Smart Forms documentation.
    If you have only changed the bar code, continue with the next step.
    3. You can now select text in Smart Forms and choose the corresponding style with the bar code as the character format for this text.
    4. You can then print the bar code.
    Refer
    https://forums.sdn.sap.com/click.jspa?searchID=10581664&messageID=3321556
    Check the pdf below..
    http://www.sap-press.com/downloads/h955_preview.pdf
    Regards
    Kiran

  • How to print BARCODE in DATAMAX Printer using SAP Script?

    Hi,
    Can anybody guide me how to print BARCODE using DATAMAX Printer?
    I need to develop a SAP Script, through which i need to print the BARCODE.
    Pls. let me know the parameters for Script and how to print using print program.....
    Regards,
    Hemant

    make one form in sapscript with one main window: like this
    /E           ETIKETT
    /*           Format = '57x19', Printer = 'Bradyprinter Model 1344'
    /           ~f350
    /           ~n
    /           ~M0500
    /           ~O0220
    /           ~SG
    /           ~s
    /           ~c0000
    /           ~e
    /           ^D
    /           ~L
    /           D11
    /           H20
    /           PC
    /           pC
    /           SC
    /           A2
    /           1911A1200400005&knmt-kdmat&
    /           1911A0800300005&knmt-postx&
    /           1911A0800100005VS-Nr   :         &KNMT-MATNR&
    /           1911A0800000005Datum   :         &date&
    /           Q0001
    /           E
    in this script   &mseg-matnr&    and    &mseg-charg&    are 2D Barcodes
    /E           ETIKETT
    /*           Format = '57x19', Printer = 'Bradyprinter Model 1344'
    /           ~f350
    /           ~n
    /           ~M0500
    /           ~O0220
    /           ~SG
    /           ~s
    /           ~c0000
    /           ~e
    /           ^D
    /           ~L
    /           D11
    /           H20
    /           PC
    /           pC
    /           SC
    /           A2
    /           1Wc99000001400082000012012&mseg-matnr&
    /           ySPM
    /           1911A1000380055&mseg-matnr&
    /           1Wc99000001501702000012012&mseg-charg&
    /           1911A0800260055&mkpf-budat&
    /           1911A0800140055&mseg-mblnr&
    /           1911A0600020008&makt-maktx&
    /           Q0001
    /           E
    then you need your own printprogram and everything is fine. with open_form ;  start_form ; write_form;  end_form
    you can communicate direct with the Datamax Programming Language  from SAPScript to the Barcode printer.
    i also have the datamax programmers manual as pdf if you want i could send it to you. let me know by PM.
    also have look into HW 490295  the bartender Solution works fine for me to create the SO10 text's
    greetz
    tony
    Edited by: Tony Wienhold on Jul 17, 2009 4:37 PM

  • How to find the print program for a sap script

    Hey Experts,
    How to find the print program for a sap script (espicially when it is a custom script(Z*))?
    Thanks a ton,

    Thanx Vijay,
    Actually when I searched for the program in both the tables it didnt show up ther.
    But when I did check in the texts of script, I found it.
    Good job.
    Thanks all.
    Vijay, a small doubt.
    But why didn't it show up in those 2 tables when all the print programs for standard scripts show up usually?
    thnx once again.
    Message was edited by: dev a

Maybe you are looking for

  • How do i mirror my macbook air with apple tv now that i have mountain lion

    how do i mirror my macbook air with apple tv now that i have mountain lion

  • How to e-mail/not e-mail a scheduled report based on records returned

    Hi Everyone, Is there a way that there can be logic performed on a report that has been scheduled and ran before it gets sent via e-mail to the end users?  We have scheduled reports that often end up with 0 records returned but users still get the e-

  • New 24: iMac 8800 FCE PROBLEM

    I just got a brand new 24 inch iMac with the geforce 8800 graphics card. I installed Final Cut Express and it won't open! I get a configuration error that says "This software requires a certain hardware or software which is missing. *AGP graphics car

  • IPhone say no service

    My iPhone 4S says no service it been like that now for more then 24hrs, I've rebooted and taken SIM card out and put back, still no service. I also have an iPad with same network and work perfectly fine. I've reset network and rebooted and still iPho

  • Text descenders along with moire patterns

    Photoshop CS2 Microsoft came by with a Vista auto update 10/28 and screwed things up (again). Now the bottoms of all the text on Photoshop CS2@ "file info" is gone. Also, my screen has moire "ripples" (non-moving) on many of the photo displays. The t