Unable to print special character in SAP script

Hi,
  There is an address which needs to be hardcoded in a SAP Script form.
It looks like:
Česká republika s.r.o
Karla Engliu0161e 3219/4
Česká republika
IČO:  25635972
The letters which has got a tilde and sign above them are appearing as a hash '#' in print. I have tried uploading it as an image and as standard text. But still not working. Can someone help please?
Thanks in advance,
Anita

Hello,
Is your SAP Unicode? If no, then this can get very messy. If yes, I'd start with checking if the font used by the SAPScript supports that character.
Regards,
Michael

Similar Messages

  • Unable to print special characters in SAP script.

    Hi,
      There is an address which needs to be hardcoded in a SAP Script form.
    It looks like:
    Česká republika s.r.o
    Karla Engliu0161e 3219/4
    Česká republika
    IČO:  25635972
    The letters which has got a tilde and sign above them are appearing as a hash '#' in print. I have tried uploading it as an image and as standard text. But still not working. Can someone help please?
    Thanks in advance,
    Anita

    Hi Anita,
    Please search in SDN,, similar issues were answered before many times...
    Regards,
    Aditya

  • 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 Vertical barcode in SAP script

    I want to print barcode related items in SAP script . can you plz tell me any one
    1.How to print vertical barcode in SAP script ?
    2.How to print vertical text in SAP script ?

    1.
    Create the character format in se71, in that select standard barcode. like
    Char.format: C1 Description: Barcode
    Barcode: BC_CD39 save the character format.
    you can select from the list.
    in the form coding, can you use barcode like
    <C1> program variablr <>.
    <C1> &itab-matnr <>.    "--->like this
    Then it shows the barcode in output.
    check this.
    2. for vertical text ..
    if this is a window text then its possible but
    like
    S
    H
    I
    P
    T
    O
    This is possible in giving the window name but in the layout i never tried this.
    If u can tell the scenario(with data reference) then may be i can try but not sure that this will give me hit.
    regards,
    vijay.

  • Need to add special characters in sap scripts

    Hi All,
       I need to add special characters in sap script.
    I have used them as it is my script,but in the print preview i am able to see '#' instead of those special characters.Can anybody please tell me the way in which we can add special characters in the scripts.
    eg. 'Shlesha' i.e. name in inverted colons.
    Thanks

    Hi
    If # is coming means, that is the problem with the printer. I think u might have used your local printer to see the print preview.
    Don't use LOCL or LP01. Our local printer won't recognize those characters.
    Just change the printer name to client printer name. It will work.

  • 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

  • Problem about printing special character in bex query analyzer

    Hi,
    in bex query analyzer i have created one restricted key figure , in which i have substracted two date with the help of replacement path.
    So i got result.
    But i am facing one problem. when in both date, if one date is null or # then it is giving some big value like -734567.
    But i want some special character like X instead of this big values.
    So how can i do this?
    With the help of if and else it can be done.
    But how can we print special character in report.
    Please help me
    Thank you in advance

    hi,
    You cannot show X in a formula result. You can highlight the row using exception.
    Still if you want to show X in the result then you need to create a formula variable on a char which returns X value all the times.
    Then you can use the three formula variable to write a formula so that it shows the difference:
    date1 -- formula variable
    date2 -- formula variable
    charx -- formula variable.
    the formula will be
    Count(date1)Count(date2)(date1 - date2) + charx *(count (delta(date1) + delta(date2))).
    this would return the X value if any of the dates are empty otherwise their difference.
    regards.
    Arvind.

  • 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

  • On the JTextPane need to don't print special character .........

    Hello All,
    I work on JTextPane , and want to don't print special character when the user press on this the JTextPane ,like "a" character,
    the application will test is this character is "a" or "A" , it won't print the character , else print it , So how can i do that code.??
    Thanks.

    There are other ways, but the best is probably to use a documentFilter.
    The Java Tutorials: [Implementing a Document Filter|http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html#filter]
    luck, db

  • 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

  • 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.

  • Printer Control Language 5 Sap Script

    Hello,
    Does anybody have a sample SAP script which gives command to NRG printer. It uses a PCL 5 driver so wanted a sample eg. of the same.
    Regards,
    SHekhar Kulkarni

    Hi Shekhar,
    Print commands are controlled by the device type you have set up for your printer.  These are administered via the transaction SPAD (for spool administration).
    The SAPScript itself does not issue these commands (as far as I'm aware).
    You may have to handle special print control from your SAPScript by the use of fonts.  Again, these are administered from the transaction SPAD.
    Hope that helps.
    Cheers,
    Brad

  • 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 '≤' 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 LAST page in SAP script on the back side.

    Hi ,
    I have a problem with the printing of the LAST page on the reverse side of the form, when done with a vendor.
    At a time we print many vendors together.
    So, when done with printing of a vendor it needs  to print his address on last page, reverse side(address)
    Next will be followed by another vendor details.
    I cannot give 'D' for the first page because it would fail if the form flows more than 2 pages.
    is there any way of triggering the LAST page in SAP Script when it done with printing of one vendor.
    any help would be highly appreciated.
    regards.

    Hi ,
    In Script PO i have to print 'Terms and Conditions' text only on the back side of last page of the PO.
    Presently script contains THREE pages ( FIRST, NEXT, TERMS).
    FIRST with attributes :
    next page as NEXT , Print mode T.
    NEXT with attributes :
    next page as NEXT and print mode T
    TERMS with attributes :
    next page as ' '.
    I Created 'TERMS AND CONDITION' window.For TERMS page i selected 'TERMS AND CONDITION' window only.
    So page window of 'TERMS'  is 'TERMS AND CONDITION'  and i included standard text in 'TERMS AND CONDITION' window.
    If PO contains 9 pages( that means MAIN WINDOW data flows up to 9th page with footer also ).
    So i have to print standard text(Terms and conditions) back side of 9th page only not on all pages.
    So total PO contians 9 pages with 10 prints.
    Please help to solve the issue
    Thanks and Regards
    Venkata swamy

Maybe you are looking for