Message needed to be displayed

hi,
i have written a program in forms which is a logon screen.
following is the program which i have written,
DECLARE
     USERNAME EMPY.EMP_USERNAME%TYPE;
     PASS EMPY.E_PASS%TYPE;
     CERT EMPY.AUTHORISE_CERT%TYPE;
     CURSOR C1 IS
     SELECT EMP_USERNAME,E_PASS,AUTHORISE_CERT FROM EMPY;
BEGIN
     OPEN C1;
     LOOP
          FETCH C1 INTO USERNAME,PASS,CERT;
          EXIT WHEN C1%NOTFOUND;
          IF
               :USERNAME=USERNAME AND
               :PASS=PASS AND CERT='Y' THEN
               GO_BLOCK('CERTIFY');
               EXECUTE_QUERY;
                              END IF;
               END LOOP;
     CLOSE C1;
     END ;
i need to to display a message for the user with
invalid password such as' invalid user/password'.
if i use else condition i get the message even for the valid user.
could anyone help me out
thanks in advance.

You are looping through the whole empy table with this cursor:
CURSOR C1 IS
SELECT EMP_USERNAME,E_PASS,AUTHORISE_CERT FROM EMPY;
I think you mean this:
CURSOR C1 IS
SELECT EMP_USERNAME,E_PASS,AUTHORISE_CERT FROM EMPY
WHERE emp_username = user
You don't need the loop, just open, fetch into and close.

