How can I do field validation on the last two characters of a text field?

I have a text field. The user is required to enter the last two characters as numbers. I want to apply validation on this field. How can i achieve the same?
EX: If the user enter ABCDE, an error messgae stating the last two digit should be numeric.
I tried using the below in the field validation which did not work.
(0+Right([<ExternalSystemId>],2)) > 0 AND (0+Right([<ExternalSystemId>],2)) < 99.
Any ideas would help?

Try this-
FindOneOf(Right([<Field1>],"2"),"abcdefghijklmnopqrstuvwxyz")=0
rgds,
Amit

Similar Messages

  • How can I backup archivelog generated in the last 5 minutes ?

    Version: 11.2.0.3
    Platform : RHEL 6.2
    How can I backup archivelog generated in the last 5 minutes ? Following is what I've attempted so far ?
    RMAN> backup archivelog all format '/rman_backups/Nov21Bkp/archiveTest_%U' UNTIL TIME 'sysdate-5/1440';
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "until": expecting one of: "archivelog, auxiliary, backupset, backup, channel, controlfilecopy, copy, current, database, datafilecopy, datafile, db_recovery_file_dest, delete, diskratio, filesperset, force, format, from, include, keep, maxsetsize, noexclude, nokeep, not, plus, pool, recovery, reuse, section, skip readonly, skip, spfile, tablespace, tag, to, comma, (, ;"
    RMAN-01007: at line 1 column 81 file: standard input
    RMAN> backup archivelog all UNTIL TIME 'sysdate-5/1440' format '/rman_backups/Nov21Bkp/archiveTest_%U';
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "until": expecting one of: "archivelog, auxiliary, backupset, backup, channel, controlfilecopy, copy, current, database, datafilecopy, datafile, db_recovery_file_dest, delete, diskratio, filesperset, force, format, from, include, keep, maxsetsize, noexclude, nokeep, not, plus, pool, recovery, reuse, section, skip readonly, skip, spfile, tablespace, tag, to, (, ;"
    RMAN-01007: at line 1 column 23 file: standard input

    HemantKChitale wrote:
    You shouldn't specify both "ALL" and "FROM/UNTIL TIME"
    Also if you want the archivelogs generated in the last 5 minutes, you should be using FROM TIME.
    If you want the archivelogs generated until 5minutes ago (and not the latest archivelogs), you should be using UNTIL TIME.
    Hemant K Chitale
    I've wondered about the utility of the FROM and UNTIL options for backup of archivelogs.  If one is going to back them up, why would one use an option that distinctly introduces the possibility of having gaps - un-backed-up archivelogs?  Why would one not simply back up all archives not previously backed up at least once?
    I'm sure you'll give me a valid response for a situation for which my imagination fails to see. 

  • How can I put something in for the last Wednesday of every month

    How can I put something in for the last Wednesday of every month

    I don't believe there is such a custom repeat option with the iPhone's Calendar app, but if you are syncing calendar events with a supported calendar app on your computer or syncing calendar events over the air with an email account that supports it with an option to create such a custom repeating event with the online calendar, set up the custom repeating event there.

  • How can I print a label on the last page of the report in the margin

    I would like to display a label on my report but has to appear only on the last page of the report in the margin area or as a footer. I have tried using the solution below that I came across in this forum. This solution only worked if I put the label as a report trailer and not in the margin of the main section of report. The problem of putting the label as a report trailer is that it will only appear at the end of the report on it's own page, i.e. on a new page. I would like the label to appear at the end of the report, on the last page which has the other report details and not to appear on a new page on its own. Could you please help? Thanks.
    1. Create a dummy query, like
    select 1 dummy
    from dual
    2. Create a package spec:
    PACKAGE pkg_globals IS
    totalPages number(3);
    END;
    2. Create a repeating frame and field for this dummy at the end of the report layout.
    3. Create a format trigger for this frame:
    function R_1FormatTrigger return boolean is
    begin
    SRW.GET_PAGE_NUM(pkg_globals.totalPages);
    return (FALSE);
    end;
    4. Create a format trigger for your margin field:
    function F_1FormatTrigger return boolean is
    pagenum number;
    begin
    srw.get_page_num(pagenum);
    if pagenum = pkg_globals.totalPages then
    return (TRUE);
    else
    return (false);
    end if;
    end;

    user8655468 wrote:
    I would like to display a label on my report but has to appear only on the last page of the report in the margin areaCreate a fixed frame at the bottom of margin area and inside the frame put your label.
    set the frame print object on: Last page
    Hope this works..

  • How can I get co-ordinate of the last pixel drawn?

    Let me explain
    Suppose I do something like this:
    for(int i=0;i<100;i++)
          g.drawString(randomlyGeneratedString, x, y);
          x=x+25;
    }Now, the above loop will draw a string one the same line. Notice how I am incrimenting x by 15 each time?... thats a precaution cuz I dont want the strings to overlap. But thats not a fullproof way of doing it
    My question is, is there a way of getting the last co-ordinate after g.drawString() is used? In other words, the co-ordinate of the point where the string ends.

    Let me explain
    Suppose I do something like this:
    for(int i=0;i<100;i++)
    g.drawString(randomlyGeneratedString, x, y);
    x=x+25;
    }Now, the above loop will draw a string one the same
    line. Notice how I am incrimenting x by 15 each
    time?... thats a precaution cuz I dont want the
    strings to overlap. But thats not a fullproof way of
    doing it
    My question is, is there a way of getting the last
    co-ordinate after g.drawString() is used? In other
    words, the co-ordinate of the point where the string
    ends.
    You could get the FontMetrics and calculate the length of the written string in pixels. With the starting point, you'd be able to calculate where the end of the string will be. If that's what you mean...

  • How can I start Fireworks without openig the last Files

    Hi,
    I need to open Firewrks without opening the last File I'm working on.
    The Problem is that the programm crashes by starting and automatically opening the last pictures.
    Any idea?
    Kind Regards

    You could try the solution mentioned in the following forum thread:
    http://forums.adobe.com/thread/1193088?tstart=0

  • How can I prevent iTunes from downloading the last podcast when I subscribe?

    When I subscribe to a podcast RSS feed iTunes instantly begins to downoad the last podcast in the feed. This is in spite of the Podcast Settings default being set to Do Nothing. I have installed many versions of iTunes and they all did it so the answer cannot be to reinstall.

    Same issue since Mavericks.

  • Limit the amount of characters of a text field based on first digit

    Hello and thanks in advance for your help!
    I would like to limit the amount of characters of the text field based on the first digit of the number (the text field is only limited to a number format...no decimals, no commas).
    For example, if the number begins with a 3, I would like to limit the text field to allow only ten characters. I have three scenarios but if I could get started with some code and what is the best place to add it (keystroke or validation?) I can take it from there. Thanks again for your help!!

    I've written this code for you that does that. Use it as the field's custom Keystroke code:
    // Validate that only digits are entered
    if (event.change) {
        event.rc = /^\d+$/.test(event.change);
    // Validate string length if it starts with 3
    if (/^3/.test(AFMergeChange(event))) {
        event.rc = AFMergeChange(event).length <= 10;
        if (!event.rc) app.alert("If the number starts with \"3\" it may not be longer than 10 digits.",1); // optional error message
    You can duplicate the second part of it for additional conditions, but keep in mind that this code won't even let you remove the first character in the field if the result is an invalid one.
    For example, if you enter "234567890123456" then you can't remove the "2" at the start because that would result in an invalid number. You can remove any of the other digits, though, and when it's 10 digits or less then you could remove the starting "2" as well.

  • I spend a lot of time arranging my tab groups in the tab group view. But Panorama keeps rearranging them whenever I open up firefox. How can I get it to keep the last arrangement I left the tab groups in?

    My laptop resolution changes many times a day because I use a docking station. I suspect that this could be causing Panorama to rearrange my tab groups. None the less, I would like it to stop! Anyone know how I can get it to comply?

    Hello. I have just tried this add-on you suggested, and no change.
    And no, there was no some other add-on before, not that I know about it. Mainly, I need this option while I'm on a forum (IP board powered), it is not really something so important, but it's neat function for me.
    So, to be more detailed - I read a certain topic on this forum, and some of the posts from other members contain YouTube screens (looking same as on the original YouTube page), showing the frame of a video.
    In earlier versions of Firefox, I used to click on a small YouTube logo button (right side, down, between "watch on full screen" and "watch later" buttons). Clicking on this button automatically opened new tab, leaving forum tab as it is, and in new tab original YouTube page, with that certain video. In the same time, in Google search page, when clicking on a link, all links were opening in the same tab.
    Now, after some of the latest updates of Firefox, I noticed that some default settings were changed - in Google search, clicking on a link always opens a link in a new tab. I have found out here on your forum how to set this back in about:config feature, and now I have again that links in a Google results page are opened in the same tab (that's the way I like it).
    But YouTube screens on this forum are now also being opened in the same tab, and that is what I don't like, and trying to change back.
    So, what I need: all links to open in the same tab after clicking, as I have it now, and YouTube screens (e. g. on this forum) to be opened in a new tab (by clicking on a small YouTube logo ("watch this video on YouTube").
    Pedantic I am, I know that, and I know that this may look silly to some people, but if there is a way to do something, please tell me.
    Thanks for answering, and best regards.
    P.S.
    Is it possible that forum updates changed my setting, and not the Firefox? Thanks again...

  • How do I drop the last 3 characters in a string?

    Hello.  I'm trying to find a way to drop the last 3 characters in a string.  The length varies because it is a last name field.  The problem is that when a customer has a suffix on their name, III for example, it is appended to the last name all in the last name field.  If I use the ProperCase function, I end up with "Smith Iii".  How can I tell it to drop the last 3 characters?  I'll then append an UpperCase edition of the last 3 characters to that.  Thank you!

    Use the instring and right string functions then UpperCase

  • How can I get a query in the search field to open in a new tab or new window from the current window?

    How can I get a query in the search field to open in a new tab or new window from the current window?

    If you are searching via the Search Bar on the Navigation Toolbar, this preference can be changed to have searches there open in a Tab.
    Type '''about:config''' in the Address Bar and hit Enter. Then answer "I'll be careful". Type this pref in the Search at the top.
    '''browser.search.openintab''' = double-click to toggle to '''true'''

  • How can I hide or make visible the fields at the order and at the delivery?

    How can I hide or make visible the fields at the order and at the delivery?
    Thanks in advance.

    Hi,
    For sales order, use user exit :
    MV45AFZZ and FORM userexit_field_modification.
    For deliveries, use BADI :
    LE_SHP_DELIVERY_PROC (see with Tcode SE18) and method CHANGE_FIELD_ATTRIBUTES.
    Create implementation in ref to this badi with Tcode SE19.
    Regards,
    Lionel

  • How can I obtain the first 10 charcter from field and the last 4 characters

    Hi
       I need to obtaind the first 10 characters from field AWKEY from BSEG table, and the last 4 characters, how can I obtain certains position from field??
        Example:
      AWKEY field from BSEG can be for example :
    51000573112002
       This mean that you can obtain separately:
    5100057311 - BELNR (field)
    2002- GJAHR (field)
        As you can see, the first 10 positions are BELNR and the last 4 positions are GJAHR.
         But sometimes you find in old rows:
    5100057312US502001
         This mean that you can get from this field:
    10 positions for BELNR : 5100057312
    4 positions for BUKRS or WERKS : US50  - in this case, I don´t know if its is BURKS or WERKS...for this reason only I want to take only the first 10 positions and the last 4 position to compare.
    4 posiition for GJAHR: 2001
       I rewards all the answers.
       Thank you.
    Alicia

    Hi, thank you for yours answers
    Let me try to explain more what I need to do:
    I have a Internal Table that I create with EKBE table:
      SELECT  MANDT EBELN EBELP GJAHR BELNR BEWTP BUDAT
              MENGE WRBTR WAERS WERKS SHKZG DMBTR
              ZEKKN VGABE BUZEI
        INTO CORRESPONDING FIELDS OF TABLE LIST_EKBE
        FROM EKBE
          WHERE EBELN IN R_EBELN
            AND BEWTP IN ('E','Q','R').
    The result is all the rows that have this conditions..then with this internal table I need to looking for each BELNR in BKPF table, but sometimes you can find the row compare EKBE-BELNR with BKPF-BELNR...but in many cases, you don´t find the row in this way, you need to add EKBE-BELNR and EKBE-GJAHR and looking for in BKPF with field AWKEY..
    For this reason I CONCATENATE in this way:
    LOOP AT LIST_EKBE.
        V_BELNR = LIST_EKBE-BELNR.
        V_GJAHR = LIST_EKBE-GJAHR.
        CONCATENATE V_BELNR V_GJAHR  INTO V_AWKEY.
        SELECT SINGLE MANDT BUKRS BELNR GJAHR AWKEY
        INTO (BKPF-MANDT, BKPF-BUKRS, BKPF-BELNR,
             BKPF-GJAHR, BKPF-AWKEY)
        FROM BKPF
        WHERE AWKEY = V_AWKEY.
    ENDLOOP.
      But I saw that sometimes you don´t find the record in BKPF because the AWKEY is formed with BELNRBUKRSGJAHR....or may be with BELNRWERKSGJAHR ...I don´t know if is BUKRS or WERKS the second field...for this reason I try only read in the select..if its posible the first 10 postions and the last 4 positions...but Im not sure if its possible..
      The reason for that I looking for the BELNR field in BKPF field for AWKEY its because sometimes de BELNR in BKPF its different..example:
    In EKBE you have:
    BELNR: 5105618260
    GJAHR: 2006
    If you looking for in BKPF you don´t find sometimes exactly the field BELNR : 5105618260.. then you need try looking for the AWKEY field then you need to add BELNR+GJAHR..example:
    BKPF:
    BELNR: 5105611111
    GJAHR: 2006
    AWKEY: 51056182602006
    But in other cases... I found that in AWKEY exist for example:
    BELNR: 5105611111
    GJAHR: 2006
    AWKEY: 5105618260US502006
    In the last case I supouse that I can divide in:
    AWKEY: 5105618260-US50-2006 ... but I don´t know what its the field that have the information US50..may be is BUKRS or may be its WERKS
    May be some people know what its exactly this field and can help me..
    With the solution that some of yours give me..I don´t know the how I can make the select? and if its posible make in this way
    Thank you a lot

  • Hie guys..how can i activate my iphone without the original sim card coz it says SIM not valid if i insert it.....im in south africa thanks for your help

    hie guys..how can i activate my iphone without the original sim card coz it says SIM not valid if i insert it.....im in south africa thanks for your help

    Sorry, you can't. If your phone is carrier locked, you will need a sim card from that carrier, to activate it.

  • How can I pull info into a report using just the first two characters of that field?

    I am trying to pull a total cost based upon locations in a particular area(s). Can I get the formula to just do this based on the first two characters of that field?
    Here is what I have so far:
    if {PACKED.LOCATIONS.NEXT OPERATION} = ["xx"] THEN {Job.Total_Price}
    Packed locations is a table I'm pulling from and the column I want just the first two digits is the the Next operation. Once this meets the "xx" (whatever location) then give me the total price from the Job table.
    This works for one or two orders, but then blows up when I do 10 or so.

    Hi Steve, assuming that Next Operation is a string field...
    Create a new formula and place it in the field where you see the {Job.Total_Price} field (Detail or Group depending on your report) with the formula:
    whileprintingrecords;
    global numbervar TotalValue;
    if len({? Replace me}) <= len({PACKED.LOCATIONS.NEXT OPERATION}) then(
    if left(ucase({PACKED.LOCATIONS.NEXT OPERATION}),len({? Replace me})) = ucase({? Replace me}) then
    TotalValue := TotalValue + {Job.Total_Price}
    TotalValue;
    You can go ahead and suppress that field.
    Create a new formula to place where you want to view the summary using the formula:
    whileprintingrecords;
    global numbervar TotalValue;
    This method allows for a higher degree of flexibility and you can search for the first x characters of that field instead of only the first 2 characters

Maybe you are looking for

  • Lightroom to Premiere Pro

    In Bridge and Elements Organizer 4.0 I can simply select a photo and drag and drop the image into Premiere Pro 2.0. It is a very handy feature when having to work with a lot of photos in videos. In Lightroom this functionality seems to be lost. Is th

  • Can I submit screen shots about mac mini unpublished for help from Bob Harris?

    I am dyslexic I am telling you that as I have on previous post the reason is to 1. make it understood that terminology without explanation makes the answer almost unusable. If there is a reference that would help I would use it if given. 2. to make i

  • Email header printed on separate page

    Hi, I have some users that are having a problem with printing emails. On occasion, these users have emails that print the "header" on the first page, and the rest of the email starts on a new page. This does not occur all the time, but appears to be

  • Is it better to set the admin account to other than myself on a new computer for security purposes?

    Hi all On a new computer is it better to set the admin account to other than myself for security purposes? I am sure that I read some years ago that this was the best route to go down. What I am suggesting is that I will still administer the account

  • Urgent: Excessive archive logs 10g 10.2.0.4

    Hi, I am experiencing excessive archive logging. This has been happenning for the past 3 days. Usually achive logs were taking about 250 Mb. Yesteday they jumped to 129Gb, today - 30Gb until the hard drive ran out of space. Now I obviously have "Arch