Checking Equality condition..

Hello Everyone,
I have a textfield as 'tacno' related to a field "Account no."(first field) in database....Now i need to give a text to 'tacno' and check whether it is equal or not to any of the records in "Account no."..
I have used the following...But getting an Exception...
while(rs.next())
if(tacno.getText().equals(rs.getString(1)))
tamnt.setText(rs.getString(3));
}Can anyonec clear this...

jverd wrote:
pradeepprp wrote:
Getting Exception as "empty String";Why are you trying so hard to avoid telling us what's going wrong?We need an anatomically correct doll that we can give to people and say "now show us on this doll where the Exception's stack trace popped up". Then they can use puppets to demonstrate an SSCCE, and fingerpaint to circle the appropriate line numbers.

Similar Messages

  • Checking Multiple condition in Mapping

    Hi ,
    I need to check multiple OR condition in Message mapping should i need to write an U.D.F.
    For example:I has a field
    MATNR where the possible values are WE,WB,AR
    I need to check the condition Using OR condition
    MATNR  
                         EQUALS   
    WE
    MATNR              EQUALS
    WB
    MATNR             EQUALS
    BB

    use boolean function OR  & equal...
    MATNR     
                      ------- equals -------
    CONST(WE)                         |
                                                OR-----------------------
    MATNR                                  |                         |
                     ------- equals ----------                          OR -----------Output?
    CONST(WB)                       MATNR                   |
                                                       ----- equals -----------
                                            CONST(BB)
    Edited by: Anand on Nov 29, 2008 3:04 PM
    Edited by: Anand on Nov 29, 2008 3:06 PM

  • EQUAL condition on WHERE clause not working

    Hi,
    Can someone please tell me why the following WHERE clause  (marked with ***** below) is not finding any EQUAL conditions?
    I know that table i_cust_mast is populated with several thousand rows and that there ARE matching rows in KNVP.
    Here is the code as I have it:
    TYPES:
          BEGIN OF t_cust_mast,
            kunnr TYPE kunnr,
            name1 TYPE name1_gp,
            name2 TYPE name2_gp,
            stras TYPE stras_gp,
            adrnr TYPE adrnr,
            ort01 TYPE ort01_gp,
            regio TYPE regio,
            pstlz TYPE pstlz,
            vkbur TYPE vkbur,
            konda TYPE konda,
            sortl TYPE sortl,
            katr1 TYPE katr1,
            katr2 TYPE katr2,
            katr3 TYPE katr3,
            katr4 TYPE katr4,
            katr5 TYPE katr5,
            katr6 TYPE katr6,
            katr7 TYPE katr7,
            katr8 TYPE katr8,
            katr9 TYPE katr9,
            katr10 TYPE katr10,
            bzirk TYPE bzirk,
            vkgrp TYPE vkgrp,
            kdgrp TYPE kdgrp,
            klabc TYPE klabc,
            kondaa TYPE konda,
            kalks TYPE kalks,
            pltyp TYPE pltyp,
            hityp TYPE hityp_kh,
            hkunnr TYPE hkunnr_kh,
            datab TYPE datab,
            datbi TYPE datbi,
            lzone TYPE lzone,
          parvw TYPE parvw,
            kunn2 TYPE kunn2,
            kunn2a TYPE kunn2,
            kunn2b TYPE kunn2,
            kunn2c TYPE kunn2,
            kunn2d TYPE kunn2,
            kunn2e TYPE kunn2,
            kunn2f TYPE kunn2,
            kunn2g TYPE kunn2,
            parza TYPE parza,
            ktokd TYPE ktokd,
            loevm TYPE loevm_x,
          END OF t_cust_mast .
        TYPES:
          BEGIN OF t_part_func,
            kunnr TYPE kunnr,
            parvw type parvw,
            kunn2 TYPE kunn2,
            parza type parza,
          END OF t_part_func .
        TYPES:
          t_t_cust_mast TYPE STANDARD TABLE OF t_cust_mast,
          t_t_part_func TYPE STANDARD TABLE OF t_part_func.
        DATA: i_cust_mast TYPE t_t_cust_mast,
              i_part_func TYPE t_t_part_func.
      CONSTANTS: c_type_a TYPE msgty VALUE 'A'.
      FIELD-SYMBOLS: <x_cm> LIKE LINE OF i_cust_mast.
    Get Customer Master Data
      SELECT
       hkunnr hname1 hname2 hstras hadrnr hort01 h~regio
       hpstlz ivkbur ikonda hsortl hkatr1 hkatr2 h~katr3
       hkatr4 hkatr5 hkatr6 hkatr7 hkatr8 hkatr9 h~katr10
       ibzirk ivkgrp ikdgrp iklabc ikonda ikalks i~pltyp
       khityp khkunnr kdatab kdatbi h~lzone
       hktokd hloevm
      INTO TABLE i_cust_mast " up to 50 rows
      FROM kna1 AS h
      JOIN knvv AS i ON ikunnr = hkunnr
      JOIN knvh AS k ON hityp = c_type_a   " 'A'
                    AND kkunnr = ikunnr
                    AND kvkorg = ivkorg
                    AND kvtweg = ivtweg
                    AND kspart = ispart
                    AND k~datab <= sy-datum
                    AND k~datbi >= sy-datum.
      IF sy-subrc = 0.
        SORT i_cust_mast[] BY kunnr.
      ENDIF.
    Get Partner Function Data for each Customer Master Record
      LOOP AT i_cust_mast ASSIGNING <x_cm>.
        SELECT hkunnr hparvw hkunn2 hparza
          INTO TABLE i_part_func
        FROM knvp AS h
          WHERE h~kunnr = <x_cm>-kunnr.        ***** WHERE clause not finding any matches *****
      ENDLOOP.
    Thanks!!!
    Andy

    TYPES:
          BEGIN OF t_cust_mast,
            kunnr TYPE kunnr,
            name1 TYPE name1_gp,
            name2 TYPE name2_gp,
            stras TYPE stras_gp,
            adrnr TYPE adrnr,
            ort01 TYPE ort01_gp,
            regio TYPE regio,
            pstlz TYPE pstlz,
            vkbur TYPE vkbur,
            konda TYPE konda,
            sortl TYPE sortl,
            katr1 TYPE katr1,
            katr2 TYPE katr2,
            katr3 TYPE katr3,
            katr4 TYPE katr4,
            katr5 TYPE katr5,
            katr6 TYPE katr6,
            katr7 TYPE katr7,
            katr8 TYPE katr8,
            katr9 TYPE katr9,
            katr10 TYPE katr10,
            bzirk TYPE bzirk,
            vkgrp TYPE vkgrp,
            kdgrp TYPE kdgrp,
            klabc TYPE klabc,
            kondaa TYPE konda,
            kalks TYPE kalks,
            pltyp TYPE pltyp,
            hityp TYPE hityp_kh,
            hkunnr TYPE hkunnr_kh,
            datab TYPE datab,
            datbi TYPE datbi,
            lzone TYPE lzone,
          parvw TYPE parvw,
            kunn2 TYPE kunn2,
            kunn2a TYPE kunn2,
            kunn2b TYPE kunn2,
            kunn2c TYPE kunn2,
            kunn2d TYPE kunn2,
            kunn2e TYPE kunn2,
            kunn2f TYPE kunn2,
            kunn2g TYPE kunn2,
            parza TYPE parza,
            ktokd TYPE ktokd,
            loevm TYPE loevm_x,
          END OF t_cust_mast .
        TYPES:
          BEGIN OF t_part_func,
            kunnr TYPE kunnr,
            parvw type parvw,
            kunn2 TYPE kunn2,
            parza type parza,
          END OF t_part_func .
        TYPES:
          t_t_cust_mast TYPE STANDARD TABLE OF t_cust_mast,
          t_t_part_func TYPE STANDARD TABLE OF t_part_func.
        DATA: i_cust_mast TYPE t_t_cust_mast,
              i_part_func TYPE t_t_part_func. 
    CONSTANTS: c_type_a TYPE msgty VALUE 'A'.
      FIELD-SYMBOLS: <x_cm> LIKE LINE OF i_cust_mast.
    Get Customer Master Data
      SELECT
       hkunnr hname1 hname2 hstras hadrnr hort01 h~regio
       hpstlz ivkbur ikonda hsortl hkatr1 hkatr2 h~katr3
       hkatr4 hkatr5 hkatr6 hkatr7 hkatr8 hkatr9 h~katr10
       ibzirk ivkgrp ikdgrp iklabc ikonda ikalks i~pltyp
       khityp khkunnr kdatab kdatbi h~lzone
       hktokd hloevm
      INTO TABLE i_cust_mast " up to 50 rows
      FROM kna1 AS h
      JOIN knvv AS i ON ikunnr = hkunnr
      JOIN knvh AS k ON hityp = c_type_a   " 'A'
                    AND kkunnr = ikunnr
                    AND kvkorg = ivkorg
                    AND kvtweg = ivtweg
                    AND kspart = ispart
                    AND k~datab <= sy-datum
                    AND k~datbi >= sy-datum.
      IF sy-subrc = 0.
        SORT i_cust_mast[] BY kunnr.
      ENDIF.
    Get Partner Function Data for each Customer Master Record
      LOOP AT i_cust_mast ASSIGNING <x_cm>.
        SELECT hkunnr hparvw hkunn2 hparza
          INTO TABLE i_part_func
        FROM knvp AS h
          WHERE h~kunnr = <x_cm>-kunnr.
      ENDLOOP.

  • For the checking the conditions in script element

    Hi,
          I have one element in medruck script like item.in that i have some conditions.how can i check that conditions in that?
    whether in script or print program?
    Rgs,
    Venkat

    Hi,
    You need to check the condition in the text element of the script.
    Regards,
    Raj.

  • Need help to check multiple conditions and set AD user properties

    hello All,
    I have a data csv sheet where information as follows, using below information I need to update AD account attributes based on below conditions . I have full right and I can set any user properties. So this is not access right issue.   
    samaccountname,Othertelephone,language,employeeId
    abcd                      XXXXXXXXX     EN         SMS
    Now I need to check following conditions:
    Othertelephone =  if this should not be blank ,if so display message " filed is blank " and no changes should allowed in further attributes and  it should abort
    language= this field should only contain  EN or FR value if No display msg " error in language field " and no further changes to  the user attributes and it should abort
    employeeID= this field should only contain OTP or SMS value if Not filled display msg " error in Employee ID field " No further changes to the user attributes and it should abort
    changes to user will permit  when all attributes is filled. I do the testing taking samaccountname , othertelephone and employeeId into consideration but it did not helped. Getting error
    THIS is complete Code Of my Task where you need my focus on conditions
    group=Get-QAdGroup -SearchRoot  "domain/vpn group"
    Import-Csv D:\VPN.csv |
    ForEach-Object{
    if ($_.samaccountname -eq "")
       Write-Host "SAMACCOUNTNAME is blank"   -fore red
    else
     $user=Get-QAduser $_.samaccountname
    if ($user.memberof -contains  $group.DN)
     Write-Host "$($_.Samaccountname) user is allready a member" -fore red
    else
     Add-QADGroupMember $group $_.Samaccountname
    If ($_.othertelephone -eq "")
    Write-Output "$($_.samaccountname) telephone Number is blank"
    else
    if ($_.EmployeeID -notmatch 'OTP' -and 'SMS')
    Write-Output "$($_.samaccountname) EmployeeID field is not correctly field")
    Else
    Set-QADUser $_.SamAccountName -ObjectAttributes @{telephonenumber=$_.othertelephone;EmployeeID=$_.EmployeeID}
    error
    Set-QADUser : Access is denied.
    At C:\Users\g512263\AppData\Local\Temp\5f8facb6-f942-4c3d-b924-8953d9a706da.ps1:37 char:8
    +                    Set-QADUser $_.SamAccountName -ObjectAttributes @{telephonenumber=$_.othe ...
    +    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Set-QADUser], UnauthorizedAccessException
        + FullyQualifiedErrorId : System.UnauthorizedAccessException,Quest.ActiveRoles.ArsPowerShellSnapIn.Powershell.Cmdlets.SetUserCm
       dlet

    <title>Untitled - PowerGUI Script Editor</title>
    Hello JRV,Thank you for your time, There is no comma in my csv file , I double check. below I wrote a simple code.I removed all the conditions and just try to set the EmployeeID and it is working fine with same file.But as soon as I add conditions it gives access denied. as well as if I remove employee Id from your previous code and only try to set telephone No. still it gives access denied.I am just trying to figure out what is causing this.
    $group=Get-QAdGroup -SearchRoot "com/Group"
    Import-Csv D:\VPN.csv |
    ForEach-Object{
    if ($_.samaccountname -eq ""){
    Write-Host "SAMACCOUNTNAME is blank" -fore red
    }else{
    $user=Get-QAduser $_.samaccountname
    if ($user.memberof -contains $group.DN){
    Write-Host "$($_.Samaccountname) user is allready a member" -fore red
    }else
    Add-QADGroupMember $group $_.Samaccountname
    If ($_.othertelephone -ne "")
    Set-QADUser $user.SamAccountName -ObjectAtt Aributes @{telephonenumber=$_.othertelephone}
    } else
    Write-Output "$($_.samaccountname) phonenumber is blank"
    If ($_.EmployeeID -ne "")
    Set-QADUser $_.SamAccountName -ObjectAttributes @{EmployeeID=$_.EmployeeID}
    }else
    Write-Output "$($_.samaccountname) EmployeeID field is blank"
    If ($_.Preferredlanguage -ne "")
    Set-QADUser $_.SamAccountName -ObjectAttributes @{Preferredlanguage=$_.preferredlanguage}
    } else
    Write-Output "$($_.samaccountname) PreferredLanguage field is blank"

  • Select data by checking two conditions

    Dear every one,
    how to fetch data from database by checking two condition...
    the task , it should check whether both are present , if present "it should break out of loop",if not, then check atleast for atleast one available..
    eg:
    if i give a,b etc applies to above
    PreparedStatement pStmt = con.prepareStatement("select eid from lang where language like ?  ");
    for ( i = 0; i < s3.length; i++)
               if(i < s3.length - 1)
               a=a + s3[i] + ",";
               else
                                 a = a + s3[i]  ;
                           pStmt.setString(1, "%" + a + "%");thanks in advance

    Hi Benny,
    You can use the programme RQMELL10 or RQMELL11.
    Why do want a develop a new report. You can use qm10 or qm11. As far my understanding goes you want the cost to be included in the report. Cn you explain in details why you wan this report.
    we are also a using z- report for qm10, where we select a notification to do the modification the task.
    Regards,
    Satyajit

  • How to check 2 condition types (kschl)

    Hi,
    READ TABLE i_komv WITH KEY kposn = ekPo-ebelp kschl EQ 'JEC1' OR
                                                  KSCHL EQ 'JMO1'.
    how to write this above stmt? I have to check 2 condition types with a single read stmt?
    regards,
    Star Shankar

    I guess Kishan wants to refer as:
    READ TABLE i_komv WITH KEY kposn = ekPo-ebelp .
    if <b>i_komv-</b>kschl EQ 'JEC1' OR
    <b>i_komv-</b>KSCHL EQ 'JMO1'.
    ....<code>
    endif.
    As KSCHL is part of internal table I_KOMV.
    or
    READ TABLE i_komv WITH KEY kposn = ekPo-ebelp .
    check i_komv-kschl EQ 'JEC1' OR i_komv-KSCHL EQ 'JMO1'.
    ....<code>
    Kishan,
    Correct me if i am wrong.
    Regards
    Eswar

  • How to check the Conditional transition while submit the jsp as screenflo

    Hi All,
    I want to know that how to check the conditional transition, which result is used to decide the next Activity while submit the JSP as Screen Flows
    Edited by bpmvasu at 03/27/2007 11:14 PM

    Hi,
    Unlike BPM Object Presentations where the 'selectedButton' is automatically assigned to the predefined screenflow 'result' variable, when using JSP Persentations you need to do the mapping yourself (I don't think there is a way around this).
    Assuming you're using a JSP Presentation with a Fuego Object Interactive Call, click the 'Advanced' button at the bottom of the Main Task dialog.
    Select the 'showOut' argument set, add a new argument mapping. Select 'result' from the Screenflow's instance variables and map it to 'parameters["paramName"]'. Where paramName is the name of the HTML submit input element in your JSP.
    Hope this helps,
    Tim

  • Checking the Condition

    Hi all,
    I need to execute the Interface if at all the condition is satisfied.what I have done is that I have checked the condition on the Root Node.But when the condition is not satisfied XI is throwing an error as the occurance on the target structure is 1.1.
    Can any one help me in resolving this issue...
    Regards
    Gopi

    Hi Gopal,
    Please see the following links
    /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    And exceptions can be handled by proxies also see below links
    http://help.sap.com/saphelp_nw04/helpdata/en/b1/ca6c3c32ac8754e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/25/a45c3cff8ca92be10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/b1/ca6c3c32ac8754e10000000a114084/frameset.htmhttp://help.sap.com/saphelp_nw04/helpdata/en/56/b46c3c8bb3d73ee10000000a114084/frameset.htm
    Regards
    Chilla..

  • Authorization level check for Condition records.

    Hi,
    Hi Gurus,
    Pls help me out in the the following scenario.
    I want to activate Authorization level check for Condition records.
    For example, Product price PR00 is being entered by first level.
    After verification done by second level only, that condition record to be used for sales order processing.
    I have gone through Process status & Release Status. But once it is Blocked  i am not able to release it...
    Rgds,
    Amol

    Amol,
    Please confirm transaction code you are using in this scenario to release. I can help with this, just a little more detail.
    Thanks,
    Jay

  • How can i check the condition of my iphone 4 battery?

    Is there a way to check the condition of a battery in an iphone, to see the number of cycles and present capacity?

    there are some apps in the app store but it's all statistics
    a technology like batteries is soooo analogue the only thing the iphone have access to is
    the volt level the batt can currently provide

  • Where do i  increment counter and check the condition

    Hi experts,
    i worked on standard leave request demo  workflow templette, in that  revise(update), delete the leave request, in that manuually delete the request , that to be extended to when revise the leave request more than 3 times it automatically delete the leave request.i created one container element INDEX of type SYST-INDEX, where do i increment  the counter and where do i check the condition.
    thanks
    sitaram

    You can increment the counter using Container Operation type step in Workflow. You have also Condition step that you can use in Workflow.
    Thanks
    Arghadip

  • Report to check price condition

    Hi All,
    Is it possible to check existing price conditions on all customers to make sure we have a valid price (i.e no ZERO price) in any condition, any report or fuction to help me do the above.
    Thanks in advance.

    Try pricing report V/LD. Copy the output to excel and customer masters to excel and then do a  V Lookup in excel.
    Regards,
    GSL.

  • Pls help   how to check the condition in java server faces.....???

    Hi All
    I have strucked with code pls help....
    How can i check the codition in java server faces.....?
    like in my Application when user provides the in put like some state name in the next page i have to display some url for that state .......if he provide some other state name it will be different url .....pls help me how can i do that,,,,,,???
    thanks in advance..

    There are certainly ways to do that. E.g. using the rendered attribute, using conditional statements in EL, using a specialized getter for that (lazily loaded if necessary), etcetera. But your functional requirement is unclear, so I can't go in detail with that.
    In the future, please try to write normal English sentences. Don't write like SMS talk and save the periods and commas. The more effort you put in your question, the more chance you will be taken for serious and the more effort others will post in their answers.
    Also, in the future, JSF related questions should be posted in the JSF forum.
    Edited by: BalusC on 12-aug-2008 7:47

  • Unable to check Null condition in a Shell Script

    Hi,
    When I am using to check the Null Condition To check for a Running Java Process its failing to check.
    I am using variable in a shell script
    DPID=$(ps -ef |grep - i java|grep -v grep)
    if [ "$DPID"="" ' ];then
    else
    fi
    If the DPID has Null value then its getting executed but if the DPID has value its not getting into the else part of the loop
    Thanks and Regards

    You could try -c to make grep return a count of matches, then check if this count is zero or not.
    DPID=`ps -ef |grep - i java|grep -vc grep`
    if [[ $DBID -ne 0 ]]; then
    else
    fi

Maybe you are looking for

  • Video's problems

    Excuse me for my english. I have problem to view video on my Ipod. I can see those on Itunes, but not on Ipod. Do you know what i have to do? Thank you.

  • IPod Touch Screen Flickering

    I bought two iPod touches (32GB) from the same apple store. When I look at some pages on them the screen has a very faint but noticeable flicker. The flicker is not across the whole screen but only over certain areas. You can see it a lot on the dock

  • HT5167 how do I upgrade my Powerbook OS 10.4.11 to OS 10.5.8

    Hi  I'm new to apple laptops and I need help upgrading my powerbook with OS 10.4.11 to a higher OS but I don't have the restoring Dics any can someone help please

  • Historical Reporting Client Login Failure - UCCX 7.0(1)

    We're experiencing intermittent login failures with the Historical Reporting Client, extract from the log file below: 1: 28/04/2010 11:58:25 %CHC-LOG_SUBFAC-3-UNK: Error # 35761 ,Description= Request timed out ,LastDllError= 0 2: 28/04/2010 11:58:25

  • Restrict records in Query

    Hi All, I need to restrict the records in my query based on transactions.  Ex: Company Code     Date         Cost Center   Amount          10000             1/1/2000          100             20000                                2/1/2000          200