Similar Messages

  • Need help in displaying error message on the same screen

    Hi Experts,
    I have written a report which gets called from IW52 by clicking one of the action items. Now in my report when I am trying display an error message it is getting displayed at the bottom of a blank screen. My requirement is to display it at the bottom of the IW52 screen, so that user can rectify the error.
    Please help.
    Regards,
    Sambaran Ray.

    Hi,
    Probably you need to find a way to enhance the standard code.
    But make one thing sure that the code (included bu you) gets fired only when that specific report is being executed. Else it may harm the standard functionality.
    Hope this helps you.
    Regards,
    Tarun

  • Error message "This program cannot display the webpage when uploading images to Cafe Press

    I have had a Café Press shop for five years and except for sometimes being slow, no problems uploading images. Now, suddenly for 3 days I get the message "This program cannot display the webpage
    Most likely causes:
    • You are not connected to the Internet.
    • The website is encountering problems.
    • There might be a typing error in the address.
    What you can try:
    Check your Internet connection. Try visiting another website to make sure you are connected.
    Retype the address."
    I got the messsage about half way through the uploading of an image. People suggested using "firefox" instead of IE so I now get a similar error message from Firefox. I signed in, clicked on the image I wanted to upload and hit "upload" and get message as follows:
    Server not found
    Firefox can't find the server at members.cafepress.com.
    * Check the address for typing errors such as
    ww.example.com instead of
    [url=http://www.example.com]www.example.com[/url]
    * If you are unable to load any pages, check your computer's network connection.
    * If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
    None of this makes sense because I WAS connected to the internet (obviously) or I wouldn't have been able to sign in, go to my media basket, browse for the image and click "upload" and watch as the progress bar showed percentage of upload such as 20%, etc. and even went to 100% at times before giving me the error message. Plus I couldn't make a typing error since I wasn't typing anything but uploading an image. Any suggestions?
    Whatever your suggestion, I need step by step instructions as I am totally computer illiterate. I don't even know what a "proxy" is and don't know if I have a "firewall" as the message suggests. I have "Comodo" security and am using Windows XP.
    I contacted CP which was no help at all. All they did was tell me to clear my cache which I do after every session. Thanks
    Nancy
    http://www.cafepress.com/calendarflr

    Sounds like your desktop application is in fact running from
    a server. CHMs were identified as a security risk by Microsoft and
    are best suited to the user's PC.
    Click
    here for more information.

  • Message details not getting displayed in Message monitoring of RWB

    Hi,
    I am trying to see how many messages in Message Monitoring by selecting Integration Engine option, Message counts are getting displayed like how many has been processed successfully,processed with errors as well.
    When I click on message count a pop up screen opens and gives me no messages are not available even for the same day messages.
    Can any body give me an idea like where i can set any parameter to display in detail of messages in integration engine for one week back as well.
    Thanks...

    >When i click on count of messages which got processed with in one hour then it shows details of that messages, but when i select other messages which got processed on the same day but more than one hour then its not displaying any details of the messages.
    I guess in this case your retention period is set to zero in SXMB_ADM. And this is the reason you cannot see the message even if they are an hour old.
    >Is there any where where we can set parameters or any oss note to be implemented in order to see details of any messages with in a week or 10 days.
    In XI run tcode SXMB_ADM and then follow "Integration Engine Configuration ---> Specific Configuration". Now check the Archive & Deletion Current & Default Values and set the Retention period as per you need.
    For more information see page 11 of this document.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/402fae48-0601-0010-3088-85c46a236f50?quicklink=index&overridelayout=true

  • Need guidance in displaying graphics shapes on image

    I would like some help drawing a circle over an image which is displayed in JScrollpane through JLabel, The goal is, whe we click over the image, the image apperas with a small circle in the place we have clicked. I have used JLabel for displaying image in JScrollpane by using imageLabel.setIcon(new ImageIcon("default.jpg"));
    I need to draw circle/rectangle when i click on image by this i need to select different points in the image by drawing circles/rectangles over the image.
    If you understand my problem than please guide me for the same.
    Thank you

    Don't post the same question multiple times. It's rude, as it leads to people wasting their time duplicating each others' answers.
    http://forums.oracle.com/forums/message.jspa?messageID=9385315#9385315
    http://forums.oracle.com/forums/message.jspa?messageID=9385314#9385314
    Need guidance in displaying graphics shapes on image

  • [svn] 1978: Bug: vendors. properties file which is used in vendor specific login commands was not being read properly and as a result some login related error messages were not being displayed correctly .

    Revision: 1978
    Author: [email protected]
    Date: 2008-06-06 08:05:34 -0700 (Fri, 06 Jun 2008)
    Log Message:
    Bug: vendors.properties file which is used in vendor specific login commands was not being read properly and as a result some login related error messages were not being displayed correctly.
    QA: Yes - we need automated tests to make sure that errors.properties and vendors.properties in BlazeDS/LCDS are loaded properly.
    Doc: No
    Modified Paths:
    blazeds/branches/3.0.x/modules/common/src/java/flex/messaging/util/PropertyStringResource Loader.java
    blazeds/branches/3.0.x/modules/opt/src/jrun/flex/messaging/security/JRunLoginCommand.java
    blazeds/branches/3.0.x/modules/opt/src/tomcat/flex/messaging/security/TomcatLoginCommand. java

    I have a lot of grief with this version of Windows Media Player.
    It is very buggy and frustrating to use.
    I have my Music library on a QNAP NAS, which is as reliable as they come.
    System notifications make it not save changes.  It also does not do a good job of interpreting albums and artists from folders.  Changes to track names are not saved, nor are tracks moved to other albums, renamed albums, changes to genre, artist
    or date.  It separates and merges albums/tracks without sense or reason.  Some changes I've made up to 4 times, then closed WMP and re-started my machine to check if it has/hasn't saved the changes.  Often it has not.
    This is the first time I've used WMP in this capacity, and I do not recommend it.
    New service pack please.

  • Message is not getting displayed.

    Hi all,
    I have a form with KEY_COMMIT Trigger with the code below:
    DECLARE
    cls_date  DATE;
    Duration  NUMBER;
    int_rate  NUMBER(3,2);
    PA_AMT    NUMBER(10,2);
    TRMS      NUMBER;
    I_RATE    NUMBER(4,2);
    pl_id ParamList;
    usernm VARCHAR2(20);
    OLD_FDR_NO NUMBER;
    BEGIN
    PA_AMT:=:KEC_FDACCT_MSTR.AMOUNT;
    TRMS:=SUBSTR(:GROUP_TYPE,1,2);
    commit_form;
    SELECT INT_RATE INTO I_RATE FROM FDSLAB_MASTR WHERE GROUP_TYPE=:GROUP_TYPE AND FDSLAB_NO=:KEC_FDACCT_MSTR.ACCT_TYPE;
    DUARATION_DTL(PA_AMT,TRMS,I_RATE);
    message('3- I want this message to be displayed.This is not getting displayed');
    message(' ');
    SELECT sap_code INTO :KEC_FDACCT_MSTR.sap_code FROM FDSLAB_MASTR WHERE GROUP_TYPE=:GROUP_TYPE AND FDSLAB_NO=:KEC_FDACCT_MSTR.ACCT_TYPE;
    commit_form;
    END;
    In the above code, you can find DUARATION_DTL(PA_AMT,TRMS,I_RATE);
    DUARATION_DTL is a Procedure which is coded in the Program Unit with the below code.
    PROCEDURE DUARATION_DTL(PAMT NUMBER,QTR NUMBER,RATE NUMBER) IS
    .........SOME variables declared..........
    BEGIN
    SOME IF ELSE statements
    SOME INSERT statements
    SOME UPDATE statements
    COMMIT;
    message('FDR No Saved Successfuly'||:KEC_FDACCT_MSTR.ACCT_FD_NO);
    message('');
    END;
    When I run the form, Message('3') that is the message marked is not getting displayed.
    Only the message in procedure DUARATION_DTL that is in green is getting displayed.
    Can you let me know why?
    Is there anything i should do to display this message,
    Or is it because its buggy??
    Help me please.
    Thank You.
    Oracle Forms 6i.
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production

    Hi AW, I actually don't want to display that message.
    I want to know why is that message not getting displayed??
    Is that because of the following Triggers??
    Trigger:ON_MESSAGE:
    if MESSAGE_CODE = 40400 then
      message('FDR information saved successfully.');
      message('');
      else
    message(MESSAGE_TEXT);
    end if;
    Trigger:ON_ERROR:
    if ERROR_CODE = 40202 then
      message('This field cannot be blank');
      message(' ');
      RAISE form_trigger_failure;
    elsif ERROR_CODE = 41800 then
      message('List of values is not available for this field.');
      message(' ');
      RAISE form_trigger_failure;
    elsif ERROR_CODE = 40401 then
      null;
    else
      message(ERROR_TEXT);
      message(' ');
      RAISE form_trigger_failure;
    end if;
    These above mentioned triggers are present in the form.
    Is it because of these triggers , that the message is not getting displayed??
    If yes, can you tell me why?

  • I was recently sent a very large emoji message amd now when i try to acces messages it will not display mesagges and then will bring me back to the home page

    was recently sent a very large emoji message amd now when i try to acces messages it will not display mesagges and then will bring me back to the home page

    Quit the messages app and reset your phone.
    Go to the Home screen and double click the Home button. That will reveal the row of recently used apps at the bottom of the screen. Tap and hold on the app in question until it jiggles and displays a minus sign. Tap the minus sign to actually quit the app. Then tap anywhere on the screen above that bottom row to return the screen to normal. Then restart the app and see if it works normally. Then reset your device. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider should one appear until the Apple logo appears. Let go of the buttons and let the device restart.
    After the phone restarts go into Messages and delete the thread containing the problem message.

  • I have a MacAir, mid 2011 model, and want to view video on my TV.  I see that I need a mini display port to Hdmi but there are many of these.  What exatly do I need and how does one view a movie downloaded to the MacAir on a TV screen?

    I have a MacAir, mid 2011 model, and want to view video on my TV.  I see that I need a mini display port to Hdmi but there are many of these.  What exatly do I need and how does one go about viewing a movie downloaded to the MacAir on a TV screen?

    Welcome to Apple Support Communities
    That's exactly what you need. A Mini DisplayPort to HDMI adapter and a HDMI cable. See > http://support.apple.com/kb/HT4241?viewlocale=en_US
    This is the only way to view a video on the TV. After connecting your MacBook Air to the TV, image on your TV should show immediately. Then, press Command and F1 keys to mirror your MacBook Air display, and open the video

  • Error message needs to be generated in case of change in released PO.

    Hi all,
    please help me how to solve this issue
    <b>issue1:</b>
    Error message needs to be generated in case of change in released PO.
    1) change in incoterms,  
    2) payment terms,                 
    3) quantity                             
    4) rate.                                    
    The system should allow for change on the higher side.

    Hi ,
    I think you point no 3 & 4 can be solved using option available in release startegy and for point 1 & 2 u have to try with some user_exits. I think so , others can comment on this .
    Thanks
    Dipak

  • E-Recruitment error message :Page cannot be displayed

    Hi E u2013Recruitment Experts,
    While testing the E rec BSP pages from SE80 I am getting the error message:
    Page cannot be displayed.
    What I have done is as follows:
    Step 1:defined the context in table V77RCF_CONTEXT
    Step 2:defined the element of container sequence in table V77RCF_CS_ITEMC  by copyin the data from table V77RCF_CS_ITEM
    Step3. defined the container sequence in table V77RCF_CS_SEQC and defined the element.
    Step 4.defined link for start pages in table V77RCF_SP_LINKC while copying the data from table V77RCF_SP_LINK
    Step 5.Define Start page groups in table V77RCF_SP_GROUPC while copying the enteries from V77RCF_SP_GROUP
    Step 6;Defined Start pages in table V77RCF_SP_ASIDC while copying enteries from table V77RCF_SP_ASID
    Step 8:I generated the url using the program RCF_GENERATE_URLS using Https protocol
    Apart from above setting I have also made entries in the following customer tables:
    T77RCF_SP_ID(C) - Startpages
    T77RCF_SP_ID(C)T - Startpages texttable
    T77RCF_SP_GROUP(C) - Startpage groups (the blocks with a number of links)
    T77RCF_SP_GROUPT/GRPCT - Startpage groups texttable
    T77RCF_SP_LINK(C) - Links
    T77RCF_SP_LINK(C)T - Links texttable
    T77RCF_SP_ASID(C) - assignment of groups to startpages
    T77RCF_SP_ASGRP(C)
    But still I am getting the error message that the page cannot be displayed
    Can any body tell me where I have missed out
    Thanks and best regards
    Rajeev chhabra

    Hi Naddy,
    I could not find the error log in the given T code.Is there anything else where I should look at.
    Cheers
    Rajeev

  • In Smartform i am getting a Error Message Graphic cannot be displayed

    Hi All,
               I am trying to display a image in smartform . In the Code i have created a BDC for SE78 for Image upload and when the Image is Upload and when i try to execute the Smartform i am getting a Error Message : Graphic cannot be displayed
    I am trying to load a BMP image in  the form.
    Can anyone help me out .
    Thanks in Advance .
    Regards
    Shankar

    Hi,
    There are two possibilies of issue here.
    1. The BDC is not correct so the image is not uploaded.
    2. Graphic parameter is not properly specified in smartform.
    Please check issue no 1 first. If you confirm that image already in SAP, then you can go to issue no 2.
    Regards,
    Teddy Kurniawan

  • New to lightroom, used program last wk no problem, now unable to import any nef or jpegs, keeps showing error message, need help =(

    new to lightroom, used program last wk no problem, now unable to import any nef or jpegs, keeps showing error message, need help =(

    So where is LR trying to copy the files?  Check your destination in the Import panel at the right.

  • Topic area: Apple Mail.  Question:  How do I get the message preview window to display to the right of my list of email messages?

    Topic area: Apple Mail.  Question:  How do I get the message preview window to display to the right of my list of email messages? i.e. to preview whatever message is currently highlighted in the center window list of messages?

    At present there is no preference option available to move the preview
    pane to right side of the mail window.
    Best.

  • HT4407 When installing Windows 7 using Bootcamp, I get message: "Need 64-bit Windows Installation USB drive or DVD."  I thought my install disk was for 32 or 64 bit.  What does this mean?

    When Installing Windows 7 using Bootcamp, I get message:  "Need 64 bit Windows installation USB drive or DVD."  What does this mean?

    It means you need the 64 bit Version of Windows on a USB stick or DVD.

Maybe you are looking for

  • Running VL06IF in Background and Posting Goods Receipts

    Hi All, We need to be able to run VL06IF (WS_MONITOR_INB_DEL_FREE) in background mode and post goods receipts for the Inbound Deliveries selected based on our variant selection criteria. Wondering if anyone is aware of a program that can select the i

  • Unable to Switch Users on Window 8 Start Screen

    I can not switch users from the Windows 8 Start Screen. Previously when I clicked on the current user Icon in the upper right corner, all the users were displayed for selection. Now it just displays a pull-down menu (1) Change account picture, (2) Lo

  • How can i get rid of sound effects icon in middle of screen?

    How can i get rid of sound effects icon in middle of screen?

  • Using spotlight to find previous system

    When using spotlight, why can it not find "previous system" folder? I am trying to find it so i can delete it. I found it via finder easily enough, but im curious why spotlight could not locate it. I typed the name of the folder exactly like it is.

  • Best way to select several mysql table rows at random?

    What is the best and quickest way to have one form button select multiple rows from a table with complete randomness? Can you also offer some explanation (or link to a good tutorial)- I am a beginner in myql and php. thanks p.s. the id column in my t