Special Characters in a Field name

I am having trouble with creating a SQL statement for a field name that has special characters. I get SQL errors when I run the code below:
               ResultSet rec = st.executeQuery(
                    "SELECT * " +
                    "FROM F55EXL1 " +
                    "WHERE " +
                    "(SK$#TY = 'UPC' AND " +
                    "SK$#MS = '7107-42' AND " +
                    "SK$#F1 = 'J468-4' AND " +
                    "SK$#F2 = 'JX67-4')");
               while (rec.next()) {
                    upcCode = (rec.getString(3));
               }What can I do to make it accept these field names?

Hi
Can you try this..
ResultSet rec = st.executeQuery(
                    "SELECT * " +
                    "FROM F55EXL1 " +
                    "WHERE " +
                    "SK$#TY = \'UPC\' AND " +
                    "SK$#MS = \'7107-42\' AND " +
                    "SK$#F1 = \'J468-4\' AND " +
                    "SK$#F2 = \'JX67-4\' ");
               while (rec.next()) {
                    upcCode = rec.getString(3);
               }Thanks
Srinivas

Similar Messages

  • Special characters in the employee names is adding ASCII  to the file

    Hi Team,
    Iam working on a outbound interface which has a length of 3000. For the last name it is having some special charecters Vázquez . When downloading into application server, the special characters in the employee names is adding ASCII characters to the file Vázquez . This is increasing the record length to 3001.
    Please let me know how to remove this ASCII charecters. It is happening only for application server.
    Rgds
    Kishor

    Hi
    Please refer below link.
    [Re: Translation of special charachter like 'u00E3au00EA']
    ~~~Ganesh Kumar K.

  • Restricted Special characters in KM Resource name

    Hi,
    While creating resources in KM, it is not allowing some special characters (ex: '?' , ':') in name.
    How do we know what are all the restricted special characters in KM?
    Please let me know.
    Thanks

    I think the file name restrictions which apply to naming of files on the PC apply to KM Resources as well since the file will have to be created on some file system itself.
    Do refer to [this|http://kb.wisc.edu/page.php?id=2533] link to peek at the list of restricted characters.
    Thanks,
    GLM

  • Special Characters usage in member names

    All,
    As we are aware, essbase member names cannot contain special characters. But as per our business requirement we are in need to use special characters in some member names. Can anyone advise me if there are any work-around available to achieve this. Thanks in advance.
    Regards,
    Ramesh

    866969 wrote:
    Thanks a lot for your response Vasavya. Let me describe my problem clearly. We are having planning application and we use ODI to refresh Master data/Meta data in planning application. One attribute dimension member contains special character and its getting rejected everytime since planning will not accept special characters in member names/Alias names. Is anything that we can do from planning side to avoid the rejection?. Thanks in advance.Is the application been created in unicode mode? Are you able to enter characters directly into planning? have you read the restrictions sections - http://docs.oracle.com/cd/E17236_01/epm.1112/hp_admin/frameset.htm?apb.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to extract special characters from a field

    Hi there.
    I am a novice when it comes to Web Intelligence reports. I have been tasked with producing a final report that I can export to Excel which shows a project number and a project name. Very simple. Ultimately I need to import my final Excel file to a third party software. However, the issue is the project name field consists of special characters such as hyphens, parenthesis, asterisks, etc. I need to be able to create a formula which extracts all special characters and just leaves me with alpha-numeric characters and spaces. I also need to limit the character count to no more than 34 characters. I will not be able to import my final Excel file unless I can product those results. With the help of a very knowledgable person in the Crystal Reports forum, I was able to do that by using the following formula:
    stringvar a:=left({Projects.ProjectName},34);
    numbervar i;
    Local StringVar fin;
    for i:= 1 to len(a) do
        if a[i]in ["a" to "z"] then
            fin := fin & a[i]
        else if a[i] in ["1" to "9"] then
            fin := fin & a[i]
    else if a[i] = " " then
         fin := fin & a[i];
    fin;
    It worked amazingly well in Crystal Reports but this report now needs to move to Web Intelligence. Is there a way to do this in a Web Intelligence report? Itried but the formula is not recogizable. I tried creating a variable and using this formual but I couldn't get it to work.  I appreciate all helpful responses. The version of Web Intelligence I am using is SAP Business Enterprise XI. I am working in a PC environment using Windows 7 if that helps at all.
    Thank you!
    Lauren

    Hi Lauren, Please provide with some sample data...
    In SQL, by writing some Functions/Procedures you can eliminate special characters. Ask your database team to do that.
    or
    Create an object with the following syntax... It Works in SQL.
    = REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE
    (REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE
    (REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE
    (REPLACE(REPLACE(REPLACE([String_Object],'&',' '),'*',' '),'(',' '),'^',' '),'%',' '),'!',' '),'@',' '),'#',' '),'$',' '),'~',' '),')',' '),'+',' '),'=',' ' ),'-',' '),'_',' '),'/',' '),':',' '),';',' '),',',' '),'<',' '),'.',' '),'>',' '),'?',' '),'"',' '),'''',' '),'[',' '),']',' '),'{',' '),'}',' '),'\',' '),'|',' ')
    Example: Input: '~!@#$%^&*()_+{}:"<>-=[]./\|/*-+ascdfv123'
                  Output: ascdfv123

  • Can't show special characters (ÆØÅ) in pdf fields created with inDesign CS6

    Hi Guys im having a problem with special characters in pdf's form fields created in inDesign CS6
    instead of the character ÆØÅ it creates squares or some other seemingly random character
    Here's the pdf

    I figured it out
    Just in case people had the same problem here is how it's done: (i misunderstood the two posters above me, so you are actually going to change fonts within acrobat, like they said, and save it)
    Open the pdf in acrobat, go and change font settings for each of your fields and change the font under the "Appearance" tab.

  • Special Characters in the file name in Data Driven Subscription via File Share

    Hi,
    I am trying to create a Data Driven Subscription with option to delivery as  windows file share in SQL server 2005. I need to save the report as a pdf with the following file name  '[City] City_Name', but it errors out and it is because of the
    Square Brackets. Is there any way i can save the file using the Square brackets as i mentioned above.
    I am using a query to get the filename and filepath. It works fine as long as i do not have [], but i need to save the file as i mentioned along with the Square Brackets.
    Please help.

    Hello,
    I can reproduce the issue on my test environment: When I create a Data Driven Subscription and specify the report name by get from a subscription delivery table, and the value of the "report name" column contains square brackets. The subscription failed
    with following error in the error log:
    ERROR: Error occurred processing subscription ab9523a6-0256-4607-b818-a7666204d018:
    The file name is not valid. Avoid using special characters such as /\?*:<>|+,[]"& in the file name.
    notification!WindowsService_1!1f24!05/30/2014-15:31:02:: i INFO: Notification 0cf5a356-3172-4108-9d8c-58ea81a0b80a completed.  Success: False, Status: The file name is not valid. Avoid using special characters such as /\?*:<>|+,[]"& in the
    file name., DeliveryExtension: Report Server FileShare, Report: Report6, Attempt 0
    It seems that the behavior is by design. please avoid using square brackets as file name. Maybe you can try to use parentheses () instead.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Firefox doesn't reconvert special characters in the file names when download a file with any special characters in the file name

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [/questions/815207]</blockquote><br>
    if i try to download a file with any special characters in file name (e.g. File_Name.pdf), it doesn't reconvert them from the "sanitize url" process and download the file an incorrect name (e.g. File%5FName.pdf).
    This is really annoying.
    Thank you for your patient

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]

  • Javamail API doesn't support special characters in attachment file name

    Hi,
    We are using Java Mail API to retrieve the attachment's file name, but it sometimes returns the file name as junk character (if the attachment contains special characters) and it is not able to return original file name for some attachments:
    Our code sample :
    void getFileName(Part part) {
    String fname=null;
    fname = part.getFileName();                          
    Actually the problem is with the attachment file name which contains special character. For example below is the attachment file name (please find the sample attached file which is causing this issue):
    Sample – 1234abc.doc
    From above you could see the file name contains a special character (Sample – 1234abc.doc), i.e. The character ‘–’ is not a regular hyphen character, it’s a special character. Hence the Java mail API returns the name as below:
    Sample ? 1234abc.doc
    So the special character is being replaced with ‘?’ symbol. But if I store this file in local folder and try reading the file name using Java IO packages, it returns the file name without adding ‘?’ symbol.
    Is there any way to handle such kind of special characters in Mail API?
    Regards,
    Vinodh

    We dealt with this issue in a private email conversation.
    JavaMail is returning the correct data for the filename.  The problem is in the way the filename is being displayed.

  • Can Apple TV display special characters in movie chapter names?

    I have an Apple TV 2.0.1. I have encoded my own movies with descriptive chapter names, imported them into iTunes 7.6.2.9, and synced them to my Apple TV. Does the Apple TV have the ability to display special characters (ó, û, etc.) in movie chapter names? The movies play fine and in iTunes the chapter names are all displayed correctly. I also have an iPod Touch 1.1.4 and it can display the chapter names with special characters fine as well. When playing the movies on Apple TV, only the chapters that have special characters in them display nothing at all for the chapter name. All the other chapters display fine.

    Welcome to the  Discussion Forums.
    I can't really confirm your observation one way or the other, I don't use chapter names. I suspect though that your observations are correct. Unusual characters can often cause issues in a variety of ways, illegal characters in your filenames for example can cause the video not to be found at all or in some cases simply not play. If you are using ie instead of safari for example the  in my welcome my well not display properly whereas others will clearly see it as an apple symbol.

  • Handle special characters in the attribute name

    Hi,
    I am generating different view element in WD application dynamically. How to handle special characters other than '-/ABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789'  for the attribute name dynamically?
    Thank you, in advance.
    Trupti

    Going with the obvious response - don't use them?
    if you're using dynamic code, there is no reason (other than debug support) to give your created elements any meaningful name.
    Just generate a GUID for each new element and use that.
    If you need to be able to later search for and update the element a simple lookup table of GUID to reference string should work reasonably well.
    Cheers,
    Chris

  • Restrict Special Characters in String Fields

    Hello,
    My Jdev version is 11.1.1.6 using ADF BC and ADF Faces as technology stack.
    I have a requirement to restrict special characters, html tags as input in String/Varchar2 fields.
    I have couple of thoughts that can be used in application but not sure which is the best approach:
    1. Implement <af:validateRegExp pattern="regular Exp"> inside <af:inputText> component
    2. Implement Entity based validator using Regular Expression
    Apart from picking the best out of above two, I would like to know if there is a better way to implement this validation.
    My application has custom framework extn classes and all Entities/View Objects extend those. Is there a possibility to implement this type of validation at some central place.
    I would highly appreciate expert inputs here.
    Thanks,
    Jai

    Hi,
    the answer to your question is *"use both"*. The entity level would be enough but then would make people subniitting a request afte which they see an error The RegEx validator in ADF Faces handles problems on the client side and thus before a submit is sent to the server (where it then would be also checked using server side validation in ADF Faces). Why not using RegEx validation in ADF faces alone? Because there are potentially many views accessing your entity through view objects and if only one developer forgets the RegEx validator you would be screwed.
    Frank

  • Special Characters in Packed Field After Upgradation from ECC 5 to ECC 6

    Hi All,
    After Upgraded from ECC 5 to ECC 6, we are getting error as 'Packed field contains incorrect BCD format'.
    I found the error in below code..
    CALL METHOD cl_abap_container_utilities=>read_container_c
          EXPORTING
            im_container           = j_2iextrct-extrctdata
          IMPORTING
            ex_value               = i_rg23part2-i_part2_typ
          EXCEPTIONS
            illegal_parameter_type = 1
            OTHERS                 = 2.
    i_rg23part2-i_part2_typ-EXAED = 0.<0
    i_rg23part2-i_part2_typ-CESS   = 0.<0
    for some packed fields special characters are appearing, which leads to a short dump.
    Any Suggestions.....
    Thanks,
    Satish Reddy.
    Edited by: Sathish Reddy on Jun 25, 2010 4:49 PM
    Edited by: Sathish Reddy on Jun 26, 2010 11:01 AM
    Edited by: Sathish Reddy on Jun 29, 2010 12:58 PM
    Edited by: Sathish Reddy on Jun 30, 2010 11:51 AM

    HELLO,
    Search the form you will get few links.
    Also many companies have gone technical upgradation , but not functional upgradation.
    Thanks
    RK

  • Function Module tto check special characters in a field

    Hi All,
    I have a requriemnt where i need to make sure there are no special characters allowed
    in a paremeter ( is there any functional module to check it)
    r anyway to work with
    Thank in advance for u replies.
    Regards,
    Riyaz.

    DATA: vergleich_string(100) VALUE
              'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.
      CONCATENATE vergleich_string ' 1234567890,./!@#$%&*-_+=~|\[{]}()"'
                                                   INTO vergleich_string.
    use condition.
    if var ca vergleich_string.
    raise error message.
    endif.

  • Escaping special characters in hidden fields

    I am using a hidden field to pass values to the servlet. I am populating the hidden field from a bean. The hidden field can have any string value. My problem is that the value attribute on my hidden field is double quoted and if there is a double quote in the value of the String from my bean it messes my HTML up. Is there an easy workaround for this?
    e.g.
    <jsp:useBean id="myObject" scope="request" class="MyObject"/>
    <input type="hidden" name="myValue" value="<%=myObject.getValue()%>">
    If myObject.getValue() returns a string: 60" Mower this will mess my HTML up.
    Any suggestions?

    First off, Is the Pattern and Matcher specific to JDK 1.4.1? We are currently using 1.2.2? If this is a viable solution, is there a similar one in JDK 1.2.2?
    Also, I still don't think it's possible in HTML to escape characters that are values of attributes. Try running the following HTML code:
    <html>
    <head>
       <script language="JavaScript">
       function getHiddenValue(){
          alert(document.myForm.hiddenDescription.value);
       </script>
    </head>
    <body>
       <form name="myForm">
       <p>
          <input type="hidden" name="hiddenDescription" value="60\" Mower">
       </p>
       <p>
          <input type="button" onclick="getHiddenValue()" value="Hidden Field">
       </p>
       </form>
    </body>
    </html>

Maybe you are looking for

  • Windows 2008 server (64 bit) setup not starting?

    To all, Windows 2008 server (64 bit) setup not starting? downloaded v17228-01-2of2 and v17228-01-1of2? Any ideas why the installer not starting?

  • R/3 Master Data Load Error

    Hi Experts    Our master data load from R/3 to BW was failed today. This is the error message on status Tab of failed request Diagnosis No IDocs could be sent to the SAP BW using RFC. System response There are IDocs in the source system ALE outbox th

  • Payment method not found

    Hello, I am trying to post a payment to a Vendor and payee is set up different then the supplier.  I checked the data  - seems to be allright but am not able to post the payment  with error 'Payment method not found'.  Payment method has been defined

  • How do I work around large AIR Installer file for app updates?

    I develop AIR apps which often come with many included files (pdf, doc, swf, images, etc).  These get quite large, Total Air installer size measured in Gigs.   Distribution is via DVD.  Currently I create sub-folders under my project and place the as

  • What's wrong with my Archive page?

    I've finally gotten this site pretty much where I want it..... now there's a new problem. If you go to my blog entries page, all the days have little captions except days 2 & 3 and day 4 is messed up. What's going on? http://web.mac.com/apurcell/iWeb