Conversion of lower case letters to upper case in ABAP

Moderator message: when you've got your answer to this, find out how to do it the other way for the subject of your posts!  Please do not use ALL CAPITALS as subject
Hi Experts
    How to convert lower case letter to upper case letter in ABAP
Edited by: Matt on Feb 13, 2009 6:55 AM - subject changed

Hi,
Check the below syntax
TRANSLATE text {TO {UPPER|LOWER} CASE}
             | {USING pattern}.
Regards,
Anki Reddy

Similar Messages

  • Upper/Lower case conversion

    Hi folks,
    Apart from the Infoobject General tab where an infoobject can be selected to allow Lower case letters, are there any other areas where this can be done? We need to allow this for a standard infoobject and thinking is that we can change this at some other level such as do a conversion at the datasource level so only uppper cases flow through. This is a char field but can contain both Upper cases and Lower cases. Right now, with the standard infoobject the DTP load fails when trying to load the data with lower case characters.
    Thanks for your help.

    Hi,
    As mentioned above you will have to use TRANSLATE command to do the conversion. Now you can either write a routine at Infoobject level or write a field routine for conversion. In case of infoobject routine again you might have to change the original infoobject so I would suggest you to go for Field level routine in transformation.
    RESULT = source_fields-XYZ.
    TRANSLATE RESULT TO UPPER CASE.
    Regards,
    Durgesh.

  • Conversation lower case to upper case by default not wanted

    Hi,
    Oracle converts lower case table names and columns names to upper case by default. To keep lower case letters names must be quoted. This "work around" is not acceptable.
    Is there a way to change this behavior either for the database or for a session?
    Thanks

    Easy answer. We are migrating from sybase ASE to
    oracle. Sybase supports mixed lower/upper case by
    default.Which is a proprietary behavior. After all these years of accusing Oracle of not conforming to standards, when they do (or come close) it bites them. <g>
    Users are familiar with reading column names like
    "RxCellsHec0Clp0" instead of "RXCELLSHEC0CLP0".
    Yes, there are users working directly with sql.If the users are used to putting the column name in double-quotes, then creating the table with identifiers in double-quotes will conform to the expected behaviour. That simply means that each and every reference to the table requires double-quote around the identifiers.
    And it is quite impossible to get them changing all their queries
    from select RxCellsHec0Clp0 from ...
    to select "RxCellsHec0Clp0" from ...One alternative is to wrap every table (of concern) with a view. My thought would be to leave the table with upper case identifiers, have the view with mixed-case identifiers, and use private synonyms to redirect the user to the view.
    The assumptions are
    1) user-oriented security is in place
    2) users use the quoted-identifier syntax

  • Is Central Search Searchable Via Upper and Lower Case Letters

    Good evening,
    Does anyone know if Central Search is searchable using both upper and lower case letters?  We have the functionality enabled and can only bring back search results when we use upper case letters.  When we search on the same marketing object using lower case letters, we do not get any results. For example, TK2292 brings back marketing object TK0002292 but tk2292 does not bring back any results.  Advanced Search appears to be able to handle both search scenarios.  Any guidance would be greatly appreciated. 
    Regards,
    Gregg

    Hello,
    Did you put a breakpoint in the query method to check what you receive in the field 'marketing object' when you start from the central search of the advanced search?
    Is it different?
    Regards,
    Fred

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

  • Upper and lower case conversion

    Hi,
    I need small help on conversions.
    I need to convert the data in database tables to lower case.
    Like i need to pick some data from a database table. The data stored in the database table is in uppercase. Here i need to convert the data to lowercase through the select statement. Is there any way to do this.
    Regards,
    Ram

    Hi ram,
    1. in r/3,
       working with upper/lower case,
       with database tables, is very tricky.
    <b>(SIMPLY USING SQL WILL NOT
    FETCH BOTH KIND OF DATA - UPPERCASE/lowercase/MIXED)</b>
    2. For your requirement,
    3.
      a) just get ALL data from vendor master
         (without any filteration of name)
          in ITAB
      b) LOOP AT ITAB.
         IF ITAB-VENDORNAME CS 'GOOD'.
         ELSE.
         DELETE ITAB.
         ENDLOOP.
    4. After the step (b),
      <b> itab will contain only GOOD vendors. 
      (irrespective of capital / lowercase) / mixedCASE</b>
    regards,
    amit m.

  • Upper and Lower case letters

    Hi Folks
    I  have lower case letters coming in lot of fields - The lower case letters are coming in Key and Data Fields. In short my 90% od the infoobject have this challenge.
    I know I have following 2 options
    (1) Convert to upper in transformation
    (2) change the infoobject setting.
    I read couple of messages and I know putting "Convert to upper" in routines is a better option.
    Now I am trying to look why the option 2 is not good.
    I can guess the following reasons but I am looking for an SAP help document which can confirm the same.  Or if any users have experinced this issues when you allow lower case letters.
    (a) F4 list can take longer, this can impact query perfromance
    (b) Indexing can take longer.
    (c)Search will become case sensitive- SAP gives a warning when you switch on lower case letters.
    regards
    Poonam

    Hi Folks
    I  have lower case letters coming in lot of fields - The lower case letters are coming in Key and Data Fields. In short my 90% od the infoobject have this challenge.
    I know I have following 2 options
    (1) Convert to upper in transformation
    (2) change the infoobject setting.
    I read couple of messages and I know putting "Convert to upper" in routines is a better option.
    Now I am trying to look why the option 2 is not good.
    I can guess the following reasons but I am looking for an SAP help document which can confirm the same.  Or if any users have experinced this issues when you allow lower case letters.
    (a) F4 list can take longer, this can impact query perfromance
    (b) Indexing can take longer.
    (c)Search will become case sensitive- SAP gives a warning when you switch on lower case letters.
    regards
    Poonam

  • My itune gift card says it's not authorized.  I've tried to redeem by typing in upper case letters and lower case letters.  I've never had this problem before, what do I do so I can use this gift card?

    I bought an itunes gift card yesterday and I have tried to redeem, but when I do I get a message the card has not been authorized.  I have typed in typed in the code as seen mostly upper case and I have tried lower case also.  Neither is working.  I've never had this problem before.  Should the store where I purchased it from done something to supposedly "activate" it.  I'm at a loss.  I do not have the store reciept a friend does, and I'm sure she desposed of it.

    Yes, the retailer is supposed to activate the card. Otherwise they'd lose hundreds to shoplifting. What you normally should do is go back the retailer from whom you purchased the card and discuss the problem with them. They should either correctly activate the card or give you a new one. If they refuse to help, as some retailers do, or this was a gift so you cannot contact the retailer, go here:
    iTunes Support
    and follow the instructions to report the issue to the iTunes Store.
    Regards.

  • HELP!!! can't change upper case letters to lower case in document

    How do you change from upper case to lower case in a document - I have tried everything and I'm going nuts! I have a new i-mac with Leopard and have put together a document in IWorks - Pages 08 - cannot find a simple way to change cases - please help. THanks

    Download the free Word Service from Devon Tech ~ Change case plus many more options will then be available from the Services menu under the Application name in the Menu bar.
    http://www.devon-technologies.com/products/freeware/services.html

  • Upper to lower case

    is there any function module to manage upper case and lower cases

    Hi,
    DATA letters(3) TYPE C.
    MOVE 'abc' TO letters.
    TRANSLATE letters TO LOWER CASE.
    For more infromation...
    TRANSLATE
    Variants:
    1. TRANSLATE c TO UPPER CASE.
    2. TRANSLATE c TO LOWER CASE.
    3. TRANSLATE c USING c1.
    4. TRANSLATE c ...FROM CODE PAGE g1...     TO CODE PAGE g2.
    5. TRANSLATE f ...FROM NUMBER FORMAT n1... TO NUMBER FORMAT n2.
    Note
    Like all string processsing statements, you can only use character-type operands here.
    If the type of an operand is not STRING, the operand is treated like a type C field, regardless of its actual type, even though no actual conversion takes place.
    In an ABAP Objects context, a more severe syntax check is performed that in other ABAP areas. See Only character fields allowed in 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).
    Variant 3
    TRANSLATE c USING c1.
    Effect
    Translates the contents of c according to the rule in field c1.
    When a character from c corresponds to a character from c1, it is replaced by the next character that occurs in c1. If the character appears more than once in c1, its first occurrence is used in the replacement. If a character from c does not occur in c1, it remains unchanged.
    Example
    DATA: letters(20) TYPE C VALUE 'abcabcabcXabc',
          change(15)  TYPE C VALUE 'aXbaYBabZacZB'.
    TRANSLATE letters USING change.
    letters now contains 'XaZXaZXaZXXaZ'.
    Variant 4
    TRANSLATE c ...FROM CODE PAGE g1 ...TO CODE PAGE g2.
    Parts marked with " ..." are interchangeable
    TRANSLATE c TO   CODE PAGE g2.
    TRANSLATE c FROM CODE PAGE g1.
    Effect
    Converts the contents of the field c from character set g1 to character set g2. This variant uses the conversion table g1 to determine the SAP character, which is then used to determine the new character from g2.
    Transaction SPAD allows you to display and maintain character sets. If one of the conversion tables does not exist, the runtime error CONVERSION_CODEPAGE_UNKNOWN occurs. Conversion combinations that are maintained as part of the runtime system for performance reasons do not trigger runtime errors, and you cannot change them using Transaction SPAD.
    Example
    DATA c(72) TYPE C.
    TRANSLATE c FROM CODE PAGE '1110' TO CODE PAGE '0100'.
    This statement converts the contents of field c from the HP-UX character set to IBM EBCDIC.
    Note
    Fields with types I, P, F, and X remain unchanged by the conversion. The syntax check only allows character fields for specifying the codepage. However, since the codepage is maintained in table TCP00 as a type N field with length 4, you should use this type.
    Variant 5
    TRANSLATE f ...FROM NUMBER FORMAT n1 ...TO NUMBER FORMAT n2.
    Parts marked with " ..." are interchangeable
    TRANSLATE f TO NUMBER FORMAT n1.
    TRANSLATE f FROM NUMBER FORMAT n1.
    Effect
    Converts the number formats in f. Currently, the number formats '0000' (HP, SINIX, IBM) and '0101' (DEC-alpha OSF) are supported. Other formats trigger the runtime error TRANSLATE_WRONG_NUM_FORMAT . If you omit FROM NUMBER FORMAT or TO NUMBER FORMAT, the system uses the system number format.
    Example
    DATA: f TYPE F,
          hex(2) TYPE X,
          nform LIKE tcp00-cpcodepage.
    The contents of fields hex and f are stored in /ARCHIV
    from another platform. hex is stored in a valid number
    form when it is saved, and can therefore be read on
    all platforms.
    READ DATASET '/ARCHIV' INTO hex.
    READ DATASET '/ARCHIV' INTO f.
    nform = hex.  "Conversion from non-host-specific. HEX into N(4)
    TRANSLATE f FROM NUMBER FORMAT nform.
    Effect
    Converts the contents of f from the nform format of a given platform into the system representation.
    Note
    This converts fields with types I and F. As in variant 4, you should define the number formats with type N and length 4.
    You can display system codepage and number formats using the function module SYSTEM_FORMAT. This allows you to store additional information for archiving purposes.
    Note
    Performance:
    Converting lowercase letters to uppercase (or the other way round) in a 10 byte character field requires around 7 msn (standardized microseconds).
    If you use ... c USING c1... to replace two characters of a 10 byte character field,the runtime is around 9 msn.
    Note
    Runtime errors:
    TRANSLATE_WRONG_NUM_FORMAT: Invalid number format.
    Don't forget to reward

  • Batch Master Creation with lower case letters

    Hi,
    While creating batch master via msc1n, sytem automatically change lower case letters of bach ID to upper case letters.
    Can anyone please guide me, where are the settings in the system for this change?
    Regards,
    M.S.Baraneedharan

    Conversion Routine
    Conversion takes place when converting the contents of a screen field from display format to SAP-internal format and vice versa and when outputting with the ABAP statement WRITE, depending on the data type of the field.
    If standard conversion is not suitable, it can be overridden by specifying a conversion routine in the underlying domain.
    A conversion routine is identified by its five-place name and is stored as a group of two function modules. The function modules have a fixed naming convention. The following function modules are assigned to conversion routine xxxxx:
    CONVERSION_EXIT_xxxxx_INPUT
    CONVERSION_EXIT_xxxxx_OUTPUT
    The INPUT module performs the conversion from display format to internal format. The OUTPUT module performs the conversion from internal format to display format.
    If a screen field refers to a domain with a conversion routine, this conversion routine is executed automatically each time an entry is made in this screen field or when values are displayed with this screen field.
    I have to correct myself . if the entry in small letters is allowed or not is already defined in the domain of the field.
    You can see this in  SE11.
    set radio button to Domain and enter CHARG in the domain field and click display.
    in the definition tab you can see a box for Lower Case, which means that lower case entries are only allowed if this box is activated. (btw: the field for the conversion routine can be seen  above)

  • 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();
    }

  • Can I make the keyboard display lower case letters?

    Sorry for possibly a totally n00bie question....I'm completely new to Apple products. I just bought my first Apple product yesterday, iPad Air (full size).
    My question is in regard to the virtual keyboard. It displays the letters in upper case, so it makes it difficult to determine between upper and lower when I press the shift key because it doesn't look any different.
    Is there a way to make the keyboard display lower case letters when in lower case mode and vica versa for upper case?

    In my opinion, this is still one the silliest oversights in design by Apple.  They can make the little switch button on flashlight icon in the control tray toggle between up and down, but they can't toggle the case of the letters to reflect the status of the Shift key?  Seriously...without actually using your phone, can you tell me which icon represents Shift being enabled?  Is it the black arrow with the white background or the white arrow with the grey background?

  • 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

  • Internal Order match-code fail becuase Upper-Lower case

    Hi
    I'need to search Internal Order using a piece of teh Order description.
    Unfortunately the description COAS-KTEXT is case sensitive, and the Order is not found if Upper/lower case rules are not respected. I Have create a new Z match-code, bust this has the same problem.
    Any Idea to solcve thsi issue ???
    Thanks for your help.
    Claudio

    Hello
    pls check OSS note 75233, is decribed the solucion you are looking for.
    Solution
    Check whether an F4 search for short text is required.
    You must then either allow for the fact that the selection criteria "short text" is case-sensitive, or you can change all the short text to uppercase. This change is then effective during all displays and entries of the short text for the order and cannot be reversed. Any information which is provided in lowercase letters is then lost.
    You should also consider creating an index for the field AUFK-KTEXT.
    If you want to change to uppercase letters, proceed as follows:
    1. Modify the table AUFK. The field KTEXT requires another data element with a domain in which the flag "lowercase letters" is not marked. The most effective solution is to copy the data element and the domains and in addition to the descriptions, change only flag "lowercase letters"
                  This change means that for overhead cost orders (transactions KO01, KO02) only short text in uppercase letters can be recorded. 
    2. To change the already existing database entries to uppercase letters run report RDOTXT2U which is contained in the standard program and the current version of which is shown below. Please read the documentation for this report.

