How to convert lower case to upper case?

Hi,
How to convert lower case letter to upper case and vice versa?

TRANSLATE
Variants:
1. TRANSLATE c TO UPPER CASE.
2. TRANSLATE c TO LOWER CASE.
3. TRANSLATE c USING r.
See String processing
Variant 1
TRANSLATE c TO UPPER CASE.
Variant 2
TRANSLATE c TO LOWER CASE.
Effect
The first variant converts all lowercase letters in c to uppercase. The second variant converts all uppercase letters to lowercase.
Example
DATA letters(3) TYPE C.
MOVE 'abc' TO letters.
TRANSLATE letters TO UPPER CASE.
letters now has the contents 'ABC'.
Note
The classification of upper- and lowercase, and the actual characters used are determined by the current text environment (see SET LOCALE LANGUAGE). Problems may occur when the system converts the characters, if the wrong language has been specified in SET LOCALE LANGUAGE, or if data has been processed that does
Variant 3
TRANSLATE c USING r.
Effect
Replaces all the characters in the field c according to the rule in field r. c1 containscharacter pairs. The second character in each pair replaces the first. If r does not contain a character in c, this character remains unchanged. r can also be a variable.
Example
DATA: letters(20) TYPE C VALUE 'abcabcabcXab',
      change(15)  TYPE C VALUE 'aXbaYBabZacZ'.
TRANSLATE letters USING change.
letters now contains 'XaZXaZXaZXXaZ'.
REWARD IF USEFUL

