I need to tanslate a field into upper case

Hello :
i would like to ask one favor i am trying to make a selections of data.
i have a RFC function that recieve a parameter and this parameter is used in selection of data.
for example when i send the parameter i transalate this into upper case using TRANSALATE VARIABLE TO UPPER CASE, so when i make the selections of the information i found all those data that also have upper case information in this field , but when one of that fields doesn't have upper case i can't find the information.
The problem is that the table has both information upper-lower case.
if somebody knows how to fix this problem i will appreciate .

One way to handle this if you can't control how the data is entered and the table is not too big, is to get all of the data into an internal table, translate the variable, then loop at the internal table and translate the field that you want to compare to upper case, then do the comparison, if not satisfied, then delete it from the internal table.
Translate v_parm to upper case.
select * into table itab from ztable.
loop at itab.
  translate itab-fld1 to upper case.
    if v_parm <> itab-fld1.
      delete itab.
      continue.
    endif.
endloop.
Regards,
Rich Heilman

Similar Messages

  • Problem in converting into upper case urgent

    hi,
    i  working on module pool program.
    in the initial screen there is two fields one is number one is name.
    if i enter the name in the name field it is automatically converting into upper case,
    but in this case my select query is not working,how to solve this,i mean i have to take same as it is what i entered.
    kindly give me suggestion.it is urgent issue.i have to delever today.
    Thanks,
    mohan.

    hi
    in the Report to handle like this situation.. we use the extentions to the parameter  as  LOWER CASE .
    parameters p_t type char10 LOWER CASE .
    i think in the Module pool also.. we can do this in Properties of the FIELD... once check the Properties of the field... there  could be a chance.
    hi
    <b>there is field <b>checkbox called UPPER/LOWER CASE</b>at the bottom of the properties... if tick this u r porblem will be solved</b>
    Please Close this thread.. when u r problem is solved
    Reward if Helpful
    Regards
    Naresh Reddy K
    Message was edited by:
            Naresh Reddy

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

  • Convert mixed case value in colum into upper case values

    Hi All,
    I have got a table call emp and has the following colums:
    id number 10
    suename_name varchar2(20)
    given_name varchar2(20)
    position varchar2(30)
    date_hired date
    Now the values in colums are mixed case and I need to change them to upper case. I think I need to use upper function to do it.
    Could anyone help me by providing me sql/pl sql script to through each colum in emp table and change them to the upper case.
    Many Thanks
    Michael

    Hi,
    If you really want to try this using PL/SQL, then you'll have to use dynamic SQL, something like this untested code, since the table and column names are vaiable:
    SET   SERVEROUTPUT  ON  SIZE 50000
    DECLARE
         sql_txt     VARCHAR2 (4000);
    BEGIN
         FOR  r  IN ( SELECT  table_name
                   ,       column_name
                   FROM    user_tab_columns
                   WHERE   data_type = 'VARCHAR2'
              --   AND     ...  -- if you don't want all columns in all tables
         LOOP
              sql_txt := 'UPDATE "'
                   || r.table_name
                   || '" SET "'
                   || r.column_name
                   || '" = UPPER ("'
                   || r.column_name
                   || '")';
              dbms_output.put_line (sql_txt || ' = sql_txt');     -- For debugging
              -- EXECUTE IMMEDIATE sql_txt;               -- For real
         END LOOP;
    END;Dynamic SQL (here) means creating a string that contains the SQL statement to be done, then using EXECUTE IMMEDIATE to run it.
    Whenever you write dynamic SQL, it's a good idea to only display the SQL statement during the early stages of debugging. When it's displaying correctly, then you can try un-commenting the EXECUTE IMMEDIATE line.
    Edited by: Frank Kulash on Jul 19, 2009 4:40 PM
    A little more complicated, but a lot more efficient:
    SET   SERVEROUTPUT  ON  SIZE 50000
    DECLARE
         sql_txt          VARCHAR2 (4000);
    BEGIN
         FOR  r  IN ( SELECT    table_name
                   ,         column_name
                   ,         ROW_NUMBER () OVER ( PARTITION BY  table_name
                                      ORDER BY       column_name
                                    )     AS column_num
                   ,            COUNT (1)     OVER ( PARTITION BY  table_name
                                    )     AS total_column_cnt
                   FROM      user_tab_columns
                   WHERE     data_type = 'VARCHAR2'
              --   AND       ...  -- if you don't want all columns in all tables
                   ORDER BY  table_name
                   ,            column_name
         LOOP
              IF  r.column_num = 1
              THEN
                   sql_txt := 'UPDATE "'
                   || r.table_name
                   || '" SET "';
              ELSE
                   sql_txt := sql_txt || ', "';
              END IF;
              sql_txt := sql_txt ||
                   || r.column_name
                   || '" = UPPER ("'
                   || r.column_name
                   || '")';
              IF  r.column_num = r.total_column_cnt
              THEN     -- This is the last row for this table; run it
                   dbms_output.put_line (sql_txt || ' = sql_txt');     -- For debugging
                   -- EXECUTE IMMEDIATE sql_txt;               -- For real
              END IF;
         END LOOP;
    END;
    {code}
    The difference is that the first solution produces and executes a separate UPDATE statement for each column, like this:
    {code}
    UPDATE "TABLE_1" SET "COLUMN_A" = UPPER ("COLUMN_A");
    UPDATE "TABLE_1" SET "COLUMN_B" = UPPER ("COLUMN_B");
    UPDATE "TABLE_1" SET "COLUMN_C" = UPPER ("COLUMN_C");
    {code}
    but it's much more efficient to do change all the columns at once, as long as you have the row in hand.  So the second solution only creates one SQL statement per table, like this:
    {code}
    UPDATE "TABLE_1" SET "COLUMN_A" = UPPER ("COLUMN_A")
               ,   "COLUMN_B" = UPPER ("COLUMN_B")
               ,   "COLUMN_C" = UPPER ("COLUMN_C");
    {code} where every line above corresponds to a row fom the query.  The first line for every table will start with
    {code}
    UPDATE "TABLE_1" SET "but all the others will start with
    {code}
    and only on the last column for a given table will the statement be executed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Need to Insert 2 Fields into one Destination Field

    I have a scenario in this way:
    Source Table  
    Inventory
    Alocation| Blocation
    ABC         DEF
    Destination Table
    LocationID
    Mapping Table  
    LocationID, Location
    1               ABC
    2               DEF
    Now I have to write a query wherey both the location codes should be inserted into LocationID in Destination table
    Normally If one Location was available I would have inserted, but I need to insert both the Records into Destination by mapping them to Mapping table
    if one Location Was Available:
    Insert Into DestinationTable
    (LocationID)
    Select M.LocationID From MappingTable M Join Sourcetable S Where M.location = S.ALocation
    This would Output
    Destination Table
    LocationID
    1
    But I want to see this as 
    Destination Table
    LocationID
    1
    2
    Please Help on this.
    Thanks
    Thanks, Please Help People When they need..!!! Mark as answered if your problem is solved.

    Check out UNPIVOT:
    http://www.sqlusa.com/bestpractices/training/scripts/pivotunpivot/
    http://technet.microsoft.com/en-us/library/ms177410(v=sql.105).aspx
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Add EEWB Fields Into BP Contacts Screen In Web Ui

    Hi Gurus,
                      I added 2 fields through EEWB for the BP relations screen it is working  perefectly in the SAP GUI , i need to add these fields Into BP Contacts web ui screen , the problem is if fields data is already present it is working fine , if want to create new one for the contacts it is not setting the field value in web ui what is the problem help me resolve this problem.
    Regards,
    Naveen Kumar M S

    Hi Masood,
    In BP_DATA   and BP_CONT  SET Methods We Have the same Code
    entity ?= current.
          coll = entity->get_related_entities(
                   iv_relation_name = 'ZZ2RCEEWCONTACTRel' ). "#EC NOTEXT
          current = coll->get_current( ).
          if current is not bound.
            return.
          endif.
    But while Debugging  we found  a difference 
    In BP_DATA
    current is bound
    whereas in BP_CONT current is not bound
    while going inside
    current = coll->get_current( ).
    method IF_BOL_BO_COL~GET_CURRENT .
           data: LV_ENTRY type CRMT_BOL_COL_ENTRY.
           if ME->TABIX > 0.
             read table ME->ENTITY_LIST index ME->TABIX            into LV_ENTRY.
             RV_RESULT = LV_ENTRY-BO.
           endif.
         endmethod.
    ME->ENTITY_LIST  was populated for BP_DATA and not populated for BP_CONT
    Any Suggestions...
    Regards,
    Naveen.

  • Force Upper Case on Fields

    In trying to stay in line with the processes of our company and the Oracle eBusiness suite, is there anyway to force users to enter specific fields in upper case versus lower/mixed case?
    Thanks,

    Hi,
    Not easily unfortunately, there is a work around requiring field validation. e.g:
    (FindNoneOf((FieldValue('<AccountName>')),"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")) = 0)
    In your case obviously you want the letters to be lower case. Then put a good error message and you're away, this needs to be on each field though.
    Thanks
    Oli @ Innoveer

  • Translate search parameters to lower and upper case

    Hi All,
    I need to create a search function. Is it possible to translate the search paramaters to  both upper and lower case because inside the data there are data with upper case or lower case or both.
    Thanks in advance.

    Hi ,
      As per your requirement you have to write logic for three conditions :
    1. Translate whole word into upper case .
        TRANSLATE  your field name  TO UPPERCASE.
    2. Translate whole word into lower case .
        TRANSLATE  your field name  TO LOWERCASE.
    3. First character of your field should be in uppercase rest in lower case .
    so write your logic now considering third point also .
    Regards ,
    Nilesh Jain .

  • Converting all to upper case

    Hi,
    Am loading from a flat file. I need to convert all the data into upper case before loading.
    Can some one help me out with this. Where and how?
    Thanks.

    you'll have to do that for each single object; depending on how many fields you have you may change your flat file or do that during start routine.
    LOOP AT DATA_PACKAGE.
       TRANSLATE DATA_PACKAGE-FIELD1 TO UPPER CASE.
       TRANSLATE DATA_PACKAGE-FIELDN TO UPPER CASE.
       MODIFY DATA_PACKAGE.
    ENDLOOP.
    hope this helps...
    Olivier.

  • Convert to upper case

    I need to convert certain fields from an upload file into upper case.
    Any pointers as to how this can be done. Thanks.

    hi,
    u can use transalte command to convert into upper/lower case.as
    loop at itab.
       TRANSLATE itab1-fld1 TO LOWER/UPPER CASE.
        modift itab1  index sy-index.
    endloop.
    if helpful reward some points.
    with reagrds,
    suresh babu aluri.

  • How to Handle the lower and upper case in 'POPUP_GET_VALUES'

    Hi All
    i am using the following FM and when i enter value on the
    popup in lower case or with capital letters i see the field
    with upper case ,this is problem for me since i need to
    take the field and compare it ,there is a way to handle this
    issue ?
    CALL FUNCTION 'POPUP_GET_VALUES'                      "#EC FB_RC
            EXPORTING
              popup_title     = lv_head_msg
            IMPORTING
              returncode      = lv_rc    " User response
            TABLES
              fields          = lt_field    " Table fields, values and attributes
            EXCEPTIONS
              error_in_fields = 1
              OTHERS          = 2.
    Best regards
    Alex

    Hi Alex,
    This because, the field and table name that You are passing in lt_field, has a conversion attached to it, which causes the converison in case.
    For e.g. If You pass MARA-MATNR and try to get the values from pop-up, the value will get converted to upper case, but if You pass MAKT-MAKTX (which does not have a converison attached to it), the value will be retrieved as it was entered. This is standard SAP, which is correct.
    If You need to get values of any text field, pass any SAP text field as reference in your table lt_field. Hope this helps...
    Rgds,
    Birendra

  • Check Writer XML Upper Case

    Hello All,
    Currently, the name of the employee is in INIT Caps. We need to convert the whole name into Upper Case? I tried using the function upper-case but in vain. Can somebody help me?
    Thanks, Naveen G

    Hey NAV,
    Re: Converting to UPPER case within an IF statement
    OR
    <?xdofx:upper(ELEMENT_NAME)?>

  • Create user for CPS in _ UPPER CASE LETTERS _ if using JSM on SolMan

    only create users for CPS in UPPER CASE LETTERS if using JSM on SolMan
    Dear CPS Admins,
    If you plan to use Job Scheduling Management (JSM) on SAP Solution Manager together with CPS by Redwood please always create any users in CPS only with upper case letters to avoid issues in the communication between SolMan and CPS.
    The user creation for CPS is done in the UME (Java user administration, alias /useradmin).
    Actually the CPS user itself is only created in CPS during the first logon.
    Both CPS and the Java UME are case sensitive. So you can create users in uppercase, lowercase or mixed letters. But of course the system does still not allow duplicate names. So you can either create MUELLERP, MuellerP or muellerp - but not multiple of them.
    Now, if the SolMan communicates with CPS for Job Scheduling, the actual user name is taken in some kind of a "trusted RFC like" way and checked on the CPS system connected to the SolMan. If the current SAP user does not exist on CPS no activities are possible, neither in read mode (read existing CPS jobs) nor in write mode (change existing jobs or create new ones).
    Unfortunately the Solution Manager transmits the current user name to CPS only in upper case letter. So if the CPS user was not created in UPPERCASE letters in CPS the communication will fail. Therefore, think about creating CPS users in UME only in UPPERCASE letters. Changing this later is difficult to impossible.
    Best regards,
    Peter

    hi,
    I tried to reproduce your issue but I was not able to create a UME user with lower case letters.
    UME automatically converted the user name into upper case after saving. So even if I enter "cps" as user name UME stored the user name as "CPS".
    (maybe that happend because of the existing SU01-UME integration in our SolMan system)
    If UME would be case sensitive I would expect that it is possible to create the user "CPS", "cPs" and "cps".
    Regarding the SolMan-CPS connectivity:
    Transaction SU01 allows only upper case letters (in user name and alias). Since you're starting from an ABAP system only user names with upper case letters are supported. It's a technical constraint of the ABAP user management that user names consist of upper case letters only.
    Kind regards,
    Martin

  • Special characters converted in wrong in Upper case ?

    Hello,
    In material description , some characters such as µ when converted into upper case it will be 'M' in stead of 'µ' . This is in SAP ECC unicode . But it's ok in R/3.
    So in this case, Is there any solution for this problem ?
    Thanks

    MAKT-MAKTG : For upper case characters , When our client search for values when pressing F4 in material , If there's material description that contain 'u03BC', It will be displayed as 'M' in the text . This will happen in ECC 6 not in R/3 ( in R/3 two texts are the same) .
    The different behavior you're observing between what you call R/3 and ECC 6 is not due to the different releases, but based on the fact that one system is Unicode enabled and the other not. I suspect that you are most likely logging onto the system with a language that's linked to code page 1100 (in the non-Unicode release). Code page 1100 is similar to the Latin-1/ISO-8859-1 code page, which is designed to have most characters for western languages, but does not contain all Greek letters (SAP would most likely use code page 1700 if you set a greek locale).
    Again, it may sound silly, but you have to distinguish between the symbol µ (Unicode code point U+00B5) and the lower case greek letter u03BC (U03BC). SAP code page 1100 contains only the symbol µ (U00B5), which represents the prefix micro as for example in 1µm = 1 micro meter = 0.000001m. Neither the greek lower case letter u03BC (U+03BC) nor it's corresponding upper case letter exists in code page 1100.
    The Unicode standard defines the greek upper case letter u039C (U039C) as the upper case to use for both the symbol  µ (U00B5) and the lower case greek letter u03BC (U+03BC), see for example the Unicode mapping chart for Greek (so that's why you see a different behavior in ECC 6).
    I'm not sure why, but for some reason SAP found it worthwhile mentioning that they actually also convert the symbol  µ (U00B5) to u039C (U039C), though that essentially just means following Unicode standard. Anyhow, if you're interested in further details, check out OSS note 1078295 - Incomplete to upper cases in old code pages.

  • 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

Maybe you are looking for

  • Using excel sheets with externa references

    I was hopping someone could point me somewhere to begin here. What if I am implementing CM solution in a financial department, which strongly uses excel spreadsheets, which means they're going to need external references from a file, to another .xls

  • DvD Menu Templates

    Hi. Just wondering why Premiere Elements 11.0 did not include DvD Menu Templates. Instead, after you choose one, they ask you to download it from the web. Does anyone have a link for these menus? All my work computers are not on line for internet con

  • Date format in Query Extract - Urgent

    Hi,   I'm using Query-Extract (RSCRM_BAPI) to extract query data and store it in separate location. While extracting the data into .csv ot .txt file, date will be displayed as yyyymm (200807). As per the requirement we should display the date in the

  • Automate Master data loads in BPC7(MS)

    I need to update dimension members in SAP BPC7 (MS) from an external source. The source system for my current project is BW, but if you have done any automated master data loads from any other system or even from a "temp" table please post your solut

  • Nokia c 6 is not starting in new 10 days old piece

    i have buy a mobile nokia c6 just 10 days ago it started giving me peoblem lots at the begining of the day 1 its got hang 3 to 5 times a day i have to remove battery number of times now the new problem arises my cell started becomeing hot at the batt