Creating a mask for field input

I have a cfinput that requires the serial number for a piece of equipment.  The number is always something like J123M456789 where the J or the M could be any letter and the 123 and 456789 could be any number that is 3/6 characters.  The code i am using for my input is as follows:
<cfinput type="text" name="IDnumber" message="You must enter an 11 character meter number" mask="A999A999999" validateat="onSubmit" validate="maxlength" required="yes" class="SERIAL"id="IDnumber" maxlength="11" width="240" minlength="11">
I am still able to enter any number, any which way i choose. 
Can anyone help?

Woops, my bad
Some of the validation is working.  It is forcing me to input a letter, 3 numbers, a letter and then numbers again.  The trouble is it will let me submit at any time.  In otherwords if I place 11 characters in the text field, they must be in the proper format however i cant get it to force me to enter exactly 11 characters.
HELP!!!!!

Similar Messages

  • Create search helps for fields of custom tables

    Hi,
    Could any one please provide me the step by step process to create search helps for fields in custom tables?
    Thanks in advance,
    Nobin.

    Hello Nobin
    There is basically no difference between a search help for standard vs. customer tables.
    An important choise is the selection method for your search help:
    Either you use your custom table, a view or a search help user-exit if you need to implement very specific requirements.
    Assuming that you can use your DB table as selection method the further implementation of the search help is quite straightforward:
    (1) Define the parameters you would like to have a selection criteria (SPos = SPos) and which should appear on the result list (= LPos).
    (2) Define the parameters that can be used as input for the selection (flag IMP) and are returned by the search help (flag EXP)
    Regards
      Uwe

  • Error while Creating a formula for field AZNOR (T-Code : OP17)

    Dear Experts,
    i am facing a problem in Transaction OP17 while creating a formula for field AZNOR ( No of indivual capacity in work center) in work center (T-Code : CR02) .
    It shows the error
    The data object "F" has no component called "AZNOR''..
    Please let me know the solution..
    Thanks & Regards
    Birendra Kumar

    Hi,
    I have the same problem.
    Could You tell me witch is the correct origin?
    Thanks a lot!
    Bye
    Laura

  • Create a screen for user input in BI

    Hi Experts,
    I want to know can i creat a screen for user input in BI with module pool programing
    and i want to store the data in ztable in SAP-BI.
    Moderator message: please search for available documentation, these forums are no substitute for ABAP training.
    Edited by: Thomas Zloch on Dec 10, 2010 8:37 PM

    I'm afraid that I cannot get it. I had a look at the docs you suggested before posting, and still, no luck (...)
    JOptionPane.showMessageDialog(dialog, "Please input info");Can you please tell me what I'm doing wrong and I cannot add the JDialog to the JOptionPane?Re-read the API and tutorial. JOptionPane is meant specifically to spare you from instantiating manually a JDialog. The showXxxDialog(...) methods do create a JDialog of their own, based on the contents supplied as arguments.
    In particular, using the 2-arguments variation showMessageDialog(Component parentComponent, Object message):
    - The first argument parentComponent is not be the dialog you want to display, but the component over which you want the dialog to appear. The most typical value are this or null.
    - The second argument is the "message" to display, but as described in the API, it can be a JComponent, that is, even a JPanel with child widgets (in a word, a JPanel containing the specific form you'd display in the dialog if you were writing the dialog manually).
    Again, at the risk of insisting densely, I'm only quoting the API an tutorial, so please read them attentively.
    Edited by: jduprez on Nov 2, 2009 2:29 PM - Sorry Kevin, hadn't seen you latest reply. I completely subscribe to the thought process you recommend.
    Edited by: jduprez on Nov 2, 2009 2:32 PM
    Thinking about it further, I don't completely subscribe... Indeed it looks like a bad idea to make the OP wonder about dialog.setVisible() when JOptionPane enables him to forget about the hand-made dialog. I stand by my own advice ("JDialog" should not even appear in this code extract).

  • How to create function code for field in GRID like list box in screen

    Hi all,
    I have requirement like drop down is created for field1 in GRID,
    and have given f4 help for it, as soon as i change the data in the field
    event has to trigger to update thevalues in other field.
    This scenario i worked on screens where field is created with listbox and assign function code to it
    when the field value changes the event  triggers .
    Is there is anything like that which will fire the event for field value changes.
    can i update anything  through the  fieldcatalogue.
    anybody help me on this
    Regards,
    Madhavi

    Hi Madhavi,
    yes we can do that by registering edit events..
    check the below example.. has both the variants dropdown/f4 hlp...
    screen flow logic
    PROCESS BEFORE OUTPUT.
      MODULE pbo.
    PROCESS AFTER INPUT.
      MODULE pai AT EXIT-COMMAND.
    program
    *       CLASS lcl_event_responder DEFINITION                           *
    CLASS lcl_event_responder DEFINITION.
      PUBLIC SECTION.
        DATA  : ls_changed_cell TYPE  lvc_s_modi,
                lv_language     TYPE  spras..
        METHODS refresh_changed_data  FOR EVENT data_changed
                                      OF cl_gui_alv_grid
                                      IMPORTING er_data_changed
                                                e_ucomm.
    ENDCLASS.                    "event_responder DEFINITION
    DATA: go_handler         TYPE REF TO lcl_event_responder,
          go_container       TYPE REF TO cl_gui_custom_container,
          go_grid            TYPE REF TO cl_gui_alv_grid,
          gt_fieldcat        TYPE lvc_t_fcat,
          gv_language        TYPE spras VALUE 'E',
          gt_outtab          TYPE TABLE OF makt WITH HEADER LINE.
    PARAMETERS : dropdown TYPE char01 RADIOBUTTON GROUP grp,
                 f4help   TYPE char01 RADIOBUTTON GROUP grp.
    START-OF-SELECTION.
      CALL SCREEN 100.
    END-OF-SELECTION.
    *       MODULE PBO OUTPUT                                             *
    MODULE pbo OUTPUT.
      SET PF-STATUS 'BASIC'.
      PERFORM create_and_init_alv CHANGING gt_outtab[]
                                           gt_fieldcat.
    ENDMODULE.                    "pbo OUTPUT
    *       MODULE PAI INPUT                                              *
    MODULE pai INPUT.
      SET SCREEN 0. LEAVE SCREEN.
    ENDMODULE.                    "pai INPUT
    FORM create_and_init_alv CHANGING pt_outtab LIKE gt_outtab[]
                                      pt_fieldcat TYPE lvc_t_fcat.
      CHECK go_container IS NOT BOUND.
      CREATE OBJECT go_container
        EXPORTING
          container_name = 'CUSTOM'.
      CREATE OBJECT go_grid
        EXPORTING
          i_parent = go_container.
      PERFORM build_display_table.
      PERFORM build_fieldcat CHANGING pt_fieldcat.
      IF dropdown EQ abap_true.
        PERFORM set_drdn_table.
      ENDIF.
      go_grid->set_table_for_first_display( CHANGING  it_fieldcatalog      = pt_fieldcat
                                                      it_outtab            = pt_outtab ).
      go_grid->set_ready_for_input( 1 ).
    " raises the 'data_changed' event when we select another cell/any action after changing the data
      go_grid->register_edit_event( EXPORTING i_event_id = cl_gui_alv_grid=>mc_evt_modified ).
      CREATE OBJECT go_handler.
      SET HANDLER go_handler->refresh_changed_data FOR go_grid.
    ENDFORM.                               "CREATE_AND_INIT_ALV
    FORM build_display_table.
      FREE gt_outtab.
      SELECT * FROM makt UP TO 20 ROWS INTO TABLE gt_outtab WHERE spras EQ gv_language.
    ENDFORM.                               "build_display_table
    FORM build_fieldcat CHANGING pt_fieldcat TYPE lvc_t_fcat.
      DATA ls_fcat TYPE lvc_s_fcat.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name = 'MAKT'
        CHANGING
          ct_fieldcat      = pt_fieldcat.
      LOOP AT pt_fieldcat INTO ls_fcat.
        IF    ls_fcat-fieldname EQ 'SPRAS'.
          ls_fcat-edit       = abap_true..
          ls_fcat-outputlen  = 8.
          IF dropdown EQ abap_true.
            ls_fcat-drdn_hndl  = '1'.
            ls_fcat-checktable = '!'.        "do not check foreign keys
          ENDIF.
          MODIFY pt_fieldcat FROM ls_fcat.
        ENDIF.
      ENDLOOP.
    ENDFORM.                               "build_fieldcat
    FORM set_drdn_table.
      CHECK go_grid->offline( ) IS INITIAL.
      DATA: lt_dropdown TYPE lvc_t_drop,
            ls_dropdown TYPE lvc_s_drop.
      ls_dropdown-handle = '1'.
      ls_dropdown-value  = 'EN'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '1'.
      ls_dropdown-value  = 'DE'.
      APPEND ls_dropdown TO lt_dropdown.
      CALL METHOD go_grid->set_drop_down_table
        EXPORTING
          it_drop_down = lt_dropdown.
    ENDFORM.                                " set_drdn_table
    FORM change_display_table USING pv_language pv_rowno TYPE i.
      READ TABLE gt_outtab INDEX pv_rowno.
      SELECT SINGLE * FROM makt INTO gt_outtab WHERE matnr = gt_outtab-matnr AND spras = pv_language.
      IF sy-subrc EQ 0.
        DELETE gt_outtab INDEX pv_rowno.
        INSERT gt_outtab INDEX pv_rowno.
      ELSE.
        CLEAR : gt_outtab-maktx,
                gt_outtab-maktg.
        DELETE gt_outtab INDEX pv_rowno.
        INSERT gt_outtab INDEX pv_rowno.
      ENDIF.
    ENDFORM.                    "change_display_table
    *       CLASS event_responder IMPLEMENTATION                          *
    CLASS lcl_event_responder IMPLEMENTATION.
      METHOD refresh_changed_data.
        READ TABLE er_data_changed->mt_mod_cells INTO ls_changed_cell INDEX 1.
        CALL FUNCTION 'CONVERSION_EXIT_ISOLA_INPUT'
          EXPORTING
            input  = ls_changed_cell-value
          IMPORTING
            output = lv_language.
        PERFORM change_display_table USING lv_language ls_changed_cell-row_id.
        go_grid->refresh_table_display( ).
      ENDMETHOD.                    "click
    ENDCLASS.                    "event_responder IMPLEMENTATION
    Cheers,
    Jose.

  • How to create F1 help for fields of a table in SM30

    I have a z-table which is being maintained using SM30. while creating new entries for the z-table using this SM30 i want to create F1 help which will be useful for the user to create new entries. can anyone pls help we this requirement?

    Hi Lalitha,
    To have F1 help documentation, you need to create Documentation by pressing Documentation button in the Change Data Element screen (SE11)
    If you need certain values for the field through F4 help then you need to specify the values in the Domain of this Data element (SE11)
    Jogeswara Rao K

  • How to create Check table for Field Maktx

    Hi Experts,
    I am create one ztable with fields Mandt, Matnr, Maktx, Type1 and Type2 etc.
    I need a create a check table for field MAKTX.
    If i give material number the its the material description also.
    Thanks in Advance,
    Purnaneelu.

    Hi,
    Actually i am create one ZTable with fields Mandt ,matnr, maktx, type1,type2 and type3
    Now i am entry the data for matnr,type1,type2 and type3 .
    Now i am going to TCode SE16n material is not appears, but the requirement is shows the description also
    STOP USING I AM in each and every sentence...and try to correct your english...so that people can understand your problem easily.
    Hope this suggestion will help you going forward at the time of posting your question at SDN.
    Wram regards,
    Abhishek

  • How to create  search help for field in interactive adobe form

    HI
    I want to create search help for PERNR field in adobe form.
    how i can do it.
    Can any one giud me.
    Regards,
    Laxman Sankhla

    Hi Laxman,
    Please search SDN, there are lots of queries posted and solved earlier on this.
    especially there are step by step blogs.
    Cheers,
    Sai

  • How do i create a mask for an application?

    Hello.
    I pulled out an flex app out of Flash catalyst, and it has several "fx:designLayer"s containing images that slide off the stage.
    I'd like to hide the images going outside the stage borders with a mask.
    I tried:   
    <s:mask>
        <s:Group id="mask">
            <s:Rect width = "100" height="100">
                <s:fill>
                    <s:SolidColor color="#FF0000"/>
                </s:fill>
            </s:Rect>
        </s:Group>
    </s:mask>
    but all I see is blank.
    I tried to set mask = "{mask}" inside the <s:Application > tag and removing the <mask> tags, which works, but it gives me a warning that bindings to mask cannot be detected.
    How do I get the mask for the app with no warnings?
    And just for the sake of understanding Flex, how could I fix either one of those approaches?

    Defining a Group as the mask doesn't seem to work because the Group is never
    put on the display list so it doesn't draw its content.  Other examples I
    saw were using FXG will compiles down into Sprites that draw automatically.
    I don't normally do masking like this, I just draw a filled Sprite and
    assign it as the mask.
    One way I found that worked was this:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="800"
    minHeight="600"
                   backgroundColor="#66DDFF"
                    >
        <fx:Declarations>
        </fx:Declarations>
        <s:Group id="mask" includeInLayout="false" visible="false" >
            <s:Rect x="300" y="10" width="600" height="200">
                <s:fill>
                    <s:SolidColor color="#FF0000"/>
                </s:fill>
            </s:Rect>
        </s:Group>
        <s:Rect height="341" id="myRandomThing" width="800" x="79.5" y="86.5" >
            <s:fill>
                <s:LinearGradient rotation="270" scaleX="341" x="115.5" y="341">
                    <s:GradientEntry color="#222222" ratio="0"/>
                    <s:GradientEntry color="#FFFFFF" ratio="1"/>
                </s:LinearGradient>
            </s:fill>
            <s:stroke>
                <s:SolidColorStroke  color="#333333"  weight="10"/>
            </s:stroke>
        </s:Rect>
    </s:Application

  • Steps to create substitution rule for field BSEG-RECID

    MIRO generates FI document. FI document has BSEG-RECID field. I need to apply substitution for BSEG-RECID depending on the value of the RSEG-GEBER field in MIRO. The substitution must be activated only if account to be booked is PL account in FI and derived MM document based on ZNPP PO type.
    Field values are as follows:
    RSEG-GEBER     BSEG-RECID
    No value                          No value
    N                              N
    D                              D
    A                              A
    Could anyone please let me know the steps to create the above substitution rule for the FI document
    Thank You

    Hi,
    You can do it as below:
    Prerequisite : Select the document type for which you want check, here you have to select the BKPF-BLART = " " (Give the document type for the MIRO)
    Substitution: Use the User exit with the logic as you said.
    If you want you can use the user exit in both PREREQ & SUBSTITUTION. It will be applicable in your case
    VVR

  • Please help! error -61399, how to create custom vi for every input in project explorer

    Please help! I have been trying whole night but couldn't get through it.
    I am creating custom vi to simulate cRIO inputs on development computer. ( FPGA target>>execute vi on>> development computer>>custom vi) I then follow tutorial creating test benches:
    Tutorial: Creating Test Benches (FPGA Module)
    but when I run fpga vi I get error -61399, input item/node is not supported (input item/node is my input which I've added from project explorer).
    The closest I got in my research on why this error is occuring- I have not connected all inputs/outputs in project explorer to custom vi. I followed tutorial exactly step by step but still I couldn't get through it.
    Please help! Please help!
    In order to do further investigation, I converted custom vi to a state machine , please find attachment. Having highlight execution on, it clearly demonstrates that input in cRIO are not being selected as a result default cases execute.
    Please find attached modified custom vi with state machine, fpga vi, and original custom vi.
    Best regards 
    Ta
    Attachments:
    custom vi.vi ‏32 KB
    inverter.vi ‏16 KB
    original custom vi.vi ‏22 KB

    Solution:
    You will see this error if no Custom VI has been selected or the Custom VI has not been configured for every I/O item that you are using in your FPGA code???
    I think that's exactly where I'm stuck!
    How do I configure it for inputs??? My attachement show that I have done everything being asked in tutorial!
    Thanks!

  • Creating dynamic id for an input textbox?

    I have a datatable in my jsf page in which I need to create an input textbox that must have dynamic values for id attribute and not the hard coded one. What is the possible way to generate that??

    Not directly. But why would you? Don't you see a pattern in the generated ID's? Did you check the generated HTML output? If this problem is Javascript related, are you familiar with the 'this' reference?

  • Create a variable for user input entry to act as i/p to anothr variable

    Hi,
    I have a requirement in my report where i have two variables one is user entry called "A" the a other user exit "B" and the query is based on an ods.
    <b>
    Scenario:</b> If the user were to enter a string  XXX in A, i need to do a search on certain columns in ODS and store the corresponding keys (single column) in an internal table and the internal table column will act as multiple single values for variable B .
    <b>Questions:</b>
    1. How to get  the value entered in A.(so i can do select statement on ODS table).
    2. In the select statement we need to specify FROM table, so what would the ods table name be.
    3. How to store the values from the select statement into the internal table.
    4.How to populate the values in internal table into variable B.
    5.Once all this is done i need to reset the variable A to empty.
    p.s: ABAP code for any of the following would be highly appreciated.

    hi Karthik,
    1.  you can try
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                  WHERE VNAM = 'varA'.
                  l_var = LOC_VAR_RANGE-LOW.
    2. ods table name = /bic/a[odsname]00 or /bi0/a[odsname]00
    3. use select .... from... into table ...
    4. loop at that internal table and populate as sample code
    5. try to create a RKF with restriction to variable A, and hide this keyfigure,
        not use in reporting.
    hope this helps.
    Populating material numbers from a table to customer exit bex variable
    tables : /bic/azods00.
    DATA: it_ods like /bic/azods00 occurs 0 with header line.
    CLEAR L_S_RANGE.
    WHEN 'varB'.
        IF I_STEP = 2.
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                  WHERE VNAM = 'varA'.
                  l_odsfield = LOC_VAR_RANGE-LOW.
    SELECT * FROM /bi INTO TABLE it_ods
    WHERE odsfield = l_odsfield.
    loop at it_ods.
    L_S_RANGE-LOW = it_ods-fieldselected.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    endloop.
          ENDLOOP.

  • Create Error Message for wrong input of time (VC 7.1)

    Hello,
    I use VC 7.1.
    I have an Input Field where the users have to enter the time of an event.
    The time has to have this format: hh:mm:ss.
    How can I check this? And if the users entered a wrong time format how can I post an error message?
    Or does anybody has any other solution to handle this? But I must say to it that I don't want to use an ABAP RFC to solve this problem.
    Regards,
    Armin

    Hello,
    I use VC 7.1.
    I have an Input Field where the users have to enter the time of an event.
    The time has to have this format: hh:mm:ss.
    How can I check this? And if the users entered a wrong time format how can I post an error message?
    Or does anybody has any other solution to handle this? But I must say to it that I don't want to use an ABAP RFC to solve this problem.
    Regards,
    Armin

  • Creating search help for a field in AdHoc Query

    Hi
    We have created an infoset based on LDB PCH.
    (The infoset contains object type O only).
    For the object-id field the users want search help when choosing this field for selection.
    Using "start via selection screen" does not give a good solution.
    Can anyone explain how I can create search help for fields in an infoset?
    Regards
    Kirsten

    Hi
    We have created an infoset based on LDB PCH.
    (The infoset contains object type O only).
    For the object-id field the users want search help when choosing this field for selection.
    Using "start via selection screen" does not give a good solution.
    Can anyone explain how I can create search help for fields in an infoset?
    Regards
    Kirsten

Maybe you are looking for

  • My iphone 3gs wont connect to the service it just says searching any ideas what to do

    so hears th deal guys my 3gs wont connect to the sevice its not unlocked or jail broken and on top of that i was in the processes of restoring it and it wont let me connect to itunes the phone wont read the sim for some odd reason

  • Can't print a CD jewel case insert!!

    I have been trying for a long time to get a answer about itunes not being able to print a CD jewel case insert. I have spoken to many tech. support people. Some I have their names and call back numbers, which shows how much they been trying to help m

  • Safari SSl Issue with Online Grading Site

    I manage a department that offers grading of exams online. Users supply their answers and have the server grade the submissions. We randomly have an issue where Safari users will have their exams graded incorrectly. Basically failing the student even

  • Unable to update or remove UDF

    Hello, I am unable to update  a value in udf after licking on 'New'. It shows the error message as Temp_ASCL followed by WTR1 and sometimes SEWSYS.This udf is created i service-- title. There are no add ons running and there are no SP in the database

  • Unable to uninstall Internet Explorer 9

    while uninstalling its giving error An error has occurred.Not all of the updates were successfully uninstalled.