Procedure one condition is not working

Hi
I need to implement a stored procedure. I have some conditions where I implemented in my procedure.
Please help me..!!
My table : person_master
create table PERSON_MASTER
  WEB_LOGIN        VARCHAR2(50),
  WEB_PASSWORD     VARCHAR2(40),
  PWD_EXP_DT       DATE,
  EXPIRED          CHAR(5),
  FAIL_LOGIN_ATTMP NUMBER(3)
)insert into PERSON_MASTER (WEB_LOGIN, WEB_PASSWORD, PWD_EXP_DT, EXPIRED, FAIL_LOGIN_ATTMP)
values ('300000078', 'Juol123456', to_date('01-06-2011', 'dd-mm-yyyy'), 'Y ', 1);
insert into PERSON_MASTER (WEB_LOGIN, WEB_PASSWORD, PWD_EXP_DT, EXPIRED, FAIL_LOGIN_ATTMP)
values ('300000079', 'inol123456', to_date('01-12-2010', 'dd-mm-yyyy'), 'N ', 0);
insert into PERSON_MASTER (WEB_LOGIN, WEB_PASSWORD, PWD_EXP_DT, EXPIRED, FAIL_LOGIN_ATTMP)
values ('300000080', 'Luol123456', to_date('05-01-2011', 'dd-mm-yyyy'), 'N ', 0);
insert into PERSON_MASTER (WEB_LOGIN, WEB_PASSWORD, PWD_EXP_DT, EXPIRED, FAIL_LOGIN_ATTMP)
values ('300000081', 'Frol123456', to_date('15-12-2010', 'dd-mm-yyyy'), 'N ', 0);
insert into PERSON_MASTER (WEB_LOGIN, WEB_PASSWORD, PWD_EXP_DT, EXPIRED, FAIL_LOGIN_ATTMP)
values ('300000082', 'Jool123456', to_date('09-12-2010', 'dd-mm-yyyy'), 'N ', 0);
commit;
CONDITIONS
PASSING TWO PARAMETERS..LOGIN AND PASSWORD..SELECT 1 FROM PERSONAL_MASTER
WHERE WEB_LOGIN = INPUT PARAMER LOGIN
AND WEB_PASSWORD = INPUT PARAMETER PASSWORD
IF EXPIRED = 'Y' THEN
MESSAGE ' ACCT EXPIRED'
IF EXPIRED = 'Y' AND PASSWORD <> INPUT PRAMETER PASSWORD THEN
MESSAGE 'ACCT EXPIRED'
pls help me...!!
Regards
AR
Edited by: 845299 on Jun 15, 2011 12:46 PM

845299 wrote:
Hi
I need to implement a stored procedure. I have some conditions where I implemented in my procedure.
Please help me..!!
My table : person_master
create table PERSON_MASTER
WEB_LOGIN        VARCHAR2(50),
WEB_PASSWORD     VARCHAR2(40),
PWD_EXP_DT       DATE,
EXPIRED          CHAR(5),
FAIL_LOGIN_ATTMP NUMBER(3)
)insert into PERSON_MASTER (WEB_LOGIN, WEB_PASSWORD, PWD_EXP_DT, EXPIRED, FAIL_LOGIN_ATTMP)
values ('300000078', 'Juol123456', to_date('01-06-2011', 'dd-mm-yyyy'), 'Y ', 1);
insert into PERSON_MASTER (WEB_LOGIN, WEB_PASSWORD, PWD_EXP_DT, EXPIRED, FAIL_LOGIN_ATTMP)
values ('300000079', 'inol123456', to_date('01-12-2010', 'dd-mm-yyyy'), 'N ', 0);
insert into PERSON_MASTER (WEB_LOGIN, WEB_PASSWORD, PWD_EXP_DT, EXPIRED, FAIL_LOGIN_ATTMP)
values ('300000080', 'Luol123456', to_date('05-01-2011', 'dd-mm-yyyy'), 'N ', 0);
insert into PERSON_MASTER (WEB_LOGIN, WEB_PASSWORD, PWD_EXP_DT, EXPIRED, FAIL_LOGIN_ATTMP)
values ('300000081', 'Frol123456', to_date('15-12-2010', 'dd-mm-yyyy'), 'N ', 0);
insert into PERSON_MASTER (WEB_LOGIN, WEB_PASSWORD, PWD_EXP_DT, EXPIRED, FAIL_LOGIN_ATTMP)
values ('300000082', 'Jool123456', to_date('09-12-2010', 'dd-mm-yyyy'), 'N ', 0);
commit;
CONDITIONS
PASSING TWO PARAMETERS..LOGIN AND PASSWORD..SELECT 1 FROM PERSONAL_MASTER
WHERE WEB_LOGIN = INPUT PARAMER LOGIN
AND WEB_PASSWORD = INPUT PARAMETER PASSWORD
IF EXPIRED = 'Y' THEN
MESSAGE ' ACCT EXPIRED'
IF EXPIRED = 'Y' AND PASSWORD <> INPUT PRAMETER PASSWORD THEN
MESSAGE 'ACCT EXPIRED'
pls help me...!!
my car is not working.
Tell me how to make my car go.
Is COPY & PASTE broken for you?

