To check that string contains space

Hi...
I have one char string, If that string contains any space then I want to display a message.
how to check that string contains 'space'.
Regards,
Rohit

Hi, you can do a small work.
you can split the char string into substrings at spaces.
if there is space then it will be splitted and then you can check the sy-subrc.
if sy-subrc = 0,
then the char string had some space in it.
regards
jayati

Similar Messages

  • Is it possible to search for strings containing spaces and special characters?

    In our RoboHelp project, there are figures with text labels such as Figure 1, Figure 3-2, etc.
    When I search for "Figure 3" I get all pages containing "Figure" and "3", even if I surround it in quotes.  Similarly, searching for "3-2" treats the '-' character as a space and searches for all pages containing '3' or '2'.
    Is there a way to search for strings containing spaces and special characters?

    In that case I think the answer is no if you are using the standard search engine. However I believe that Zoom Search does allow this type of searching. Check out this link for further information.
    http://www.grainge.org/pages/authoring/zoomsearch/zoomsearch.htm
      The RoboColum(n)
      @robocolumn
      Colum McAndrew

  • Need reg_exp for checking the string contains only alphanumeric or not

    Dear All,
    I need to check the given string in if condtion contains only the alphanumeric or not pls help me..
    like
    if reg_exp then
    end if;
    thanks,
    Oracle

    Hi,
    REGEXP_LIKE ( str
                , '[^[:alnum:]]'
                )returns TRUE if the string str contains any character other than an alphanumeric.
    You can use this wherever conditions are allowed, such as a WHERE clause or a CASE expression. For example:
    SELECT     str
    .     CASE
             WHEN  REGEXP_LIKE ( str
                         , '[^[:alnum:]]'
             THEN  'Contains speace, punctuation or special symbol'
             ELSE  'Okay'
         END               AS is_alnum
    FROM     table_x
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using.
    Edited by: Frank Kulash on Dec 30, 2011 4:37 AM

  • Breadcrumbs containing string with spaces - generating the anchor

    so I have a website that contains a 'breadcrumbs' line that allows users to click on it, and take them back to the parent page
    eg. "jewellery"
    I simply suffix this string with ".cfm" to generate the anchor / filename
    what's the best way to deal with strings containing spaces?
    eg. "birthday cards"
    As good practice I want to use a more compatiable filename that doesn't include spaces
    eg. "birthday_cards.cfm"
    is the REPLACE command ok to use ? or is preferrable to add an additonal field to the table, called "filename" and store the exact filename in there ?

    option 1
    use quotes like href="http:\\....."
    option 2
    convert spaces to %2B

  • Check String contains a word or not?

    Hi Friends,
    I have a string which is containing list of words. I have to check the string contains perticular word in it or not.
    e.g. String str = "I am Hiren Modi";
    In java, Is there any function which can help me to find Hiren world is there in str variable or not?
    Thanks in advance...
    - Hiren Modi

    venu_gopal wrote:
    hi,
    myself is venu. i hope that there is no method. explicitly we have to write the logic for that.
    bye..Venu , please go through string API there is contains() method u can use , instate of writing u r own logic
    read it http://java.sun.com/javase/6/docs/api/java/lang/String.html
    Edited by: AmitChalwade123456 on Nov 20, 2007 5:27 AM

  • Find Whether String Contain Sequence Of Character Or Not

    <b>
    hello friend,
    I am to the new java. I need to findout whether the string contain sequence of character or not. I tried like this
    personLastName.length()> 0
    It will return true even my string contains space. Is there any other method in java to find out ?
    Thanks

    There are a few ways to do that. Check out the String class or Regex for one that suits but
    myString.indexOf(whatIWantToFindString)is an old favorite. It returns -1 if the sequence is not there, or the starting index if it is. The javadocs are your friends.
    regards

  • To check the string for a particular character

    i want to check the string contains ',' (comma) or not. can anyone help me?

    i want to check the string contains ',' (comma) or
    not. can anyone help me?you can use 'indexOf' method at string object
    String s1 = "test,tet1";
    boolean bfind = s1.indexOf(',') > -1 or
    boolean bfind = s1.indexOf(",") > -1

  • How do I use the location bar to search for phrases that do not contain spaces?

    When I type phrases that contain spaces into the search bar, it brings up a google search as specified by my about:config under keyword.URL
    However, when I type anything that *does not* contain a space (e.g. potatoes), firefox tries to connect to http://potatoes/, returning a "cannot establish connection to server at potatoes"
    my keyword.URL is set to: http://www.google.com/search?ie=UTF-8&oe=UTF-8&q=
    browser.fixup.alternate.enabled is *false*
    browser.urlbar.autocomplete.enabled is *true* (though I don't think this has anything to do with it)

    hello jywang74, please update to firefox version 33.0.2 - there you'll see a different behaviour (keyword.url is no longer used btw, the address bar uses the same search provider as set in the searchbar).
    http://msujaws.wordpress.com/2014/08/01/faster-and-snappier-searches-now-in-firefox-aurora/

  • The DNS server has encountered a critical error from the Active Directory. Check that the Active Directory is functioning properly. The extended error debug information (which may be empty) is "". The event data contains the error.

    got event ID 4015 and source DNS-Server-Service. please suggest how to fix this issue
    The DNS server has encountered a critical error from the Active Directory. Check that the Active Directory is functioning properly. The extended error debug information (which may be empty) is "". The event data contains the error.
    Raj

    Hi
     first run "ipconfig /flushdns" and then "ipconfig /registerdns" finally restart dns service and check the situation,also you can check dns logs computer management ->Event viewer->Custom Views->Server roles->DNS.

  • Spool filename that contains spaces

    Hi Folks,
    Does anyone know a technique for creating spool files that
    contain spaces in the path name?
    I have a script that I want to pass in a directory path as a
    parameter. The script then uses this directory as the path for
    dynamically created scripts which are run later in the main
    script, but SQL*Plus won't allow spaces in the path name.
    e.g.
    myScript.sql
    DEFINE P_DIR = '&1'
    SPOOL &P_DIR.script1.sql
    -- Dynamic SQL statements
    SPOOL OFF
    @&P_DIR.script1.sql
    Called by plus80 @myScript 'C:\Documents and Setting\andy\'
    I've tried various combinations of single and double quotes
    around the variable references and even tried a HOST cd &P_DIR
    command, all to no avail. I'm sure I've seen this done
    somewhere before.
    BTW Using a batch file is not a possible solution :(
    Any help would be much appreciated.
    Regards
    Andy

    This is logged as a SQL*Plus bug, #898051. It used to work in SQL*Plus 3.
    If you have access to MetaLink http://metalink.oracle.com/ you can view the complete text of the bug.
    -- CJ

  • Pass parameters that contain spaces between web pages

    Hi,
    I have a .jsp . Inside it, I only need to call a link with a parameter.
    The problem is that the parameter contains spaces:
    name="ALARM LEVELS"
    If I write:
    <a href=modif_list.jsp?name=<%=paramName%>>See list</a></p>The parameter received in modif_list is "ALARM" and not "ALARM LEVELS"!!!
    How can I pass parameters that contain spaces between web pages?
    Thanks

    The think is that the parameter is a label and obviously I don't know the value before hand.
    In fact, I am using
    <a href=modif_list.jsp?table=<%=paramName%>&label=<%=label%>
    <%=tableName%></a></p>.....So I can't help it if the label contains spaces.
    Now if there is no solution, I suppose I can always replace the space by "_" and when I collect the parameter, I replace the "_" by a space!

  • Trying to set up a group email "RAM" that will contain multiple email addresses.  Receive error messages "check SMTP settings" or "Invalid email address" when I try to send a message to the group.

    I am trying to set up the group email "RAM" that will contain multiple email addresses.  I have inputted the name "RAM" as a corporation.  In the section labeled "Email" I have inputed multiple email addreses so that when I want to send an email to the group "RAM" I just have to input the name "RAM" in the section labeled "To" , input the Subject in the Subject box & the email will be sent to the multiple addresses, yet when I do I receive either one of two error messages being "Invalid Email Address" or "Check SMTP settings" each of which allows me the option of with cancelling the email or send it anyway.

    Bump. I'd like to know, too. I even have some synched Groups from my Apple Address Book I email to using Apple Mail on the Powerbook, but I can't see how to do a group mailing on the Touch either.
    In normal Mail, I just start typing the name of the group, and it autocompletes, I hit return, and it fills in all addresses in the Group.

  • Code to check whether a given string contains alphanumeric

    Can anyone post the Code to check whether a given string contains only alphanumeric and no special characters

    <Rule name='isAlphaNumericString'>
    <RuleArgument name='testStr'/>
    <block>
    <defvar name='counter'>
    <i>0</i>
    </defvar>
    <defvar name='splitString'>
    <while>
    <lt>
    <ref>counter</ref>
    <length>
    <ref>testStr</ref>
    </length>
    </lt>
    <append name='splitList'>
    <substr>
    <ref>testStr</ref>
    <ref>counter</ref>
    <i>1</i>
    </substr>
    </append>
    <set name='counter'>
    <add>
    <ref>counter</ref>
    <i>1</i>
    </add>
    </set>
    </while>
    <ref>splitList</ref>
    </defvar>
    <containsAll>
    <list>
    <s>A</s>
    <s>B</s>
    <s>C</s>
    <s>D</s>
    <s>E</s>
    <s>F</s>
    <s>G</s>
    <s>H</s>
    <s>I</s>
    <s>J</s>
    <s>K</s>
    <s>L</s>
    <s>M</s>
    <s>N</s>
    <s>O</s>
    <s>P</s>
    <s>Q</s>
    <s>R</s>
    <s>S</s>
    <s>T</s>
    <s>U</s>
    <s>V</s>
    <s>W</s>
    <s>X</s>
    <s>Y</s>
    <s>Z</s>
    <s>a</s>
    <s>b</s>
    <s>c</s>
    <s>d</s>
    <s>e</s>
    <s>f</s>
    <s>g</s>
    <s>h</s>
    <s>i</s>
    <s>j</s>
    <s>k</s>
    <s>l</s>
    <s>m</s>
    <s>n</s>
    <s>o</s>
    <s>p</s>
    <s>q</s>
    <s>r</s>
    <s>s</s>
    <s>t</s>
    <s>u</s>
    <s>v</s>
    <s>w</s>
    <s>x</s>
    <s>y</s>
    <s>z</s>
    <s>0</s>
    <s>1</s>
    <s>2</s>
    <s>3</s>
    <s>4</s>
    <s>5</s>
    <s>6</s>
    <s>7</s>
    <s>8</s>
    <s>9</s>
    </list>
    <ref>splitString</ref>
    </containsAll>
    </block>
    </Rule>
    It Retruns 1 if it contains only alphanumeric otherwise 0

  • Unique regular expression to check if a string contains letters and numbers

    Hi all,
    How can I verify if a string contains numbers AND letters using a regular expression only?
    I can do that with using 3 different expressions ([0-9],[a-z],[A-Z]) but is there a unique regular expression to do that?
    Thanks all

    Darin.K wrote:
    Missed the requirements:
    single regex:
    ^([[:alpha:]]+[[:digit:]]+|[[:digit:]]+[[:alpha:]])[[:alnum:]]*$
    You either have 1 or more digits followed by 1 or more letters or 1 or more letters followed by 1 or more digits. Once that is out of the way, the rest of the string must be all alphanumerics.  The ^ and $ make sure the whole string is included in the match.
    (I have not tested this at all, just typed it up hopefully I got all the brackets in the right place).
    I think you just made my point.  TWICE.  While the lex class would be much more readable as a ring.... I know all my brackets are in the correct places and don't need to hope.
    Jeff

  • Can't open iPhoto.. message says check that the volume has sufficient free disk space

    message reads
    Unable to write to write to libary "iphoto" check that the volume has sufficient free disk space is free ? help

    How much free space do you have? You should always have a minimum of 10 GB or more - 10% of your hard drive is a good goal
    LN

Maybe you are looking for

  • I can't open any iLife software because of the QuickLookUI Plugin is failing?

    I really need this to open but its not for some reason. I donot why 2 days ago it was working fine but this morning it is all the suddent not working. Please help me this really urgent! This is the error report: Process:         Pages [1035] Path:   

  • SOA 10.1.3.5.1 certified with WLS 10.3.2

    You can download and run WLS 10.3.2 but only deploy SOA SUITE 10.1.3.5.1 to WLS 10.3.1. Why can't Oracle synchronize the release of their products. I am not sure what path to pursue ! We are already using WLS 10.3.2 from other reasons and would rathe

  • ITunes skipping

    I know this has been discussed, but thus far I have been unable to find a solution. I have a new iMac (8 GB of memory) that is running OS X 10.8.4, with iTunes 11.0.4.  I'm re-downloading songs from my Cloud, as well as purchasing new music.  It is a

  • CachedRowSet

    I am new to java but I am trying to use a CachedRowSet. I have downloaded the jdbc2_0-stdext-src.zip file and extracted the files and have installed JavaTM 2 SDK, Enterprise Edition 1.3.1 but my IDE (NetBeans IDE 3.4.1) is complaining that the "impor

  • The default selectRangeChoiceBar  not work

    Im writing the code like that for adf faces earlly access 13 but The Previous button, a choice, and a Next button in the tabel select one dont work properlly i dont know why , they were working in the early access9 with the HR employees tabel with th