Reading context on upper case

Hi All!!
I have done a Web Dynpro ABAP which access to a table of the database to retrieve some entries. This access is made by a field introduced on the main view.
The data on the table are sensitive to capital and small letters.
I use the method if_wd_context_element->get_static_attributes to get the value of the field on the main window, but this method retrieve the value on capital letters, being this a problem, because doesn´t find any value on the table.
Somebody knows if this problem has solution??
Thankfull answers will be rewarded.
Thanks and regards,
Manuel.

Hi Alex,
I have not been clear at all, sorry.
The field I read on the main view could be a name or surname, or company initials.
The value of the field could be 'Smith', 'BBA Company', ...
I hope the question will be clearer.+
Thanks and regards,
Manuel.

Similar Messages

  • How can I read an input which only contain the 26 upper case letter

    Are there any method that can read an input which only contain 1 character and it is in upper case too.
    should I use readChar( ), or readString( )??
    How should I implement them if I do use one of them?
    thx

    Try this :
    import java.io.*;
    public class Read
    public static void main(String[] x)
    System.out.println("Upper case char typed : "+readUpperCaseChar());
    public static char readUpperCaseChar()
    // method that read char and return the last upper case char
    char x='\0',tmp='\0';
    try
    while(tmp!='\n')
    tmp=(char) System.in.read();
    if(tmp >= 'A' && tmp <= 'Z')
    x=tmp;
    catch(IOException ioex)
    ioex.printStackTrace();
    return x;

  • 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 cast a fieldinput value to upper case.

    Im not a java programer I guess that this must be a silly thing.
    Im searching data in R/3 from 2 fields 1 numeric and the other alphanumeric. This alphanumeric fields if I put it in upper case works, if I wirte it in lower case doesnt works.
    In R/3 when I test the FM doesnt matter if I put it lower or upper case, it works fine.
    so I wanna know how can I in WD cast the value that I put in that fieldinput be converted to upper case when I hit the search button.
    Thx

    > Im not a java programer I guess that this must be a
    > silly thing.
    >
    > Im searching data in R/3 from 2 fields 1 numeric and
    > the other alphanumeric. This alphanumeric fields if I
    > put it in upper case works, if I wirte it in lower
    > case doesnt works.
    >
    > In R/3 when I test the FM doesnt matter if I put it
    > lower or upper case, it works fine.
    >
    > so I wanna know how can I in WD cast the value that I
    > put in that fieldinput be converted to upper case
    > when I hit the search button.
    >
    > Thx
    Hi,
    When you test the FM in SE37 in R3 there is an option at the top of the screen Called Uppercase/Lowercase - this controls whether the input is automatically converted to upper case for alphanumeric fields.
    The other option you have, if it is a custom FM, is to translate the input of the alphanumeric fields in the ABAP - it is quite common to have to translate or convert input data to make sure it is in the same format as the backend system.
    I prefer to do this sort of conversion on the backend system as usually you have a better guarentee that it will be in the correct format, than if you do it in the Java element.
    Just my opinion,
    Gareth.

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

  • Why does my MacBook start typing in upper case even though Caps lock is off?

    On occasions, when typing, my MacBook starts to type in upper case even though the Caps lock is off? This is not a physical sticking of the shift key as it happens even when using a USB keyboard? I have to use the shift key kind of in reverse to revert to lowercase entry.
    I have checked settings and I cannot find anything that could be causing it.
    Really bloody annoying!
    Can anybody help.
    I have a two week old MBP w Retina Display. This did happen on my old MBP and I did restore this new MBP from my Time Capsule disk so assume I brought the problem with me so to speak.

    Do you have "sticky keys" turned on under Accessibility by accident?

  • 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

  • FM to translate first letter of every word to upper case.

    Hi all,
    I have a requirement to change the first letter of every word in sentence to Upper case.For example if the sentence is 'fifty eight thousand' it has to be changed to 'Fifty Eight Thousand'.Is there any FM to acheive this? Any help would be highly appreciated.
    Thanks and Regards
    Kiran.

    it is useful for u :
    FM:ISP_CONVERT_FIRSTCHARS_TOUPPER
    OR u can user below code:
    translate output_string to lower case.                 
      pos_max = strlen( output_string ) - 1.
      pos = 0.
      assign output_string+pos(1) to <poi>.
      assign input_string+pos(1)  to <hpoi>.
      <poi> = <hpoi>.
      assign input_string+pos(*) to <rest>.
      while <rest> ca separators.
        pos = pos + sy-fdpos + 1.
        if pos > pos_max. exit. endif.
        assign output_string+pos(1) to <poi>.
        assign input_string+pos(1)  to <hpoi>.
        <poi> = <hpoi>.
        assign input_string+pos(*) to <rest>.
      endwhile.

  • Update column data to Upper Case in parent and child table

    Hi ,
    I am facing issue while updating column value to upper case in parent table and child table. How can i do that ?
    when updating parent row:
    ORA-02292: integrity constraint (XXXXXXXXXXXXXX_FK) violated - child record found
    When updatng corresponding child row:
    ORA-02291: integrity constraint (XXXXXXXXXXXXXXXX_FK) violated - parent key not found
    how can i update on both the places ?
    Regards,
    AA

    I am facing issue while updating column value to upper case in parent table and child table. How can i do that ?
    Why do you need to do that?
    That is just ONE of several questions you should answer before you start modifying your data.
    1. What is your 4 digit Oracle version? (result of SELECT * FROM V$VERSION)
    2. If both values are the same case what difference does it make what that case is?hen you don't need to alter your original data.
    3. What is the source of the column values you are using now? If you change your data to upper case it will no longer be identical to the source data.
    4. What is your plan for enforcing future values to be stored in UPPER case? Are you going to use a trigger? Have you written and tested such a trigger to see if it will even work the way you expect?
    5. Why aren't you using a surrogate key instead of a 'business' data item? You have just demonstrated one reason why surrogate keys can be useful: their actual value is NOT important.
    You should reexamine your problem and architecture and consider other alternatives.
    One alternative is to add a new 'surrogate key' column to use as the primary key. Just create a new sequence and use a trigger to populate the new column. Your current plans will require a trigger to perform the case conversion so instead of the just use the trigger to provide the value.
    If the change is being done to facilitate searching you could just add a VIRTUAL column UPPER_MY_COLUMN and index that instead. Then you could search on that new virtual column and the data values would still be identical to the original data source.

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

  • Web template with Upper case

    hi guys I have a scenario that I wanted my project description to be upper case, so I went to transfer rules and converted the info object description to upper case, now when I go to my report and click selection all the project desciption shows in upper case.
    what i want is the selection criteria to force itself to be upper case,
    For e.g.
    If the user enters lower case it would still search upper case (as the data is now all converted to upper case)
    The variable is query designer, can this be done in the query designer or web template and if this cant be done ?

    used a customer excit variable and whatever the user enter convert it to upper case for search in query designer.

  • How do I male keywords (only) upper case in a JTextPane

    I'm using a DefaultStyledDocument subclass to handle SQL syntax highlighting but what I want to do is ensure that keywords are converted to upper case so as to maintain a "good" style without the hassle of shift or caps lock.
    Now, the StyledDocument seems the wrong place to implement this functionality as it should be just for display purposes while changing text to upper case is an actual change to the character values selected by the user.
    The JTextPane class itself has a replaceSelection(String content) method but this relies on the text being selected.
    I guess I could do this if I had a hook back to the JTextPane from my StyledDocument. When I find a keyword, select the text and replaceSelection.
    Is there a cleaner way to do this?

    Okay, top tip.
    I added the document listener which processed the text on each insert.
    At this stage, I've only implemented keyword checking on single character inserts (to capture changes as they are typed) - multi character inserts need to be handled differently.
    If I have a character I know can signal the end of a SQL keyword (space, carriage return, brace, parenthesis, comment etc) then I jump back to the last space in the document. This gives me the last "word" in the document.
    Remove the last character (as this is the character that has triggered the event) and then see whether it is upper case or not? If not, should it be (is it a keyword)? If so, insert the upper case String in its place.
    It was a bit fiddly to put the pieces together (a document listener which then has to use SwingUtilities to make the change using a third Runnable class) but it does exactly what I ask of it.
    I have to implement a similar algorithm now to cope with deletions (what if a delete the "a" at the end of "selecta") and multi-character inserts.
    Thanks for the advice. I've not used DocumentListeners before so this was doubly helpful.

  • How do I make my text field automatically upper case?

    How do I make my text field in a form automatically upper case?

    Use the following as the text field's custom Keystroke JavaScript (choose a Format type of Custom):
    // Keystroke script for text field
    event.change = event.change.toUpperCase();

  • How to get the first letter alone in Upper case?

    SQL*Plus: Release 9.2.0.1.0 - Production on Thu Jan 15 11:13:44 2009
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options.
    Hi all,
    Sorry if i am posting this one as a clone. I want the first letter alone in UPPER case in the given data. Is there any specific SQL function to do it or can we do it in REGEXP?
    I have tried with this below one query.
    select Upper(substr('oracle code',1,1))||substr('oracle code',2) from dual;
    Oracle code
    Is anything better than this in performance wise? If so please help me.
    Thanks,
    Ram

    Hi,
    what if the string is like this
    SELECT INITCAP(substr('oracle code Error ', 1, instr('oracle code Error ', ' '))) ||
           substr('oracle code Error', instr('oracle code Error ', ' '), length('oracle code error '))
    FROM dual;

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

