Is there a function to check a list of characters in a string?

is there a function to check a list of characters in a string?

You need to create a vi. Find attached a vi that you can use. In the vi, if the number of match occurrence is zero, that indicates no match otherwise it will return the number of matches in the supply string. The vi is a modified version of Search String and Replace - General
Attachments:
Search_String_and_Count_Match.vi ‏17 KB

Similar Messages

  • Need to check whether first  two characters of a string is Alphabets or not

    Hi,
    Need to check whether first two characters of a string is alphabet or not.
    Lets say for Ex,
    String as 'DE123456' i need to check whether first  character is non-numeric and then second character as non numeric.
    kindly help me on this.
                    IF length(trim(p_parserec(31))) = 22 AND p_parserec(31) LIKE 'DE%'  THEN
                        AUFTRAGGEBERKONTONR := trim(p_parserec(31)) ;
                     ELSIF  (length(trim(p_parserec(31))) > 22 AND length(trim(p_parserec(31))) < 35)  AND p_parserec(31) NOT LIKE 'DE%'  THEN
                       AUFTRAGGEBERKONTONR := lpad(trim(p_parserec(31)), 34, 0) ;
                     ELSIF length(trim(p_parserec(31))) > 10 AND ascii(substr(p_parserec(31), 1, 2)) between 48 and 57 THEN
                       AUFTRAGGEBERKONTONR := lpad(trim(p_parserec(31)), 10, 0) ;
                     ELSE
                        p_errorcd   := sqlcode ;
                        p_errordata := sqlerrm ;
                   END IF ;
    Note : In the third else if condition the character should be greater than 10 and first 2 characters should not be alphabets.

    Siva.V wrote:
    Need to check whether first two characters of a string is alphabet or not.
    To this requirement only regexp_like will work too! No need of some other string function!
    Like:-
            -- in regexp_like last parameter shows to ignore case (optional).
    SQL> with t as
      2  (select 'AB123456' as key from dual union all
      3  select 'CD234567' from dual union all
      4  select 'A1234567' from dual union all
      5  select 'A52H4341' from dual union all
      6  select 'Dk274341' from dual union all
      7  select 'DE234556' from dual)
      8  select key
      9  from t
    10  where regexp_like(key,'^[A-Z]{2}','i') -- even '^[[:alpha:]]{2}' or '^\D{2}' pattern can be replaced for same result..
      11  /
    KEY
    AB123456
    CD234567
    Dk274341
    DE234556
    Thanks!

  • Is there any function to check whether table exist in the dictionary

    In the program, i want to dynamicly check whether the table exists in the dictionary, and return the result to me.

    hi
    good
    i dont think there is any such function to check the presence of the table.
    bcz you can check it directly in se11 rather than using any function.
    thanks
    mrutyun^

  • Java.lang.String:   How can we replace the list of characters in a String?

    String s = "abc$d!efg:i";
    s = s.replace('=', ' ');
    s = s.replace(':', ' ');
    s = s.replace('$', ' ');
    s = s.replace('!', ' ');
    I want to check a list of illegal characters(Ex: $ = : ! ) present in the String 's' and replace all the occurance with empty space ' '
    I feel difficult to follow the above code style.. Because, If list of illegal characters increased, need to add the code again to check & replace the respective illegal character.
    Can we refactor the above code with any other simple way?
    Is there any other way to use Map/Set in this above example?

    RTFM
    http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html
    That document is almost perfectly useless for someone
    who is just starting to learn regexes. What they
    need is a good tutorial, and the best one I know of
    for Java programmers is the one at
    this site. When you're ready to move on from
    introductory tutorials, get the latest edition of
    Mastering Regular Expressions, by Jeffrey Friedl.Dear Uncle,
    maybe you want to read that document first before judging its usefulness. And just in case you can't be bothered, the following is an exact quote, which accidently happens to clearly explain the op's question on the usage of \\[\\] in sabre's regex:
    Backslashes, escapes, and quoting
    The backslash character ('\') serves to introduce escaped constructs, as defined in the table above, as well as to quote characters that otherwise would be interpreted as unescaped constructs. Thus the expression \\ matches a single backslash and \{ matches a left brace.
    It is an error to use a backslash prior to any alphabetic character that does not denote an escaped construct; these are reserved for future extensions to the regular-expression language. A backslash may be used prior to a non-alphabetic character regardless of whether that character is part of an unescaped construct.
    Backslashes within string literals in Java source code are interpreted as required by the Java Language Specification as either Unicode escapes or other character escapes. It is therefore necessary to double backslashes in string literals that represent regular expressions to protect them from interpretation by the Java bytecode compiler. The string literal "\b", for example, matches a single backspace character when interpreted as a regular expression, while "\\b" matches a word boundary. The string literal "\(hello\)" is illegal and leads to a compile-time error; in order to match the string (hello) the string literal "\\(hello\\)" must be used.

  • Is there any functionality to check duplicate records of vendor master

    Dear all,
    In creation of vendor master, there is probability of creation of same vendor twice by the user by ignorance.
    Do we any check in SAP so that we cannot create the vendor if that vendor already exists.
    For instance, based on vendor name can we put check so that system gives error message if that name already exists.
    Kindly revert back with your suggestions.
    Thanks,
    Kumar

    Hi,
    First of all you need to have the information ,what are all the fields that needs to be checked for identifying the master data as duplicate, ie name /adress/post code/bank details.
    If you put only one 'name' only for checking the master data duplication then there might be cases where the two vendors having the same name . So i would suggest take more than one field for identifacation the vendors.
    Best Regards
    Suresh Addagiri

  • Is there a function to check if a date (as a String: "12.05.2002") is valid

    or do I have to split up the day, moth and year and check them separately?

    well i can parse it but I need it as a String not a Date.
    Now I did it manually, here`s the code:
         public boolean checkDate(String s)
             if(getLengthWithoutWhitespace(s) != 10) return false;
             String day, month, year;
             int dd, mm, yy;
             day = s.substring(0, 2);
             dd = Integer.valueOf(day).intValue();
             if(dd < 1 || dd >31) return false;
             month = s.substring(3, 5);
             mm = Integer.valueOf(month).intValue();
             if(mm < 1 || mm > 12) return false;
             year = s.substring(6, 10);
             yy = Integer.valueOf(year).intValue();
             if(yy < 2002 || yy > 3000) return false;
             return true;  
         }thanks anyway :-)

  • Is there any function make lwuit - List line wrapping?

    Is there any function make lwuit - List line wrapping when the string is too long to display?
    Please Help~
    Thanks a lot.

    did you check LWUIT [API documentation|https://lwuit.dev.java.net/nonav/javadocs/index.html] or their forum?

  • Is there any function module for getting distribution list name

    Hi all,
    Is there any function module for getting distribution list name when there is same description for two distribution list name.
    or
    help me how to fetch the correct distribution name when there is same description.
    In order to send mails.
    Tell me ASAP.
    thanks
    sagar.

    http://www.sapbrainsonline.com/REFERENCES/FunctionModules/SAP_function_modules_list.html
    list of Fms

  • Is there any why to check that the reports are functioning well in Webanaly

    Hi Experts,
    is there any why to check that the reports are functioning well in Webanalysis?
    any Help in this issue ASAP is highly appreciated
    Kind Regards,
    Vam-c

    What do you mean by checking whether they are working?
    You can always open the report and see whether everything is working ;)
    Regards
    Celvin
    http://www.orahyplabs.com

  • SAP BW on HANA DB Migration - Technical & Functional Assessment Check List Required

    Hello Experts,
    Typically, Before we start SAP BW on HANA DB migration, we would certainly need Technical & Functional Assessment Check List. As per knowledge, to execute BW on HANA DB migration, we would need HANA Admin and Developer, BASIS and BW consultants.
    Can some one share me what exactly these people does in Technical & Functional Assessment ?.
    What could be the duration ?.
    Does this people require to login into the system's physically and perform any activities ?
    Please share me details.
    Thanks,
    HA

    Hi,
    with the perferred (and recommeded) database migration option (DMO) as part of the SUM the need of these Functional Assessment Check List might obsolete, as a lot of manual tasks are integrated into the automated process, which were only available as lists in the past.
    For an Overview, see - Migration BW on HANA - Update 2014 | SCN
    For a detailed step by step, see - SAP First Guidance - Migration BW on HANA using the DMO option in SUM
    Best Regards Roland

  • Is there any FUNCTION I can use to check the existence of a USER?

    Hi,
    Is there any FUNCTION I can use to check the existence of a USER? I dont want to write a function by myself to access usr01 directly.
    Thanks in advance.

    You can use FM USER_EXISTENCE_CHECK
    Thanks
    Seshu

  • Func MD_MRP_LIST_API = MD06 list, but is there a function for MD04 ?

    Dear all SAP gurus.
    Func MD_MRP_LIST_API = transaction MD06
    ...but is there a function for MD04 ?

    Hi,
    Try FM MD_STOCK_REQUIREMENTS_LIST_API
    Cheers,
    Surinder

  • How to check a list of users whether integrated to SRM Org Structure

    Dear SRM Gurus,
    I am using SRM 4.0 system with classic scenario.
    We are not using the HR system integration for org structure setup.
    I have a list of users to be checked, whether they are integrated to SRM Organization structure.
    Normally, I use the "Check Users" option under, Users_Gen tcode to check a single user.
    Is there any way to check multiple users(almost 300 users) at once.
    Any Table or function module is avalable?
    Thanks in advance.
    Loka

    Hello Loka,
    Run same transaction. When you are on screen "Object Synchronization and Repair", set "User" but do not populate any value, then execute.
    You will get all users: when user has a red icon in column 'Object links', this means he is not integrated in the organizational model.
    In same transaction, if you can also set "Branch from Organizational Unit" and "Users only". Here, you will get only users integrated into organizationl model.
    Regards.
    Laurent.

  • We have three discussions forums with same subject. whenever a post gets new reply in one forum, it should automatically trigger workflow functionality to check conditions and send the same reply to other synchronized forums.

    we have three discussions forums with same subject. whenever a post gets new reply in one forum, it should automatically trigger workflow functionality to check conditions and send the same reply to other synchronized forums.
    Rajiv Kumar

    Hi,
    More details about your discussions forum will make others easier to find a corresponding solution on your requirement.
    If you mean there are three Discussion Board list waiting for synchronizing, I would suggest you create an Event Receiver for the three Discussion Board list.
    Here is a link with code demo about how to copy items from one Discussion Board to another including Replies:
    http://spcodes.blogspot.com/2013/03/programmatically-copy-items-from-one.html
    Here is a step by step sample on creating a simple Item added event receiver for Custom List in SharePoint 2010:
    http://msdn.microsoft.com/en-us/library/ff398052.aspx
    More information on Event Receiver for your reference:
    http://msdn.microsoft.com/en-us/library/gg749858(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/ff408183(v=office.14).aspx
    Feel free to reply if there are still any questions. 
    Best regards
    Patrick Liang
    TechNet Community Support

  • Is there a way of getting a list of upcoming alerts/alarms and their times?

    I'd like to get a list of alert times, so that I can see if I have any that will be going off in the middle of the night!
    Many months back, I purged those pesky midnight alerts by scrolling through week by week and looking for the all-day events and checking each one. It was a chore.
    Now, due an odd synching issue between iCal and an app, I'm a tad concerned that some late night alerts may have been set, or PMs may have changed to AMs, or other oddities introduced. I'd like to scan a list of alerts for the next several months to ensure that none are set to go off during the sleeping hours!
    Just browsing events (say week by week) doesn't help me because they could have alerts set for all sorts of different times (or no alerts at all). If there isn't a way of listing the alerts, then I'll have to go through each individual event/to do to check its alert and time-- and there are hundreds!
    Hope this makes sense.

    Try this in Script Editor - the list of alarms will be in the result pane.
    AK
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">tell application "iCal"
    set Alarming to ""
    set MyCalendars to every calendar where writable of it is true
    repeat with ThisCal in MyCalendars
    set MyEvents to events of ThisCal
    repeat with ThisEvent in MyEvents
    repeat with ThisAlarm in (display alarms of ThisEvent) & (sound alarms of ThisEvent)
    set AlarmTime to (start date of ThisEvent) + (trigger interval of ThisAlarm)
    set GotOne to ((name of ThisCal) & ": " & (summary of ThisEvent) & ": " & (start date of ThisEvent as string) & " alarm " & trigger interval of ThisAlarm as string) & " minutes."
    set Alarming to Alarming & GotOne & return
    end repeat
    end repeat
    end repeat
    end tell
    Alarming
    </pre>

Maybe you are looking for

  • Inbound delivery creation

    Hi All, I am trying to create an inbound delivery with reference to PO by using FM BBP_INB_DELIVERY_CREATE and it is not letting me know the error nor its creating the ASN ( inbound delivery),, Please advice how to proceed ..do we have any other FM's

  • Foreign conversion currency posting

    Dear ALL In my Client place when they purchase in export orders they billed the goods in the current foreign currency rate for  example use 46.20  when they issue the payment to  vendor through bank cheque payment that time the foreign currency rate

  • Internal Sub-Contracting Scenario

    Hai Friends, Please explain me the scenario of internal sub-contracting process. What is the settings required in SAP ?

  • Are my photos REALLY deleted?

    I needed to make space on my jam packed hard drive so I backed up my iPhoto Library and started deleted photos that I don't need to carry around on the laptop. But it seems that some of the images, or alias or some other versions of the photos might

  • Joint time frequency analysis in Signal Express?

    Is it possible to do joint time frequency analysis in Signal Express?  I didn't see it in the Analysis section, so I'm assuming it's a separate tool that has to be added, if even possible in Signal Express.  Help? Solved! Go to Solution.