How to check two fields are matching in a validator?

I have a "Password" field and a "Conform password" field. I like to check whether these two fields are matching in the password_validate(FacesContext context, UIComponent component, Object value) method. How to do that?
Thanks.

The actual problem is you can't get the value of one
component into the next component's validator
method.I do not find this to be true. For example, in the blog that I gave the URL to, you can see this code
public void endCalendar_validate(FacesContext context, UIComponent component, Object value) {
Date endDate = (Date)value;
Date startDate = startCalendar.getSelectedDate();
Here the validator for the endCalendar component is getting the value from a different component, the startCalendar component.

Similar Messages

  • How to check what fields are output from ABAP to smartform

    Hi All,
    I am working on a Zcopy of RLB_INVOICE smart form and need to check what fields are being output to the vendor_address window in the smartform.
    I have examined the NACE setup and found "Medium -> printoutput", "Program -> ZRLB_INVOICE", "Form Routine -> "ENTRY_INS", "Form -> ZRLB_INVOICE", "PDF/SmartForm -> ZRLB_INVOICE".
    Where would I find the code that shows the direct correlation between the driver program and a specific element of the smart form.
    All I need to check is that all elements of the venfore address are being sent to the form as I am hearing reports that we are missing house number on the printed output.
    Many thanks

    Hi Meenakshi,
    First you find out your driver program. Here in your case it is ZRLB_INVOICE. Then within that check where address of the vendor is found and is assigned to which import parameter of the smartform.
    Check your smartform also. Find which all fields are being printed in that. If vendor_address window is an address window, then there will be uniques identifier passed to that window from the driver program.
    Regards,
    Abijith

  • How to check two internal table fields

    Hi all,
    I need to check two internal table fields are equal or not means which statement i can use.
    Not internal table ,table contents i need to check i.e
    it1-pernr = it2-pernr.
    like this
    if i put loop it'll check one table field for one loop.
    if i put two loop means some fields reflecting 2 in it1 then it'll pring 4 times like that.i want to print whatever in internal table only .
    pernr(0001) two times there in it1 means
    it1-pernr = it2-pernr then
    it's printing
    0001
    0001
    0001
    0001
    like this but actually in it1 only two records.
    Anybody know solution.tell me.
    Thanks
    Regards,
    Nandha

    Hi,
    code for your view
    data : begin of it1 occurs 0,
           z_pernr like pa9012-pernr,
           z_fac_c like pa9012-zz_fac_c,
           end of it1.
    data : it2 like Zsc1 occurs 0 with header line,
    It1 data
    pernr   FAC C
    0001   5555
    0001   5555
    0002   4444
    0003   3333
    0006   8888
    It2 data
    pernr   FAC C
    0001   5555
    0001   5555
    0005   6666
    0003   3333
    output(My code)
    loop at it2 .
    loop at it1 where pernr = it2-pernr.
      write:/01 it1-1pernr,
            10 it1-z_fac_c.
    endloop.
    endloop.
    out put i need.
    0001   5555
    0001   5555
    0002   4444
    0003   3333
    Thanks,
    Nandha

  • How to check which fields of a table are changed

    Hi
    I have a FM in which i pass VBAK and VBAP. I store records of table in internal tables and update the values during execution and at the end of this i have to cpmare VBAK and VBAP with internal tables to chcek which field value is changed in both VBAK and VBAP. Its not possible to check all fields bcause there are so many fields in VBAK and VBAP. Can any body help me.
    Thanks and Regards
    Aditya

    Hi,
    Try using where used list.
    click on the field. pree F1. select Technical Info from the pop-up. then from the field data, double click one the field name. it will navigate to the table/structure where the field is used. double click on the field there or
    press CntrlShiftF3.
    It will give you the where used list.
    Pls reward poins if useful.
    Regards,
    Chandru

  • How to compre two fields: one whith Decimal and other without decimal?

    Hi all,
    I am doing a file to IDOC scenario.
    In file strcture I have to compare two fields.
    ActiveHSCode and Decree166HSCode where
    ActiveHSCode comes with decimal values like for eg 1234.56.789.0 and Decree166HSCode comes with values like for eg 1234567890 or 4567891230 etc.
    I have to ignore decimal point from ActiveHSCode and compare with Decree166HSCode,
    If both of them are equal I have set ActiveIndicator as'Y' else 'N' and map this field to IDOC's field.
    How to achieve this?
    Please suggest.
    Regards,
    Sachi

    Hi,
    Since all the fields in mapping comes by default as a  string ....
    you first extract the value from ActiveHSCode using the string functions.
    Then compare the
    ActiveHSCode and  Decree166HSCode.
    Since u want to check only for the equality dont convert them to numbers.
    Directly check as a string.
    The code for extracting the value without decimal value is..
        String s = "12345.6789";   
        s=s.substring(0,s.indexOf(".")) s.substring(s.indexOf(".")1);    
        System.out.println(s);
    result:123456789
    Babu.

  • How to separate two fields in Text element of Smartform??

    Hi,
    I am trying to separate two fields by a space, for example &WA_ACC-G_L_ACCT& &GV_ACCT_TXT&, but evry time I save the smartform the space disappears and output is continous like 56000Product Materials.
    The desired Output I am looking for is something like 
    56000  Product Materials.
    How do I do this ??
    Thanks

    Hi ,
      U can try what Narendra has said ,if u are not able achieve then do this :
    Create constant c_space type char1 value space
    and try printing it between ur variables, ur problem is solved this way
    Reward if u find it useful
    Regards
    Sapsurfer

  • How to get two fields with same tech name in LIS Extractors?

    Hi Experts,
    I need "ERDAT" field from two structures (QMSM & QMFE) in 2LIS_18_IOTASK extractor.
    In LBWE first I moved ERDAT from QMSM. When I moved ERDAT from QMFE it gives an error:
    "Field with same technical name is already available in the Extract Structure".
    I don't want to create Append Structure as we need to write User exit.
    Can any one tell me how to get this field added in the extractor from QMSM and QMFE?
    Thanks for your help.
    Regards,
    Sree

    this is not possible as the all those fields are put in one structure. per definition you can't put the same field name twice in a structure, table in the data dictionary...
    hence, you really need to use an append and fill via user exit
    M.

  • How to map two fields to one field

    Hi, All,
    I have three datastore objects (three data fields): Year, term, and period key. Their relationship is like this:
    If year = 2010, term = '010', period key will be "1010".  In selection screen, I want users to input year (2010) and term (010), but get the report with period key = '1010'. Does anybody can tell me how to do that?
    Thanks.
    Marea

    Hi,
    Here two options as our experts said  through customer exit
    By creating the project with ompnets EXIT_SAPLRSAP_001
    Then write code when first two varibleas are entered means ( user entry varibles year and term) then execute the third varible  period key
    for that a smaall code is required  u can write it .
    when the customer exit varibles executes it fetches data form bith user entry varibles and update last 2char from year and last 2 char from period that is concept u can ask ur abaper fro small help.
    If not
    if you are willing to do at tranformations level just add one more field as period key  and activate it ,in transformations level u can assign both year and term to period key and write a small routien as below
    result  = source_fields-year 2(4) + source_fields-term1(3).
      choice is urs as per ur flexibility u can aceive the above requirement.
    Thanks & Regards,
    sathish

  • How to check Le field is missed?

    Hi,
    When the protocol is T=1, I have problem with Le field.
    When the card recieve Case 2 format command without Le(like '00B2010C' - Read Record) , how to check the Le field is missed?
    I tried below but not working.
    if(APDU.getProtocol() == APDU.PROTOCOL_T1 && apduBuffer[ISO7816.OFFSET_LC] != 0 && apdu.setIncomingAndReceive() != 0){
              ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
    I look forward your feedback.
    Many thanks in advance!
    글 수정: user11280436
    글 수정: user11280436

    Hi,
    You should check the response from apdu.setOutgoing() to see what value was passed in as Le. This will return the number of bytes expected by the terminal.
    You only need to call apdu.setIncomingAndReceive() if the INS expects data. You can also use it to ensure that there was no data passed in (returns 0).
    Cheers,
    Shane

  • How to subtract two fields

    Hi,
    All,
    I want to calculate balence quota. by usingdifference of  two fields.   ITAB-ANZHL and ITAB-ABWTG .
    . i have taken a variable A FOR balence Quota. in itab i have defined A TYPE C,  in field catalog i have written
    'A'    'ITAB'   'BALENCE QUOTA'. so how need to perform coding for calcualte balence quota.
    A is for balence quota.
    Thanks,
    Regards,
    Saurabh

    DATA : BEGIN OF ITAB OCCURS 0 ,
           PERNR LIKE PA2006-PERNR,
           KTART LIKE PA2006-KTART,
           KTEXT LIKE T556B-KTEXT,
           ANZHL LIKE PA2006-ANZHL, " Quota number
           BEGDA LIKE PA2006-BEGDA,
           ENDDA LIKE PA2006-ENDDA,
           KVERB LIKE PA2006-KVERB,
           AWART LIKE PA2001-AWART,
           ATEXT LIKE T554T-ATEXT,
           STDAZ LIKE PA2001-STDAZ,
           ABWTG LIKE PA2001-ABWTG,
           KALTG LIKE PA2001-KALTG,
           A TYPE I,
          END OF ITAB.
          DATA : B TYPE I.
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS : PERNR FOR  PA2006-PERNR NO-EXTENSION NO INTERVALS .
    SELECT-OPTIONS : BEGDA FOR  PA2006-BEGDA NO-EXTENSION NO INTERVALS.
    SELECT-OPTIONS : ENDDA FOR  PA2006-ENDDA NO-EXTENSION NO INTERVALS.
    SELECTION-SCREEN : END OF BLOCK B1.
    'PERNR'  'ITAB'  'Personnel no',
    *'GJAHR'  'ITAB'  'Year',
    'KTART'  'ITAB'  'Absence Quota type',
    'KTEXT'  'ITAB'  'Text',
    'ANZHL'  'ITAB'  'Quota Number',
    'KVERB'  'ITAB'  'Quota Deduction',
    'BEGDA'  'ITAB'  'Start',
    'ENDDA'  'ITAB'  'T0',
    'AWART'  'ITAB'  'Absence Quota Type',
    'ATEXT'  'ITAB'  'Text',
    'STDAZ'  'ITAB'  'Absence hours',
    'ABWTG'  'ITAB'  'Absence Days',
    'KALTG'  'ITAB'  'Calender Days',
    'ABWTG' 'ITAB'   'Quota Used',
    'A'      'ITAB'  'Balence Quota'.
    SELECT   M1~PERNR
             M1~KTART
             M1~ANZHL
             M1~BEGDA
             M1~ENDDA
             M1~KVERB
             M2~AWART
             M2~STDAZ
             M2~ABWTG
             M2~KALTG  INTO CORRESPONDING FIELDS OF TABLE ITAB
                       FROM PA2006 AS M1
                       INNER JOIN PA2001 AS M2
                       ON M1PERNR = M2PERNR
                         AND M1BEGDA = M2BEGDA
                         AND M1ENDDA = M2ENDDA
                       WHERE M1~PERNR IN PERNR AND
                             M1~BEGDA IN BEGDA AND
                             M1~ENDDA IN ENDDA .
         IF SY-SUBRC <> 0 .
         MESSAGE 'DATA NOT FOUND' TYPE 'W' .
         ENDIF .
    LOOP AT ITAB .
    SELECT SINGLE KTEXT FROM T556B INTO (ITAB-KTEXT)  WHERE KTART = ITAB-KTART.
    SELECT SINGLE ATEXT FROM T554T INTO (ITAB-ATEXT) WHERE AWART = ITAB-AWART.
    MODIFY ITAB INDEX SY-TABIX TRANSPORTING KTEXT ATEXT.
    ENDLOOP.

  • How to switch two fields with one of them OBLIGATORY

    Hi everyone,
    i have two radio button on the screen: RD_A  and RD_B, while there are two fields corresponding to them: P_A and P_B, P_A is OBLIGATORY.
    i want to implment: when i click RD_A, field P_A is enable and field p_B is disable. when i click RD_B, field P_B is enable and field P_A is disable.
    i tried using LOOP AT SCREEN ...screen-input = '0' and screen-required = '0' ....MODIFY SCREEN...statements, but it cannot work fine. when i switch from A to B, it always popup error message 'Fill in all required entry fields'.
    can anyone help me? thanks in advance!

    you can try this approach, instead of using Obligatory Addition.
    REPORT  ztest_radio.
    TABLES: sflight.
    SELECT-OPTIONS: carrid FOR sflight-carrid,
                    connid FOR sflight-connid.
    PARAMETERS: r1 RADIOBUTTON GROUP g1 USER-COMMAND abc DEFAULT 'X',
                r2 RADIOBUTTON GROUP g1.
    AT SELECTION-SCREEN OUTPUT.
      IF r1 = 'X'.
        LOOP AT SCREEN.
          IF screen-name CS 'CONNID'.
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-name CS 'CARRID'.
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    AT SELECTION-SCREEN.
      IF sy-ucomm = 'ONLI'.   "This triggers only when you press execute button
        IF r1 = 'X'.
          IF carrid IS INITIAL.
            MESSAGE 'Enter Carrid' TYPE 'E'.
          ENDIF.
        ELSE.
          IF connid IS INITIAL.
            MESSAGE 'Enter Connid' TYPE 'E'.
          ENDIF.
        ENDIF.
      ENDIF.

  • How to check IN paramers are oracle keywords or not

    Hello
    i am new in oracle word and i want to know, how i will check IN parameters are oracle keywords or not. if client using orale key wors as parameters then i will geneate error and exit from procedure..............
    Regards.
    Edited by: user13478428 on Dec 14, 2010 10:07 AM

    dear sir
    i am new already told. and i had write this dynamic procedure for a very good application.
    i am using on front end dotnet and backend oracle 10g. so i write a dynamic procedure which is using to delete record. but now i want check from frontend, user sen me exact parameters or used oracle keyword like /*, */, //, drop and many more. if user send me such (oracle reserved word) parameters then it will destory my datbase and slowdown my application working.
    so to stop such (oracle reserved word) as parameters , i check these parameters and stop my procedure execution.
    please any help,
    thanks,
    Edited by: user13478428 on Dec 14, 2010 10:07 AM

  • How to check all items are not null in CAML Query?

    HI All,
    In a CAML Query, i got three items. In all three items, a particular column(Closure Date) should not be null. How to check in all three items, where 'Closure date' is not null?
    Thanks in advance!

    Hi,
    Try this:
    "<Where><IsNull><FieldRef Name='Closure Date' /></IsNull></Where>"
    Hope it hepls!
    Thanks,
    Avni Bhatt
    If this helped you resolve your issue, please mark it Answered

  • How to use two "field separator" in the same Comunication Channel

    Hi experts,
    I  upload flat files with XI, and my Comunication Channel is configured to use the field separator "~".
    FILA.fieldSeparator     ~
    Is posible to configure that Comunication Channel to accept two field separator. I want that upload flat files that has as separator "~" and flat files that has "|" .
    thanks
    regards

    IT IS not possible to have 2 fieldseparator to identify the fields of a record.

  • VL01NO : how to add two fields

    Hi,
    Is there any possibility to add two fields (Format text) for Tcode : VL01NO because i want to enter two other informations ?
    Please help
    Regards.

    Hi jehade el aoumari  ,
    We can add the fields with the help of screen exits (BAdis) provided that , SAP has giving the feature to add to this particular transaction. This is work of ABAPer and they will add the fields , and they will popullate the appropriate database table as well.
    But pls tell me what exactly is your requirement so that we will let you know whether the option is available or not.
    Regards,
    Vvieks

Maybe you are looking for

  • Bug: Repeating Google Calendar Events Show Up On The Wrong Days

    I've created a Google Calendar event that repeats "Daily," every two days, from 6:00pm to 6:30pm. It shows up fine in my Google Calendar, but the Pre's Calendar puts them on the wrong days. For example, the repeating event that should be scheduled fo

  • Is it possible to format an external USB drive with XFS or EXT3 ?

    Greetings all. I am running a 2,8Ghz 8x core with 6Gb ram. I have a NAS, (Buffalo Pro Duo Linkstation) which has a built in linux which saves data using XFS (I think). It has a built in backup routine, but the drive it backs up to MUST be in XFS or E

  • Stock entry and cost center

    I make a P.R using acct. assignment category K.due to this a gl account xxxxxxx gets filled automatically in PR. Then when goods receipt is made using migo then inspite of goods going to stock a/c yyyyyyy it goes to xxxxxxx. and when PR is made witho

  • Extension wise document search in KM

    Document extension wise, Can we calculate the number of Documents in KM repository (Ex :- .excel,.doc,.ppt) ? Regards, Devesh

  • Want to change frame rate, help, please !!

    hi all, i want to know whether, jmf does provide any support for changing the frame rate ? is there any ways by which one can change the framerate, of a live captured video ? i came across one class "FrameRateControl" in jmf, tried it, but wasn't suc