Similar Messages

  • How to convert a string from upper case to lower case in FOX formula

    Hi Experts,
    How to convert a string from upper case to lower case in FOX formula?
    Thanks,
    Cheers!!!
    PANKAJ

    The last result.append( c ) should be:
    result.append( Character.toLowerCase(c) );

  • How to convert a string from lower case to upper case withour using transla

    Hi all,
    how to convert a string from lower case to upper case withour using translate,
    Thanks in Advance,
    Reddy

    Refer to this related thread
    Re: hi guys this very urgent please help

  • How to convert lower case letter to upper case letters

    hai all,
    How to convert lower case letter to upper case letters??
    Thanks & Regards,
    suresh

    Hi Suresh,
    Include ALL_CAPITAL in the RSKC Tx.
    Also try this code in your Transfer rule,
    TRANSLATE TRAN_STRUCTURE-(Info Object Name) TO UPPER CASE.
    RESULT = TRAN_STRUCTURE-(Info Object Name)
    Hope this solves................

  • Converting lower case to upper case data of flat file

    Hi All,
    I have a requirement purche order creation by using bapi function module.My requirement is  when I am uploading the flat file and if flat file  contains the data in lower case then before passing it to the function module i want to convert it in to Upper case. please tell me how can I do this.
    its very urgent.
    Regards,
    Amit.

    hi,
    Use translate statement ..
    DATA letters(3) TYPE C.
    MOVE 'abc' TO letters.
    TRANSLATE letters TO UPPER CASE.
    write : letters.
    Also refer
    /people/alvaro.tejadagalindo/blog/2006/12/21/does-abap-lacks-of-string-processing
    Regards,
    Santosh

  • How to translate the key words in ABAp program from lower case to upper cas

    How to translate the key words in ABAp program from lower case to upper case?

    Hi Kittu,
    You need to set the Pretty Printer settings to achieve key words in ABAP program from lower case to upper case.
    Utilities -> Settings -> Pretty Printer (tab) -> Select third radio button.
    Thats all.
    <b>Reward points if this helps.
    Manish</b>

  • How do I change sentences in lower case to upper case?

    How do I change sentences in lower case to upper case, and vice versa?

    Castleton228 wrote:
    I'm trying to make all my lower case copy into Upper Case, your advice worked, however, I cannot seem to save the change, or specifically copy and paste the new CAPITALISED text into another document.
    Any thoughts?
    Using Pages in iworks09
    Thanks for any tips
    Tim
    Tim,
    In that case, use Peter's second suggestion, "Wordservice".
    Jerry

  • Rfcnpass converts passwords to all upper case

    All,
    I am trying to synchronize my passwords on my SAP systems by using rfcnpass which is delivered in the RFCSDK. I am using the latest 7.1 version. This worked great until we upgraded our SAP systems to 7.0. Now when I run rfcnpass it changes the password to what I enter, but it converts it to all upper case. Does anyone know how to get by this issue ?
    Sean

    Julius Bussche wrote:
    Synchronizing passwords is pre-destined to cause problems - either because they do grow out of sync anyway, or the systems' policies differ or because your weakest common password rule is dictating the security level to the strongest system and when you get hacked you will not know where it came from (if you notice at all...).
    I fully agree - also stated in [SAP note 376856|https://service.sap.com/sap/support/notes/376856].

  • Convert workarea content to upper case

    Hi experts,
    I have a work are which I  need to convert all its contents to UPPER CASE.
    is there a way i can do that without using TRANSLATE  for every field in that work area??/
    Thanks,
    Abdul.

    Hi Buddy,
    I tried for only one field and please do yourself for remaining fields .
    TYPES :BEGIN OF ls_tab1,
      field TYPE char200,
      END OF ls_tab1.
    DATA it_tab1 TYPE STANDARD TABLE OF ls_tab1 INITIAL SIZE 0.
    DATA lt_tab1 LIKE LINE OF it_tab1.
    lt_tab1-field = 'This is my first program to convert lower case to upper case  without using transalate syntax.....'.
    APPEND lt_tab1 TO it_tab1.
    READ TABLE it_tab1 INTO lt_tab1 INDEX 1
    IF sy-subrc EQ 0.
      WRITE lt_tab1-field COLOR 3.
    ENDIF.
    DATA :lv_counter TYPE i,
          uccp TYPE i,
          int TYPE i.
    LOOP AT it_tab1 INTO lt_tab1 .
      lv_counter  = STRLEN( lt_tab1-field ).
      WHILE int  NE lv_counter.
        IF lt_tab1+int(1)  EQ 'a' OR   lt_tab1+int(1) EQ 'b'  OR  lt_tab1+int(1) EQ  'c' OR lt_tab1+int(1) EQ  'd'
           OR lt_tab1+int(1) EQ 'e'  OR  lt_tab1+int(1) EQ 'f' OR lt_tab1+int(1) EQ 'g' OR lt_tab1+int(1) EQ 'h'
           OR lt_tab1+int(1) EQ 'i'  OR lt_tab1+int(1) EQ 'j' OR lt_tab1+int(1) EQ'k' OR lt_tab1+int(1) EQ'l' OR lt_tab1+int(1) EQ 'm'
           OR lt_tab1+int(1) EQ'n' OR lt_tab1+int(1) EQ 'o'   OR lt_tab1+int(1) EQ 'p'  OR lt_tab1+int(1) EQ 'q'
          OR lt_tab1+int(1) EQ 'r' OR lt_tab1+int(1) EQ 's' OR lt_tab1+int(1) EQ 't' OR lt_tab1+int(1) EQ 'u'
           OR lt_tab1+int(1) EQ 'v' OR lt_tab1+int(1) EQ 'w' OR lt_tab1+int(1) EQ 'x' OR lt_tab1+int(1) EQ 'y'
          OR lt_tab1+int(1) EQ'z'.
          CALL METHOD cl_abap_conv_out_ce=>uccpi
            EXPORTING
              char = lt_tab1+int(1)
            RECEIVING
              uccp = uccp.
          IF uccp BETWEEN 97 AND 122.
            uccp = ( uccp - 32 ) .
    *        TRY.
            CALL METHOD cl_abap_conv_in_ce=>uccpi
              EXPORTING
                uccp = uccp
              RECEIVING
                char = lt_tab1-field+int(1).
          ENDIF.
        ENDIF.
        int =  int + 1 .
      ENDWHILE.
      MODIFY it_tab1 FROM lt_tab1 .
    ENDLOOP.
    write: 'After converting to upper case'.
    READ TABLE it_tab1 INTO lt_tab1 INDEX 1
    IF sy-subrc EQ 0.
      WRITE lt_tab1-field COLOR 3.
    ENDIF.
    Please let me know further any issues .
    Thanks
    Surender

  • How to set up an automatic upper case at the begining of a sentence

    Can someone help me if or how to set up an automatic upper case at the beggining of each sentence. I am doing huge amount of writing and just got fed up with it.

    What application? Pages? If so, that option (and many others) is not available in the current version. You can use the previous version which should be in your application folder. Or you can do what I finally did and use Open Office or Libre Office.

  • BigString to Big String - how do I detect index of upper case?

    bigString to Big String - how do I detect index of upper
    case?
    Is there a way to detect, insert space and replace the upper
    case letters in a string?

    Something like this?
    <CFOUTPUT>#REReplace("bigString", "[A-Z]"," "&
    Mid("bigString", REfind("[A-Z]", "bigString"),
    1))#</CFOUTPUT>
    This will at least give you a break at the first upper case
    letter. You can then replace the first character in the result with
    an upper case as well, which I didn't do, since I figured that you
    knew how to do that.
    Phil

  • How to Convert Lower Case name to Upper Case?

    Hi Friends,
    I have a requirement in my Application.
    When User gives Student's name in Lower Case, always convert to Upper case and send it to SAP(R/3).
    How is this possible?
    Can anyone help me out in this regard,if possible please provide some sample code so that i can understand a bit clearly.
    Thanks and regards,
    Chandrashekar.

    Check for java String methods.
    http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html
    String nameString = "Name".toUpperCase();
    or
    String nameString = nameString  = wdContext().currentContext().getName().toUpperCase() ;
    Regards,
    Sridhar

  • How to convert a text file in lower case to upper case?

    I've a beginner in java world and I just come through the tutorial in http://java.sun.com/docs/books/tutorial/essential/io/filestreams.html showing how to copy a text file:
    import java.io.*;
    public class Copy {
    public static void main(String[] args) throws IOException {
         File inputFile = new File("farrago.txt");
         File outputFile = new File("outagain.txt");
    FileReader in = new FileReader(inputFile);
    FileWriter out = new FileWriter(outputFile);
    int c;
    while ((c = in.read()) != -1)
    out.write(c);
    in.close();
    out.close();
    And I would like to ask how to covert all lower case letters in input file to upper case letter in output file at the same time of copying.
    I guess it'll be using Character.toUpperCase(c), but I don't know how to do it actually.
    Any help would be much appreciated.

    Hope this helps
    import java.io.*;
    public class Copy {
    public static void main(String[] args) throws IOException {
    File inputFile = new File("farrago.txt");
    File outputFile = new File("outagain.txt");
    FileReader in = new FileReader(inputFile);
    FileWriter out = new FileWriter(outputFile);
    BufferedReader buff = new BufferedReader(in);
    String c;
    while ((c = buff.readLine()) != null)
    out.write(c.toUpperCase());
    in.close();
    out.close();
    }

  • How to CHECK WHETHER LOWER CASE OR UPPER CASE  IN CUSTOM TABLE

    Dear Friends,
                     I have a requirement where from  the flat file  i have collected into the internal table is as below :
      IDNo.     Name     Date      Location   Designation  Dept
      101       raja      4/12/2007  Delhi      manager      HR
      102       james    4/12/2007  Delhi      clerk          HR
    now iam checking against my custom table where iam   if the designation for the employee name already exists then i shouldnt modify/update the custom table that record
      now iam facing a problem where is the flat file is always having the Lower Case only ,
    as per the scenario  if my custom table already have the employee name i shouldnt modify/update i.e i shouldnt overwrite,
    this scenario is working but it is failing in the case
    by chance in the Custom table the employee name or designation is in Upper Case  the condition where iam checking in the code  is failing as the flat file data coming into the internal table is having always lower Case.
    So could any one please let me know how i should check in my custom table whether iam having upper case or lower case and how can i make it lower case ?
    because iam able to manage in the case where if the flat file data coming in Upper case i can check before only by
    using Translate to lower case . how i unalbe to  check for the data coming from the Custom table if  in Uppercase , so i want to change that to lower case then checking my condition whether that data already exists in my custom table before modifying the data coming from the flat .
    because the condition is failing when the data in the custom table is in upper case and the Flat file data is in lower case.
    please help how i can check for the data in the Custom table is in upper case and then change it to lower case.
    Regards
    Madhuri.

    Hi Madhuri,
    Translate both data in your flat file & custom table to lowercase before comparing them. With that, you're able to identify if there's a differences in for both data.
    If you're putting data that is pulled from custom table, what you can do is after selecting/reading the data, translate to lowercase or uppercase (whichever you prefer) but make sure if you translate to lowercase, your data in the flat file must be lowercase to and vice versa.
    Happy doing !!..
    Regards,
    Loo

  • Convert the entrie to upper case

    Hello Experts,
    My client is asking me to convert the entries which are existing in database to upper case and display in upper case in transaction from where he is calling f4 help. and also he wants to display the same data in upper case in adobe forms.
    Please let me know how to make it possible.
    Thanks in advance.
    Indra.

    Hi,
    In self developed programs, you can use TRANSLATE command.
    In standard F4 help, you cannot convert to uppercase. The use of upper/lower case is a property of domain.
    Best regards,
    Leandro Mengue

Maybe you are looking for

  • Kuler in Illustrator CC not active

    The Kuler Panel in Illustrator CC doesn't react, it is grey. Can't import Kuler themes. I'm signed in in Illustrator as well as online in Kuler. It is possible to work in the Kuler App online. What's wrong with Illustrator? Thank you for answers

  • Suppliers API's in 11i

    Hello, I am creating an application similar to iSupplier where I need to create Supplier, Supplier Site and Contacts. If the supplier clicks submit the record should created right away. There would a delay if I have to use the supplier interface tabl

  • Hiding some menu's from selected users....

    Hi gurus, I want to hide some of the options such as Export ToEXcel, Export To PDF, Form Settings for some of the users. I am not finding the option for the same. I am giving "No Authorisation" fro manager id to the perticular user for "Document sett

  • UPK Managing Title Database

    Hi, We are now using a licensed version of Oracle UPK. This has solves a lot of our problems. However, we still have one more to go; When creating a title, the title is added to the Title list/database. My question is how to delete (old) Titles from

  • In need of some confirmati​on

     I had verizon for 3-6 days back in feb, I wont drag a huge story but........... its may and I havent recieved the small portion of my deposit that was said to be returned when a special department looked it over. I guess Im asking if they actually e