Getting ASCII code of a character in ABAP. How?

Hi,
i need use ascii codes in my program.
I must get ascii code of a character. How can i get ascii code of a character?
Thanks.

Chk these links:
http://www.sapdb.org/7.4/htmhelp/07/a16384a57411d2a97100a0c9449261/content.htm
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/function-to-get-ascii-code-234764

Similar Messages

  • I keep getting error code 54 when synching iphone 5, how do i fix?

    i keep getting error code 54 when synching iphone 5, how do i fix?

    Hi papabear74,
    Try using the steps in the following article to help you troubleshoot this issue:
    Resolve iOS update and restore errors in iTunes
    http://support.apple.com/kb/TS1275
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • I have a Canon MG6120. When I start it I get error code 5050. Does anyone know how to resolve this?

    I have a Canon MG6120 all in one. When I start it I get error code 5050. Does anyone know how to resolve this, besides power off/ power on?
    Solved!
    Go to Solution.

    Hello gregg.
    Please try the following to see if we can resolve your issue:
    1.  Turn the printer off.
    2.  Unplug the power from the printer for at least 5-10 minutes.
    3.  While unplugged, remove any paper from the unit.
    4.  Double check for any obstructions found in the unit or paper paths.
    5.  If no obstructions are found, plug the power back in and turn the unit on.
    If the issue persists, the unit will require service for correction.  We apologize for this inconvenience.  Please contact our support group using the "Contact Us" option below for additional assistance.
    This didn't answer your question or issue? Find more help at Contact Us.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Getting error code 49 when downloading Bridge.  how do i fix this

    I am getting error code 49 when downloading Bridge.
    It seems Adobe CHAT is non-existent.  Can anyone help?

    The chat link can be elusive as can the people that support it over the weekend.  It does work, at least for most people, but not all.
    Chat support - For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    Make sure you are logged in to the Adobe site, have cookies enabled, clear your cookie cache.  If it fails to connect try using a different browser.
    Creative Cloud support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html ( http://adobe.ly/19llvMN )
    It looks somewhat like the following when it gets thru properly (I don't think the 24/7 is a true story)...

  • Getting Error Code 150:30 when opening Photoshop, how to fix?

    Getting Error Code 150:30 when opening Photoshop CS4, how to fix?

    Please refer:
    http://helpx.adobe.com/x-productkb/global/error-licensing-stopped-mac- os.html
    Regards,
    Ashutosh

  • Function module for getting ASCII number of the character

    I need to know the ASCII number of the appropriate character. Which function module can I use? Thank you

    hi,
    U can use this code below
    report demtest.
    data : c.
    field-symbols : <n> type x.
    data : rn type i.
    c = 'A'.
    assign c to <n> casting.
    move <n> to rn.
    write rn.
    This will convert 'A' to 65.
    OR try FM LIST_TO_ASCII
    Sri

  • I got a new 3gs a week ago and sync it with itunes which went ok. Today i tried to update from 4.2.2 to 4.2.3 and now itunes will not connect to my phone. I get error codes (6) or (14) depending on how i connect my phone

    I have tried everything to sort this out, uninstalling itunes etc, running without antivirus/firewall on, updating firewall/anti virus, i have spent allday trying to sort this out. can anyone here be of asistance.

    Try updating the iPhone on another computer or in another user acconut.
    Apple has an article for specific error codes here -> http://support.apple.com/kb/TS3694
    This device is not eligible for the requested build: Also sometimes displayed as an error 3194. If you receive this error, update to the latest version of iTunes. If you do have the latest version of iTunes, this can occur when you attempt to restore using an older .ipsw file. Try restoring in a new user to ensure that iTunes downloads a new IPSW. 3rd party security software or router security settings can also cause this issue, to resolve please follow Troubleshooting security software issues. Downgrading to a previous version of iOS is not supported.
    WTH.

  • ANTW:ASCII code

    Hi all,
    I wonder if we can get the ASCII code of a character and vice versa,
    obtain a character from an ASCII code ?
    Thanks by advance !
    - Manuel -Manuel,
    The conversion from character to ASCII has already been discussed on this list.
    Here is a copy of the answer Don Nelson gave:
    Roland,
    There's no method to do it, but it's pretty easy - just assign a "char" to
    an "int". For example:
    c : char = 'A';
    i : int = c;
    Pretty much the same idea as the way you'd do it in C.
    Don
    At 09:13 AM 8/7/97 -0400, Adolfsson, Roland wrote:
    I am trying to convert a character to its ascii value. Is there a Forte
    method that does this? I can't seem to find a documented method that
    does the character-to-ascii conversion.
    Any pointers would be greatly appreciated!
    /Roland Adolfsson
    OneWave Inc.
    Email: [email protected]
    ====================================
    Don Nelson
    Senior Consultant
    Forte Software, Inc.
    Denver, CO
    Corporate voice mail: 510-986-3810
    aka: [email protected]
    Edwin Lijnzaad
    Triple P
    P.O. Box 245
    4130 EE VIANEN
    Phone: +31 (0) 347 353 605
    Fax : +31 (0) 347 353 354
    Email: [email protected]
    Web : http://www.triple-p.com

    Hi,
    ASCII stands for American Standard Code for Information Interchange. Computers can only understand numbers, so an ASCII code is the numerical representation of a character such as 'a' or '@' or an action of some sort.
    For example :
    SQL> select ascii('Q') from dual;
    ASCII('Q')
            81
    SQL> select chr(81) from dual;
    C
    Q
    SQL> All the ASCII code here : http://www.lookuptables.com/
    Nicolas.

  • Need help with converting characters to ASCII code

    Hey. Im trying to write a program to make Caesar Ciphers by random numbers. This cipher must also wrap from front to end of ASCII code, so that if, for example, the character being ciphered is Z and its being modified by +3, the result ciphered character is not "]", but "c".
    Im planning on reading the text that the user inputs (using ConsoleIO) into a string and then seperating each character into a character[]. Then, i would like to find the ASCII code of each character and print out the ASCII code character of the old ASCII code + the modifier.
    So far, this is what i have (sorry for the length, i like to space things out so that its easier on the eyes and more organized... X-( ... ):
    public class EvanFinalB {
         static ConsoleIO kbd = new ConsoleIO();
         static String enteredPhrase;
         static int phraseLength;
         public static void main(String[] args)
              System.out.println("Enter a phrase and this program will cipher it into a secret message.");
              System.out.println("/nEnter your phrase here:");
              //read phrase
              enteredPhrase = kbd.toString();
              //find length of entered text
              phraseLength = enteredPhrase.length();
              //declare arrays for the individual characters of the entered text and the ciphered characters
              char[] enteredChar = new char[phraseLength + 1];
              char[] cipheredChar = new char[phraseLength + 1];
              //loop converting of entered text into seperate characters
              for(int x = 1; x <= phraseLength; x++)
                   enteredChar[x] = enteredPhrase.charAt(x);
                   cipheredChar[x] = cipher(enteredChar[x]);//call cipher() method to find new ciphered character
         //wrap from front to end of ASCII code
         static char cipher(char enteredChar)
              //choose random number to cipher message by
              int modifier = (int)(Math.random() * 26) + 1;
              if(enteredChar + modifier > 90)//90 is the ASCII code for "Z" which is the last capital letter
                   cipheredChar = (97 + (modifier - (90 - enteredChar)));//97 is the ASCII code for "a" which is the first lower case letter
              return cipheredChar[1];
    }The program is obviously in its early stages but (i started creating it today actually), if there is a simple method or anything that i can use to find the ASCII value of a character in order to use enteredChar so that 'enteredChar' is equal to the ASCII code of the new ciphered character, please help me out...Thanks
    P.S. If there's an easier way to go about creating a program for Caesar Ciphers, let me know.

    The following code is from my Java textbook Big Java by Cay Horstmann. It is not my code and it's just to guide you in your own cipher.
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.IOException;
       This class encrypts files using the Caesar cipher.
       For decryption, use an encryptor whose key is the
       negative of the encryption key.
    public class CaesarCipher
          Constructs a cipher object with a given key.
          @param aKey the encryption key
       public CaesarCipher(int aKey)
          key = aKey;
          Encrypts the contents of a stream.
          @param in the input stream
          @param out the output stream
       public void encryptStream(InputStream in, OutputStream out)
             throws IOException
          boolean done = false;
          while (!done)
             int next = in.read();
             if (next == -1) done = true;
             else
                byte b = (byte) next;
                byte c = encrypt(b);
                out.write(c);
          Encrypts a byte.
          @param b the byte to encrypt
          @return the encrypted byte
       public byte encrypt(byte b)
          return (byte) (b + key);
       private int key;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.util.Scanner;
       This program encrypts a file, using the Caesar cipher.
    public class CaesarEncryptor
       public static void main(String[] args)
          Scanner in = new Scanner(System.in);
          try
             System.out.print("Input file: ");
             String inFile = in.next();
             System.out.print("Output file: ");
             String outFile = in.next();
             System.out.print("Encryption key: ");
             int key = in.nextInt();
             InputStream inStream = new FileInputStream(inFile);
             OutputStream outStream = new FileOutputStream(outFile);
             CaesarCipher cipher = new CaesarCipher(key);
             cipher.encryptStream(inStream, outStream);
             inStream.close();
             outStream.close();
          catch (IOException exception)
             System.out.println("Error processing file: " + exception);
    }

  • HT4009 How long does it take for apple to return with the needed code for in app purchases.  We have a developer working through elance that states he submitted a finalized version last friday to apple and is still waiting to get the code back from Apple?

    We are being told by our elance developer that he is just waiting on apple to return the code for in app purchases with our app.  he says he had to submit a complete version before they would give it to him and that he did that last friday.  Needless to say i don;t beleive him.  Can anyone validate for me the process of getting the code installed into our app and how long it should really take.

    I'd say an average of one week, depending on backlog. Expect two if you are outside the US.
    The outage has caused some lingering effects that seem to be delaying things for some, however.
    Patience is key in all things when it comes to being a developer

  • ASCII code for return

    Hi all,
    What is the ASCII code of the return carriage? How can I check if a line finishes with a return?
    Regards.

    Hi all,
    What is the ASCII code of the return carriage? How can
    I check if a line finishes with a return?
    Regards.Try this link:
    http://www.asciitable.com/

  • ASCII Code in ABAP

    Hi Experts,
    We need to enter a unique ASCII character called 'US' or Unit Separator in a text file being generated through a program.
    The ASCII code for US is 31. However when we try and do it programmatically the character '#' is getting populated.
    The code is as follows:
    DATA : lv_sep type c.
    field-symbols : <xfs> type x.
    assign lv_sep to <xfs> casting.
    <xfs> = 0031.
    write lv_sep.
    Kindly help us out.
    Thanks and Regards,
    Ravi Bhatnagar

    Hi,
    This character is special one, so you can't print it out. In SAP all special charcter which can't be printed are replaced with placeholder #.  They are intended to do theri special purpose in flat file, once you open it.
    Do the following:
    - use fm HR_KR_XSTRING_TO_STRING to convert xstring with value  '1F' (30 decimal value) to string
    - write this string to certain place in internal string table (where you want later use it in the file)
    - download this table as to file
    - special character will do its purpose in text file
    This is the same functionality as you would be placing Line Feed (0x0A - 10 dec). It would be shown as # but once you open downlaoded file you don't see hash # anymore, but you see that new line in that place.
    Hope this is clear
    Regards
    Marcin

  • How can I get the ASCII code instead of Unicode?

    If I use getNumericValue to return the Unicode of a character, I found out "a" = "A". Is there any way I can find out the different code for capital letter and small letter? I'm thinking about ASCII code, any suggestion for which method to return the ASCII code?

    That is not what getNumericValue does. (Try getNumericValue('*'), for example, and you will see it returns -1.) If you want to find the Unicode value of a character, simply cast the character to an int:char letter = 'A';
    int unicodeValue = (int)letter;If the character you chose was in the ASCII character set, you will automatically have its ASCII code, because ASCII is simply the first 128 characters in the Unicode character set.

  • How to use : bind character in DB adapter Select Query SOA11g. Getting Error code :17003 .java.sql.SQLException: Invalid column index error

    Hi All,
    The Actual query to perform is below.
    SELECT name,number from emp  WHERE CASE WHEN :1='T' AND term_date IS Not NULL THEN 1 WHEN :1='A' AND term_date IS NULL THEN 1 WHEN :1='ALL' THEN 1 ELSE  1 END = 1;
    I have tried in DB adapter like below as a parameter for :1 as #vInputParam
    SELECT name,number from emp  WHERE CASE WHEN #vInputParam='T' AND term_date IS Not NULL THEN 1 WHEN #vInputParam='A' AND term_date IS NULL THEN 1 WHEN #vInputParam='ALL' THEN 1 ELSE  1 END = 1;
    Getting Error code :17003 .java.sql.SQLException: Invalid column index error.
    Please suggest me on using ':' bind character in DB adapter Select Query SOA11g.
    Can someone help me on this please?
    Thanks,
    Hari

    Hi,
    Could you please make sure your binding style(Oracle Positional,Oracle named..etc) of the Seeded VO and Custom Vo are same.
    This is the option you will get when you are extending your vo. So make sure that both are same.
    You can refer the below link too
    VO extension leads to "Invalid column index" exception
    Thanks
    Bharat

  • How do I get labview for linux to send out ascii code to a motion controller?

    I have posted part of this problem but I will now try to clearify things. I have an x-y stage that needs motion control. I have to run the motion controller from within a linux system (RedHat 7.1) due to others in the research area. I have found a motion controller card (PCI) that will run under linux. This card is not National Instruments. I understand that they do not have drivers for their controller cards. This other card comes with the companies own software that uses ASCII codes to move the motors on the stage. I was hoping to create a program that could call those ASCII codes to move the stage. An example would be if a user wanted to have the stage move to the right he would press a b
    utton on the screen instead of typing in whatever ASCII could that move to the right happens to be. How would I go about programming something like this? I have heard of others doing things like this but I am unsure of how to program labview to send out ASCII codes to a PCI card to move motors.

    > would I go about programming something like this? I have heard of
    > others doing things like this but I am unsure of how to program
    > labview to send out ASCII codes to a PCI card to move motors.
    Look in the manual to see get familiar with the sequences of codes you
    need to write, and more importantly, where you write them to. I suspect
    a memory location, but it could be a socket or port.
    Each of these locations will have a slightly different way of accessing
    it. Once you know, search devzone for how to do it on linux, or post
    back here.
    After you can send the codes to the right location, you probably want to
    build a state machine that simplifies the interface and prevents certain
    actions from taking place. Now determine which buttons or
    keys perform
    which actions and use either the event structure or the older polling
    for control changes to affect state changes in the state machine.
    I'm summarizing here assuming that you know what a state machine is and
    why you'd want to use it. If I'm assuming too much, do some research
    and post again with more specific questions. Also be sure to look at
    example VIs as they show how to respond to UI actions.
    Greg McKaskle

Maybe you are looking for