Similar Messages

  • Condition in Approval Procedure Rule in ChaRM not working properly

    Hi experts,
    We are on 7.1 SP8.
    We have Z-partners defined and included those in the Approval Procedure too. In order to fill the approval procedure steps with the default partner, we defined a rule policy.
    For example step ZMCR000001 needs to be filled with BPE by default.
    This works fine.
    But when we want to overwrite the default value with another value, the default is always put back over the manual entered value.
    Also manually added process steps get that same value.
    It looks as if the last step of the condition is not working properly (i.e. the check to see if the approver is already filled).
    Can somebody tell me how we can get manually entered values in there?

    Hi ,
    You can play with User status, add to condition in which user status you dont wont this to be triggered.
    Example add "And User status equal ZMCR Created":
    On staus created you get automatic approval determination with default partner ID's
    Now on Validation the rule will not be triggered and your manually added values saved as is.
    Rg Dan.

  • Guard Condition is not working

    Dear Friends,
    I have created a dashboard using BI queries. output of queries is displaying via charts.
    Now i have to display charts one by one in single layer. Here i triggered the Select Event on the output of CHART A and Guard Condition as well.
    Now guard condition is not working properly. i want display of CHART A first then after clicking on tab i want display of CHART B. But here i always get CHART B first, which is not the requirement.
    I am using VC 7.0 with flex2 compiler. EP patc level is SP17.
    Kindly hep me out to resolve this.
    Thanks & Regards
    Nivedita

    Drag an output from your table to a data store and add a field to the datastore (lets call it GUARDFIELD). Click the connector between the table and the data store. Make sure the event name is select and assign GUARDFIELD with the following value:
    STORE@GUARDFIELD+1
    Now add a guard condition to the select connector between the table and chart B and use following code:
    STORE@GUARDFIELD>0
    This is going to check that GUARDFIELD is greater than 0, which will only be true when you click the table for first time. If this doesn't make sense let me know and I'll try find the blog which explains this.

  • If condition statement not working in jsp scriptlet

    <%
    String hostName = java.net.InetAddress.getLocalHost().getCanonicalHostName();
    if(hostName.endsWith("dinesh.com"))
    System.out.println("it works");
    else {
    System.out.println("it doesn't work");
    %>
    I am getting output as it works & it doesn't work. It seems the If condition is not working. Pls help with this issue.
    Thanks

    Dinesh_Nala wrote:
    Even the condition in if is returning true, the x value i am get as "/user2/"How did you knew that it returns true? Or did you just expect that? Do you trust yourself more than Java? Too bad.
    Just debug it:
    System.out.println("Actual hostname value: [" + hostName + "]");
    System.out.println("Does it end with dinesh.com? " + hostName.endsWith("dinesh.com"));

  • Error message on my HP Photosmart C7280 All-in-One 'Wireless Radio not Working'

    error message on my HP Photosmart C7280 All-in-One  'Wireless Radio not Working' My broadband is BT Infinity with a very strong signal throughout the house and my operating system is Windows XP. My printer will not connect wirelessly to my network, what can I do with respect to the error message 'Wireless Radio not Working'

    Hello @GeoffH777 ,
    Perfect! You are very welcome, I am very happy to hear the reset helped!
    If you  have a quick moment, please scroll back to my last message here and click the "Accepted Solution" button, so others can find our thread if they happen to run into the same issue.
    Greatly appreciated, have a wonderful day!
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • Auto To working for one material and not working for other material

    Hi,
    Hope everybody is doing fine.
    I have configured the auto TO. Its working fine for one material and not working for the other material. I checked the material master and wm 1,2 views have the same fileds / values. What could be wrong?
    I didn't setup the back ground processing job. Is that is affecting it?
    thanks for any help.
    regrads,
    KHAN

    Thnaks,
    You are right but then what could be wrong? Its working for one material and not working for otehr material? Any clue?
    Appreciate your time charlie

  • One headphone does not work or works 50% of the time.  What is best way to resolve?

    one headphone does not work or works 50% of the time.  What is best way to resolve?

    First of all, I'd recomend resetting the iPod. Do this by pressing the 'Menu' and 'Center" buttons for 10 seconds or until the Apple logo appears.
    If this doesn't work, then it sounds like a hardware fault.
    To identify the issue, if you have one, try plugging the iPod into a speaker through the dock. If this works, then the issue is with the headphone jack. If not then the logic board is dead.  If the iPod is less than a year old, then it can be repaired by Apple for free. Just book an appointment for the Genius bar.
    If not then, you could see about sending it to an iPod Repair Company, such as my own. A replacement headphone jack would cost £30.00 in the UK, including next day delivery. Other companies you could try would beUKiPodRepairs, but we guarantee to beat any quote that you get.
    Hope that this helps,
    Mark Sweeney
    Dr Pod Founder

  • Why condition does not work.

    Hi Pros,
            in my bex query, there is a CKF OT hours, having a value 30.000, when I set a condition for 'OT hours = 30.000', but get no result out. could you please tell why condition does not work.

    HI,
    please check the "Characteristic Assignment" Tab in change condition window.
    In that tab default  selection as "All Characteristic in the drill down independently" change that selection  as "Individual characteristic and Char. combinations"  and choose the particular characteristic. for ex OT hours against employee means select employee alone.
    Regards
    Sureshkumar C

  • HT204065 Group text with one non iPhone not working on iPhone 6 in the group.

    Group text with one non iPhone not working on one iPhone 6 in group. SMS, MMS and iMessage as well as group messaging are all turned on. Has worked intermittently but now cannot see or respond in that particular chain. Can send independently to the non iPhone (Samsung) but not in group. Other iPhone 6 and 5 in group work fine.

    The reason why you have to turn off 3Gs is because T-Mobile does not support iPhones 1700 something or other. You have to turn off the 3Gs on the iPhone to make it work.
    As already provided, it shouldn't matter since the iPhone is designed to automatically connect to the fastest internet connection available. If wi-fi access and 3G network access is on, when in range of an available wi-fi network you have access to and have connected your iPhone with previously, the iPhone will connect to the wi-fi network automatically. When leaving the range of the wi-fi network, the iPhone will connect to the 3G network if 3G network access is available. If 3G network access is not available, the iPhone will connect to EDGE or GPRS - whichever is available at the time.
    If this is unique to T-Mobile's network with the iPhone for some reason since T-Mobile is not an official carrier for the iPhone in the U.S. and you were instructed by T-Mobile to do so, then you need to do so.
    If this is not working now, the problem lies with T-Mobile and I have no idea what to tell them for them to recognize where the problem lies on their end.

  • One speaker is not working since long time

    one speaker is not working since long time bought in last december

    I have iphone 4Gs and I can see at bottom there are 2 nets for speakers and I saw with my college has same iphone and sound is coming from both but mine is coming from only from right side.

  • [S210 Touch] One key recovery not working

    I have a 1.25 year old S210 Ideapad Touch.  I made a 100GB partition with EaseUS and had no problem with onekey recovery.  I tried to merge that empty partition with my C drive using EaseUS software but it did not work saying there were errors.  After that attempt One Key did not work.  Tried to open One Key with compter turned off, error message said damaged partition. Next I used Control panel Administrative Tools: Disk Management to return C drive to almost its original size less 350 mb. one key still did not work.  I reinstalled one key from Lenovo website and still did not work. Still indicated damage partition.  What can I do now?
    Jim
    Moderator comment: New thread created. Subject edited for clarity. Was: Re: One key recovery not working!

    I found the following on a recovery disk which I made early last year for the  same computer but I cant get it to boot.
    How do I boot this usb flash drive without losing this material and is it used to recreate the correct partitions?
    convert gpt
    create partition primary size=1000
    format quick fs=ntfs label="WINRE_DRV"
    assign letter="W"
    gpt attributes=0x8000000000000001
    set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
    create partition efi size=260
    format quick fs=fat32 label="SYSTEM_DRV"
    assign letter="S"
    create partition efi size=1000
    format quick fs=fat32 label="LRS_ESP"
    assign letter="I"
    gpt attributes=0x8000000000000001
    set id="bfbfafe7-a34f-448a-9a5b-6213eb736c22"
    create partition msr size=128
    create partition primary size=436224
    format quick fs=ntfs label="Windows8_OS"
    assign letter="T"
    create partition primary
    format quick fs=ntfs label="LENOVO"
    assign letter="O"
    shrink minimum=12288
    create partition primary
    format quick fs=ntfs label="PBR_DRV"
    assign letter="Q"
    gpt attributes=0x8000000000000001
    set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
    exit
    Thanks for any help,
    Jim

  • Go back one page does not work

    Since I had to reinstall Firefox 3.6.15, the "go back one Page" does not work in many cases. Sometimes by clicking on history and manually returning, it works. Id there a fix for this problem, because it is new.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • One headphone does not work

    My left head phone made by apple does not work very well.
    The sound quality on the left one is very poor and it's volume is very quiet compared to my right headphone.
    I have tried other headphones to work with my iPod but the left one still does not work.
    This has happened to other people I know, they sent it in to Apple, and Apple did nothing to the iPod. IT IS NOT THE HEADPHONES.
    The iPod is the part that has the problem.

    If you have tried different headphones with your iPod
    and only one channel is working then probably a
    connection between the jack and the logic board has
    broken. This has been happending with headphone jacks
    since they have had headphone jacks.
    All too often it is caused by jerking the headphone
    plug out of the jack, and it ends up coming out
    slightly at an angle. This can cause pressure on the
    jack and break a solder. Other times it is just a
    factory defect. If you are sending yours in they will
    fix it either way, but in the future I'd be very
    careful when plugging in or removing the headphone
    plug.
    I'd went through a series of Sony high-end cassette players that had this exact problem...luckily my credit card's insurance covered their replacement given that they all failed after the Sony 90 day warrant expired. As a matter of act it was that experience that brought me to Apple iPods.

  • Condition JEXC not working in Pricing procedure for Non Set Off

    Hi,
         While creating PO in case of Dealer procurements i; e we are not buying the materials from the direct manufacturer but from dealer  we need to have BED other than 8%(maintained in J1ID).
          I am using the condition type JEXC in the Pricing procedure which is used to overwrite the value of BASIC Excise Duty in   the Tax procedure. For this I have added JEXC in our Pricing procedure with subtotal as "5".
       JEXC value in the Condition tab becomes the value of JMO1/JMO2 in the invoice tab.
      Now for Set off cased it is working fine. I used to put value in the JEXC in the condition tab other than actual 8% value and it overwrites the value of BED(JMO1/JMO2) .  
    But for Non set off cases it not working correctly.  It overwrites the value of BED(JMO1/JMO2) correctly but the SECSS % becomes zero. Can anyone suggest me the way I can go for non set off case .

    Hi
    Kindly have a look: http://help.sap.com/erp2005_ehp_03/helpdata/EN/0e/db7eb4e9114d85a9335fb1df617504/frameset.htm
    Regards
    Prasanna

  • IF - Else condition is not working properly in Bex Query Designer

    Hi All,
    I have a KF called KPI Value. Based on the KPI Value, my report display has to show by using the if-else condition.  If the KPI value is '999999' then that particular KPI value has to display as 'X' against to that KPI No. Thats all my requirement. To achieve this I have created a formula based on the KF.
    (KPI Value == 999999)*(1/0)+(KPI Value <> 999999)*(KPI Value)*1
    Unfortunately, the above expression is shwoing the entire colmn as 'X' irrespective of the KPI value. i.e., logic is not working Could any one please suggest how to achieve this requirement. Your assistance is highly appreciable and very helpful. Thank you in advance!!!
    Best Regards
    Venkat...

    AL,
    I can visualize how condition should give results. The problem here is reality, I tired in my system with your formula and I got like as I mentioned.
    If you observe closely your If..else formula, (KPI Value == 999999)*0+(KPI Value <> 999999)*KPI Value
    If KPI Value == 999999 Result is 0, Else(Assuming) KPI Value <> 999999 Result is other nos like 1111, 2222 etc.
    Actually it is not If..else, it is IF..ENDIF. Both conditions should get satisfied to give below:--
    KPI value  Formula
    9999          X
    1111         1111
    2222          2222
    9999          X
    3333          3333
    4444          4444
    9999           X
    In the course of adding both conditions results, system is not able to add 0+ Other Values in single column. So it is giving mixed values * like below:--
    KPI value  Formula
    9999          X
    1111           *
    2222           *
    9999          X
    3333           *
    4444           *
    9999           X
    Note: Once again I want to say it is not to prove you wrong. Let's get some clarity on the issue. I might be also wrong. But I want to know the actual result. If you can test it tomorrow and let me know..it would be great.
    Regards,
    Suman

Maybe you are looking for