Maybe you are looking for

  • Unable to connect iPhone 6 and iPad mini via bluetooth for handoff iOS 8.1

    Hi, I have been trying to use handoff(Continuity)  between my iPad mini and iPhone 6 both using iOS 8.1. I managed to be able to do it with iOS 8 with a 5c instead of a 6 but now my iPad can not be detected on my phone and vice versa and if they do a

  • Employee and Group responsible being overwitten when clicking "Change".

    Hi All, I have searched the forums for a solution to a problem I have had but did not get the bottom of it. I have done some debugging and managed to sort it and thought I'd share my findings with you. Problem: You are in the Web interaction centre (

  • Assigning mass variables

    Inside a movie clip on the stage i have 15 more movie clips, called box1 - box 15. inside each box instance is a text field called date. i want to fill in the text field in box1 with the current date, and box2 with tomorrow's, and so on. How can i as

  • UME actions

    Hi All I have a question for you! How can I indicate the actions my application has? This is needed to assign permissions to roles and groups in the <i>WAS user management</i>. King Regards

  • Building a entire site????

    I am trying to create a entire flash website and I am having some script troubles making my buttons work. I have my first layer named codes this has my codes such as: function menuChoice1(event:MouseEvent):void this.gotoAndStop("pagesaboutus"); "abt_