Ignoring case.................

Hello Experts ,
        I am trybin to read data from infotype table pa0002  . I am accepting  the Last name ( vorna ) as input .
I am trying to fetch matching records in internal table USING SELECT QUERY .
But the name (vorna ) is *case sensitive* so  in table name can be stored as
Rahul
RAHUL
rahul
If user input is RahuL . Query return zero number MATCHING  of records .
My requirement is Query should return all three matching records .
How can i  do the comparison of name to retrive all matching records IGNORING THE CASE .
i tried following query
SELECT PERNR VORNA NACHN GBDAT FROM PA0002
    INTO CORRESPONDING FIELDS OF TABLE ITAB
    WHERE upper( VORNA )   = upper(  STRU_USERIP-VORNA )
    AND   ENDDA >= SY-DATUM
    AND   BEGDA <= SY-DATUM .
But wont work since UPPER is not allowed ,
can anyone provide solution to this problem .
Your Help will be appericiated .
thks ,
Rushi

hi,
There are few ways to ignore case while selecting values :
1. Have all the records in either Capitals or Small Letters in DataBase Table.
2. Have one extra column with either Capitals or Small Letters to do search.
3. Declare Range Tables.
An Example of Ranges :
a. Range declared for which search criteria is there.
Data : lr_name TYPE RANGE OF fmfint-bezeich,
          lr_name_line LIKE LINE OF lr_name.
Data lt_rfc type table of fmfint,
        wa_rfc type fmfint,
        w_output type fmfint,
       t_output type table of fmfint.
b. i_name is the value entered by user in Search Criteria.
if i_name is not initial.
      lr_name_line-sign = 'I'.
        lr_name_line-option = 'CP'.
        lr_name_line-low = i_name.
APPEND lr_name_line to lr_name.
ENDIF.
c. Select all records.
select * from fmfint into table lt_rfc.
d. Filter records using Loop and where condition
loop at lt_rfc into wa_rfc where
bezeich IN lr_name.
MOVE-CORRESPONDING lw_rfc TO w_output.
        APPEND w_output TO t_output.
        CLEAR: w_output,lw_rfc.
endloop.
now finally you have all records based on input entered in table t_output.