Maybe you are looking for

  • Letter of credit check status not correct in VL01N

    Hi, Gurus, I activate both credit management and documentary payment. When I try to create delivery-VL01N with reference to a sales order, i assign an financial document with 100% depreciation. Suppse deliver amount exceeds this financial document, s

  • 2011 MBP (10.8.4) freezes exactly one hour after reboot

    Hello, I'm having an issue identical to this poster insofar as I can tell, but some test results are different for me. Exactly one hour after rebooting or starting the computer, applications become unresponsive, video stops playing, then a little whi

  • Problems because multiple AppleIDs and no help from iTunes Support

    I am a VERY frustrated owner of 9 separate Apple computers/iPads/iPods/iPhones.  Over time, I have been forced to change my AppleID on 3 separate occasions (non-e-mail to one with e-mail, non-me.com to an @me.com to move my mobile me to iCloud), and

  • Grey page colour in new pdf documents

    Hi when opening any new document in adobe acrobat x pro 10.1.9 comes up with a very annoying dark grey page background. I cannot change this , though i can change the backgroun in old/Known documents red-spot

  • Right content.jar for web service API?

    I have a java application that interacts with Content Services via the Content Services Web Services API. I wish to update the content-ws-client.jar file my app uses, since we have undergone several upgrades since I set my app up. When I search my ne