Similar Messages

  • Interactive Reports filter ignoring case

    Is there a way to have the built-in interactive report filter ignore case? I am currently passing the 'LIKE' filter to my interactive report to search for employee names. I want it to ignore the case so 'SMITH' would be the same as 'Smith' when doing search.
    ie. upper(:P1_NAME) like upper(EMP.NAME)

    But I'm not capturing the time. The default format is DD-MON-RR.
    This is crazy, I have used other Adhoc tools that didn't treat dates that way.
    Seeing as the operators change depending on the data type selected by the user, the option must be controlled in the application. Oracle is excluding it for some reason, but they really need to let the administrator control that.
    This is in Interactive Reports. The users don't want to have to format the dates, or anything else. They just want to filter the data to a certain date and the = sign should be allowed. If they are capturing time, then the administrator can truncate the date and make it available via another field/column.
    Edited by: ABD -- DBA on Jan 22, 2010 11:56 AM
    Edited by: ABD -- DBA on Jan 25, 2010 8:05 AM

  • UI Designer, DataModel-View, Element-Search-Filter should ignore case

    Hi,
    I'm currently working within UI Designer and want to bind elements to my OWL.
    After selecting a name space and a BO afterwards, I want to search within the loaded BO meta data.
    Doing so, I figured out that the search is case sensitive.
    In other words, search for 'node' brings no results, but 'Node' does the job.
    Hopefully there are no derivations like 'nOde'
    @DevTeam, please do 'ignore case'.
    Thanks.
    ByD Studio release as of 05.March.2011
    Regards
    Martin

    Hi,
    I tested in 3.0, there the search is no longer case sensitive. So it seems to be corrected.
    Regards,
    Thomas

  • TableFileterDemo - ignore case

    I have implemented the code from the java tutorials "TableFilterDemo" into some of my code and have it working. I was trying to tweak it a bit to have it ignore the case when you enter text to filter for. I took a look at the String class and the equalsIgnoreCase but I'm not comparing it in this case. I also went the route of pattern:
    final int flags = Pattern.CANON_EQ | Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE;
    pattern = Pattern.compile(filterText, flags);but that broke it where it would not filter anything. Any ideas on what I might be missing?
    package tablefilter;
    * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
    *   - Redistributions of source code must retain the above copyright
    *     notice, this list of conditions and the following disclaimer.
    *   - Redistributions in binary form must reproduce the above copyright
    *     notice, this list of conditions and the following disclaimer in the
    *     documentation and/or other materials provided with the distribution.
    *   - Neither the name of Oracle or the names of its
    *     contributors may be used to endorse or promote products derived
    *     from this software without specific prior written permission.
    * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
    * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
    * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
    * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
    * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
    * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
    * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
    * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
    * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    * TableFilterDemo.java requires SpringUtilities.java
    import javax.swing.*;
    public class TableFilterDemo extends JPanel {
        private boolean DEBUG = false;
        private JTable table;
        private JTextField filterText;
        private JTextField statusText;
        private TableRowSorter<MyTableModel> sorter;
        public TableFilterDemo() {
            super();
            setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
            //Create a table with a sorter.
            MyTableModel model = new MyTableModel();
            sorter = new TableRowSorter<MyTableModel>(model);
            table = new JTable(model);
            table.setRowSorter(sorter);
            table.setPreferredScrollableViewportSize(new Dimension(500, 70));
            table.setFillsViewportHeight(true);
            //For the purposes of this example, better to have a single
            //selection.
            table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
            //When selection changes, provide user with row numbers for
            //both view and model.
            table.getSelectionModel().addListSelectionListener(
                    new ListSelectionListener() {
                        public void valueChanged(ListSelectionEvent event) {
                            int viewRow = table.getSelectedRow();
                            if (viewRow < 0) {
                                //Selection got filtered away.
                                statusText.setText("");
                            } else {
                                int modelRow =
                                    table.convertRowIndexToModel(viewRow);
                                statusText.setText(
                                    String.format("Selected Row in view: %d. " +
                                        "Selected Row in model: %d.",
                                        viewRow, modelRow));
            //Create the scroll pane and add the table to it.
            JScrollPane scrollPane = new JScrollPane(table);
            //Add the scroll pane to this panel.
            add(scrollPane);
            //Create a separate form for filterText and statusText
            JPanel form = new JPanel(new SpringLayout());
            JLabel l1 = new JLabel("Filter Text:", SwingConstants.TRAILING);
            form.add(l1);
            filterText = new JTextField();
            //Whenever filterText changes, invoke newFilter.
            filterText.getDocument().addDocumentListener(
                    new DocumentListener() {
                        public void changedUpdate(DocumentEvent e) {
                            newFilter();
                        public void insertUpdate(DocumentEvent e) {
                            newFilter();
                        public void removeUpdate(DocumentEvent e) {
                            newFilter();
            l1.setLabelFor(filterText);
            form.add(filterText);
            JLabel l2 = new JLabel("Status:", SwingConstants.TRAILING);
            form.add(l2);
            statusText = new JTextField();
            l2.setLabelFor(statusText);
            form.add(statusText);
            SpringUtilities.makeCompactGrid(form, 2, 2, 6, 6, 6, 6);
            add(form);
         * Update the row filter regular expression from the expression in
         * the text box.
        private void newFilter() {
            RowFilter<MyTableModel, Object> rf = null;
            //If current expression doesn't parse, don't update.
            try {
                rf = RowFilter.regexFilter(filterText.getText(), 0);
            } catch (java.util.regex.PatternSyntaxException e) {
                return;
            sorter.setRowFilter(rf);
        class MyTableModel extends AbstractTableModel {
            private String[] columnNames = {"First Name",
                                            "Last Name",
                                            "Sport",
                                            "# of Years",
                                            "Vegetarian"};
            private Object[][] data = {
             {"Kathy", "Smith",
              "Snowboarding", new Integer(5), new Boolean(false)},
             {"John", "Doe",
              "Rowing", new Integer(3), new Boolean(true)},
             {"Sue", "Black",
              "Knitting", new Integer(2), new Boolean(false)},
             {"Jane", "White",
              "Speed reading", new Integer(20), new Boolean(true)},
             {"Joe", "Brown",
              "Pool", new Integer(10), new Boolean(false)}
            public int getColumnCount() {
                return columnNames.length;
            public int getRowCount() {
                return data.length;
            public String getColumnName(int col) {
                return columnNames[col];
            public Object getValueAt(int row, int col) {
                return data[row][col];
             * JTable uses this method to determine the default renderer/
             * editor for each cell.  If we didn't implement this method,
             * then the last column would contain text ("true"/"false"),
             * rather than a check box.
            public Class getColumnClass(int c) {
                return getValueAt(0, c).getClass();
             * Don't need to implement this method unless your table's
             * editable.
            public boolean isCellEditable(int row, int col) {
                //Note that the data/cell address is constant,
                //no matter where the cell appears onscreen.
                if (col < 2) {
                    return false;
                } else {
                    return true;
             * Don't need to implement this method unless your table's
             * data can change.
            public void setValueAt(Object value, int row, int col) {
                if (DEBUG) {
                    System.out.println("Setting value at " + row + "," + col
                                       + " to " + value
                                       + " (an instance of "
                                       + value.getClass() + ")");
                data[row][col] = value;
                fireTableCellUpdated(row, col);
                if (DEBUG) {
                    System.out.println("New value of data:");
                    printDebugData();
            private void printDebugData() {
                int numRows = getRowCount();
                int numCols = getColumnCount();
                for (int i=0; i < numRows; i++) {
                    System.out.print("    row " + i + ":");
                    for (int j=0; j < numCols; j++) {
                        System.out.print("  " + data[i][j]);
                    System.out.println();
                System.out.println("--------------------------");
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("TableFilterDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            TableFilterDemo newContentPane = new TableFilterDemo();
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

    sorter.setRowFilter(RowFilter.regexFilter("(?i)" + text));, works for ASCII, but doesn't works correctly for Latin1-X and another Charsets for some chars near to EnterKey (on the keaboard)
    please for Swing rellated question is there Swing

  • Ignoring case in Hashtable key names

    Is there any way to check a Hashtable for a key value (which is a string) but to ignore the case of the letters in the string?
    if(hashtable.contains(keyValue)){ .... }
    returns false if the string keyValue has different capitalization from the key in the hashtable.
    Thanks
    J A

    No, if you want to do it by subclassing Hashtable (incidentally, why Hashtable rather than HashMap?) then you want to override the put, get, contains, and remove methods to call String.lowerCase() on the key. Sylvia's suggestion was to insert a wrapper around String into the map rather than to subclass the map.

  • Sort Itab - Ignoring Case

    Hi,
    I need to sort an Internal Table by name field by ignoring the CASE.
    One way is: Convert the Name into Upper or Lower case and do the sorting.
    However, is there any other way we could handle this?  Do we have SORT which can ignore the case?
    Thanks for the reply.
    Thanks,
    Sandeep

    Hi Sandeep,
    I think that is the way to do that. Make that as either upper /lower case and do sorting. Normally when we sort upper case will come first & lower case will come next.
    refer this thread:
    http://scn.sap.com/thread/1309978
    Regards,
    Poornima

  • How to install Adobe cs5.5 ignoring case-sensetive issue, how to install Adobe cs5.5 ignoring case-sensetive issue

    I am getting "case-sensetive drive not supported" when trying to install Adobe CS 5.5 !!!
    How to get over this??
    How can I install CS 5.5 on my MBA 13" (Late 2010)
    if anyway failed, which CS will install good? (CS3 / CS4 / CS5 )???
    Help me Guys !!!

    It sounds like your hard drive was formatted wrong.
    Open Disk Utility (Applications/Utilities)
    Select the drive (probably named Macintosh HD if it's your main or only drive)
    At the bottom of the window, check the format. It should say Mac OS Extended (Journaled).
    If it says Case-Sensitive, that's your problem. You'll have to reformat the drive to fix it.
    If it's your main drive, that means you'll have to reinstall the OS after formatting.

  • Case sensitive filed in DB table, Filter needed ignoring case sensitivity

    Hi,
      Therse is a DB table with one of the fields marked to recognize case sensitivity. I have to do a filter on this field with a wild card pattern such that irrespective of the case, the record should be extracted as and when the pattern is found.
    One way of doing this is TRANSLATE field to UPPER CASE after extracting all the records to an internal table.
    But I see that this can be an expensive call as there are tons of records to be processed. Is there any performance efficient way to handle this?
    Example:
    Filed Name: XML_LINE.
    Field Content can be in any of the following formats:
    Format 1: break.
    Format 2: BREAK
    Format 3: BreaK.
    Format 4: breAK.
    Format 5: breAK-point.
    Format 6: breAK-POINT.
    The wild card pattern I would like to use here is on the word "break" irrespective of the case and extract only the relevant records.
    wild card pattern1: b*.
    wild card pattern:B*.
    Can count of the number of letters help here for the words "break." and "break-point." along with wild card patterns or is there any better way of doing this? 
    Thanks & Regards,
    Ranjini

    Hi,
    a solution is to create a second field without case sensitive ans stored word in UPER CASE.
    If you see in SAP (f.e. Customer or Creditor), SAP store NAME in a search field (in upper case). Make the same.
    Rgds

  • [Flex 4.5.1] Regular Expressions - how to ignore case for cyrillic text /ignore flag doesn't work/ ?

    The only solution to this that I've found is to convert the text to lowercase before matching...
    Is there a more convenient way ?
    Thanks

    The only solution to this that I've found is to convert the text to lowercase before matching...
    Is there a more convenient way ?
    Thanks

  • Case-Insensitive File Name Search on Unix

    Hello,
    I have a program which runs on a Unix OS and it looks for some files like file.csv, and then reads these files. Basically I know the file name and I look for that file name in a particular directory.
    Now, I want to make my program case-insensitive so that if the file name is file.csv or File.csv or FILE.csv, it should still locate that file and read it.
    Any advice....
    Thanks.

    Thanks.
    Probably I have to get all the file names in that
    directory and then try to match against the file name
    (using ignore case or toUpperCase() maybe), which I
    am looking for.
    Is there a way, where I don't have to get all the
    file names in that directory and can just go and get
    the FileReader Object etc for the file which I am
    looking for.No
    /Kaj

  • Case-insensitive -- what's a scriptor to do?

    Here's my delima: (from a tcsh)
    % ls
    file1.txt file2.TXT file3.txt
    % ls file{1,2,3}.TXT
    file1.TXT file2.TXT file3.TXT
    % ls *.TXT
    file2.TXT
    % rm *.txt
    I've written hundreds of unix (csh,tcsh, perl) scripts since around 1988. I never considered that some day UNIX would ignore case in filenames.
    As you can imagine, I'm going to have to re-write dozens of scripts, now that I have this case-insensitive "feature".
    QUESTION 1: Is there some way to turn off the ignore-case in Apple unix? What are the consequences of such a bold act?
    QUESTION 2: Is there a simple variable, switch, or something, that tells the shell (tcsh) that files are case-sensitive (e.g. *.TXT would match *.txt)? Same request goes for telling filec that is should ignore case.
    PowerBook G4   Mac OS X (10.3.9)  

    Hi Bill,
       I see what you're saying. When the shell passes information to the filesystem, case ceases to matter. However, C Webber is talking about the reverse situation. HFS+ is case-insensitive but it is case-preserving. Whatever case is used in the naming of a file is reproduced faithfully in read operations and shells are by default case-sensitive. C Webber's example was filename globbing. The shell reads the names of the files and looks for matches in a case-sensitive fashion. In that case, case will matter.
       I can see where this would cause problems. You might test for the existence of a file in a case-sensitive fashion, find out that it doesn't, write to the filesystem and blow away a file even though you were careful. You know that something like that happened with the Perl install script, causing it to blow away dozens of its own man pages.
    C. Webber,
       I did a search of the tcsh man page and found nothing suggesting that you can turn off case-sensitivity in globbing. You can do so in completion but it appears that rewrites will be necessary. I encourage you to view this as an opportunity and switch to a more powerful shell. I agree with you that this issue is unique to Mac OS X but every flavor of UNIX has its own issues. We've all had to make changes to migrate scripts. I've certainly had to do that to migrate some of my scripts to Linux and some won't migrate at all. (I use AppleScript in many of my scripts)
    Gary
    ~~~~
       "The glory of creation is in its infinite diversity."
       "And in the way our differences combine to create meaning and beauty."
             -- Dr. Miranda Jones and Spock, "Is There in Truth No Beauty?",
                stardate 5630.8

  • How to make the tags in XML file case insensitive

    Hi,
    I have a ReadXML class which reads an xml file. This class also has a method which receives a string-child from another class and uses this string-chile to match it with the child tag in the xml file, and returns the child tag's value.
    Now, my problem is this, the child tag in xml may be in a case different from the case of the string-child received from another class.
    How do I modify it, so the program does not return a null pointer exception because the strings did not match for want of uppercase or lowercase letters.
    Thanks
    Sangeetha

    I'm not sure what you are getting at. Is a string child the contents of a node treated as text?
    If you are trying to match a child node regardless of case I doubt this is possible as the XML standard says an XML document is case sensitive so if your parser ignored case it would not be XML complient.
    Hope this helps.

  • How to create case-insensitive account name report?

    We have an account report that allows users to enter part of an account name and return matching results. The prompt is case sensitive but I would like it to be case insensitive. This report uses a report prompt and not a dashboard prompt (if it makes a difference), and I can switch to dashboard prompt if necessary.
    Since the left pane search for Account Name is case-insensitive and you can select case-insensitive when creating account list views, I am hoping there is a way to apply this same functionality to a report.
    I understand I can convert Account Name to upper or lower and tell people to search that way, but that will be a last resort.
    Any suggestions on how to make the prompt value and report results for Account Name case-insensitive?
    Thanks.
    Edited by: user9530733 on Sep 30, 2010 10:51 AM

    Similarly to all this, and even what the OP is looking to accomplish, is the habit of developers attempting to coerce the database object names into the format of their language - usually .net or some such. So they create tables named something like EmpDepProjectStatus which may make their application code all look consistent, but becomes EMPDEPPROJECTSTATUS when created in the database. Why can they not adapt to the database and name the table EMP_DEP_PROJECT_STATUS so that we do not go blind trying to manage their db objects? Is it their teachers that tell them EveryThingMustBeWrittenLikeThisBecauseTheyCannotStandSeperatingTheWordsThatNameObjectsWithSpaces_WHICH_ARE_UNDERSCORES_IN_MOST_ALL_LEGACY_LANGUAGES?
    I do not think that Oracle will ever become case sensitive. Just like COBOL, IMS, IDMS, JCL, BASIC, PL/I, etc. There is just too much code out there that ignores case that it could not be done.
    Unless, of course, Oracle creates a init.ora option to set case sensitive. But I doubt (hope most sincerely) that they will never do that.

  • Case sensitive problem in oracle9i

    Hello every body
    I need ur help in this case
    in my database I need to ignore case sensitive in varchar2
    ie. if I have value in varchar = Accounting
    I need to compare this value which exist in column
    if equal to 'accounting' value with out using lower or upper function
    ie. I need to set global option in database ignore case sensitive
    I tried the query which exist in oracle10g(alter session set nls_comp=ansi)
    but it didn't work
    so please give me solution which work in Oracle9i and oracle10g in the same time
    but with out using varchar2 functions, ie. I need feature which will set in session
    Thanks alot

    Check this links:
    <br>
    The Globalization of Language in Oracle - And Case-Insensitivity
    <br>
    10gR2 New Feature: Case Insensitive Searches

  • Match Case in Find/Replace in TextEdit

    Before updating to Lion, when using the Find/Replace function in TextEdit, I could choose to select "Ignore Case", or I could leave that deselected in which case it would only Find & Replace instances which matched the case of the text I entered.
    Now on Lion, instead of that dialogue box poping up giving me that option, the Find / Replace function is built into the TextEdit window, and there's no option to select whether to match or ignore case. As it is, it just ignores case and replaces all matches for the text found, regardless of case.
    That is not what I want! I need to match case!
    Can I do that in Lion, or is that functionality completely gone?

    like a lot of Apple "Interface Improovements" the stuff is well hidden. What i just found on another board: Just click on the magnifying glass icon (left of where you enter search text). A drop down menu will appear with search options - "Ignore Case".
    There is also a lot of other neat stuff hidden there ... So happy searching! ;-)

Maybe you are looking for

  • MacBook Pro and WLAN beamer

    Hi everybody, I am planning to buy a new beamer, for example the Panasonic PT-LB55NTE. It offers the possibility to hook up to WLAN. The VGA-cable would therefore be unnecessary. Would be a big improvement to have fewer cables and their limitations.

  • Turn off Anti-Virus Warning

    When I do a Toshiba Laptop Checkup on my NB505 it says I have no Anti Virus programs but I do. I installed Avast and it is running. Is there a way for me to tell the computer it's there so the warning stops coming up wanting me to install Norton whic

  • Energy cut not installing 3000 g series 2049 55q on winxp

    when i tried to install the energy cut  in my newly  bought  laptop, it fails  saying following error Feature transfer error Feature: HotKey Component: HotKey File:  "C:\ Error:  The filename, directory name, or volume label syntax is incorrect. OK  

  • Error when clicking other button after displaying Popup window

    Hi, I'm developing a custom page which calls a popup window in r12, below is the error encountered. Error: Cannot Display Page You cannot complete this task because you accessed this page using the browser's navigation buttons (the browser Back butto

  • Debugging Workflow in ESS/MSS module .

    Hi, I know the stpes to debugging simple workflow and trouble shooting the same, but now I want to know the debuggibg workflow steps for workflow running with ESS/MSS module Framework, The scenario is Its actually Approving Forms in ESS/MSS module, T