Displaying windows messages from an appln.

Hi,
I'm creating a no-window java program. In that, when some exception occures I need to display a message box decribing the problem (like JOptionPane). Is there any method to display message box from non-window application?
Have a nice time
Thanks in Advance

Try Dialog

Similar Messages

  • Display window message from backing bean

    Hi,
    I have the following problem:
    when users click on a button, I want to show an error-message in a new window only if my check-function returns false.
    So in the 'button_actionListener' method I call my check-function but, after that, I don't know how to display the error-message in a new window.
    I used 'AdfFacesContext.getCurrentInstance().launchDialog()' method, but I don't like it, because I want a window like 'javascript alert window' or like 'popup window' or like adf window used for input text validation.
    What is the fastest and easiest way to do that?
    Arturo.

    Hi,
    ADF Faces doesn't provide this functionality which is why you may want to either build your own JSF component for this or look ut for an existing JSF component set that provides this for you.
    Frank

  • A way to display error messages from the program

    Dear all,
    I am looking forward to display a set of error messages(in a internal table) during the execution of the program to the user.
    I wanted to know the better way of displaying error messages from my program with more options.
    Well I tried out using displaying errors as ALV list/Grid or as simple list processing.
    But I found some  stanadard transactions (Like in MM and FI  where errors are shown in a better way, but failed to find out how they are done.
    Please guide me.
    Thanks in advance
    Aryan

    Try to use application logging it has a very good way to display a set of messages.
    [http://abap4.tripod.com/Using_Application_Logging.html|http://abap4.tripod.com/Using_Application_Logging.html]
    Run this report in se38 an example sap report to understand logging way to show a set of messages
    Report Name  :  SBAL_DEMO_01
    Edited by: Vighneswaran CE on Dec 19, 2010 3:01 PM
    Edited by: Vighneswaran CE on Dec 19, 2010 3:11 PM

  • Display error message from SLG1 on shopping cart screen

    I have implemented a 'BBP_CATALOG_TRANSFER' badi. I am adding all the custom error messages in ET_SC_MESSAGES export parameter of this badi. As a result of this, all the custom error messages added in the above parameter, gets logged in the application log SLG1 automatically and I can see those custom messages in SLG1. Now how to display this message from SLG1 on the shopping cart screen on the top where you normally see standard error messages in red.
    Can anyone please help me on this?
    Thanks,
    Krupa

    Hi
    Which SRM version are you using ?
    I have not tried this... but I think this is not possible to display error messages
    using BBP_CATALOG_TRANSFER BADI.
    <u>Try to code your logic in using BBP_DOC_CHECK_BADI for filter type - BUS2121 (shopping cart). You need to add your custom message in ET_MESSAGES [] table.</u>
    <b>For sample coding, refer to the link below -></b>
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/srm/bbp_doc_check_badi-CheckPurchasingDocument&
    <b>Hope this will definitely help.</b>
    Do let me know.
    Regards
    - Atul

  • Display of messages from R3 Business Objects in Web Dynpro

    Hi,
    Please let me know how to display the messages that are given by the R3 Business Objects(BOs) in the WebDynpro view.
    Example : Suppose I save a record using the GCP APIs and need to display the message "Save successful/save aborted due to...." given by BO in the view.
    Awaiting your kind response.
    Regards,
    Mahesh

    Hi Anil,
    The method you suggested displays the string that I enter in my code (man.reportsuccess"...").
    But what I want is to just display the text that I get from the backend and not the string I write in code.
    The question is...how to access this backend BO messages??
    Regards,
    Mahesh

  • Displaying error messages from application log

    Hi,
    I am using the function module RV_DELIVERY_CREATE for creating delivery in my program. If the sy-subrc is not zero i.e if delivery is not created, i have to display error messages collected inside the application.How can i do this ?
    The object nd subobject are existing in SLG0 but when i
    tried to see the object and subobject in SLG1 transaction , no logs were found.
    Do we need to activate the object and sunobject somewhere before logging can take place??
    I am using the following code in my program to display the logs but it is displaying no logs found: 
    CALL FUNCTION 'APPL_LOG_SET_OBJECT'
          EXPORTING
            object                    = 'ZCH_SCL'
            subobject                 = 'DL'
      LOG_HANDLE                = ' '
      NO_LOG                    = ' '
    EXCEPTIONS
      OBJECT_NOT_FOUND          = 1
      SUBOBJECT_NOT_FOUND       = 2
      OTHERS                    = 3
          IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    CALL FUNCTION 'APPL_LOG_INIT'
    EXPORTING
    OBJECT                    = 'ZCH_SCL'
       SUBOBJECT                 = 'DL'
      LOG_HANDLE                = ' '
    EXCEPTIONS
      OBJECT_NOT_FOUND          = 1
      SUBOBJECT_NOT_FOUND       = 2
      OTHERS                    = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
          PERFORM z_call_rv_delivery_create. " to call fm rv_delivery_create
          IF sy-subrc ne 0.
            CALL FUNCTION 'APPL_LOG_DISPLAY_INTERN'
      EXPORTING
        object                               = 'ZCH_SCL'
       subobject                            = 'DL'
       title_list_screen                    = 'Error Logs'
      COLUMN_SELECTION                     = '11112221122   '
      COLUMN_SELECTION_MSG_JUMP            = '1'
      EXTERNAL_NUMBER_DISPLAY_LENGTH       = 20
      I_S_DISPLAY_PROFILE                  =
    IMPORTING
      NUMBER_OF_PROTOCOLS                  =
    EXCEPTIONS
      OBJECT_NOT_FOUND                     = 1
      SUBOBJECT_NOT_FOUND                  = 2
      OTHERS                               = 3
    thanks,
    vartika

    Hi Vartika,
    you need to save that log after creating and appending to it.
    here is a code to save that log.
    If log created, save to database
      if e_bal_hndl is not initial.
        refresh: bal_hndl.
        append e_bal_hndl to bal_hndl.
        call function 'BAL_DB_SAVE'
          exporting
            i_client         = sy-mandt
           i_in_update_task = 'X'
            i_t_log_handle   = bal_hndl
          importing
            e_new_lognumbers = log_no
          exceptions
            log_not_found    = 1
            save_not_allowed = 2
            numbering_error  = 3
            others           = 4.
    u have to write this code after appending info to Log.
    hope this will help.
    regards,
    vikas

  • Display error messages from Stored Procedures through ODBC

    I am working on a C++ application that uses an Oracle ODBC connection. In the exception part of a stored procedure I am using dbms_output.put_line ('error message'). Is there any way to display this message in the C++ application?
    Thanks.

    There are two parts.
    The stored proc must 'throw' an exception.
    And java must catch it.
    You probably already have the java part. That is the catch(SQLException).
    As for the stored proc you can use the following search string in the jdbc forum
    raise oracle
    You need to use 'raise' in the stored proc but I am not sure of the exact form, but one of the threads using the above search string is likely to have it.

  • Displaying a Message from PL/SQL block to Java Application

    Hi
    How can One display or populate a message in Java Application, that is generated from a PL/SQL block?

    Well, the easiest option would be to have a "message" parameter that gets passed back from the PL/SQL block to the calling Java application.
    I'm guessing, though, that you wouldn't be asking the question if the easy solution was a viable option... If that's the case, you're going to have to describe the problem in a bit more detail...
    Justin

  • How to display a message from program in work item text in workflow

    Hi,
    I need to display an error message in the work item text in workflow  . The error message is contained in the container t_container and the field in which the error message is contained is t_container-textvarfortextelements
    the text that is contained in the field " t_container-textvarfortextelements " is "Incorrect store mapping ".
    I need to display "Incorrect stor Mapping" in the work item text.
    I am working in 40B .

    4.0B?
    Just add a new element in the task container (input variable) and add the variable to the Task text. Don't forget to pass the value from the WF container to the Task.
    Regards, Uwe

  • Is it possible to obtain the last IP address from which the device has displayed a message from Find My iPhone ?

    Hello, a couple of months ago my macbook got stolen so when yesterday i recieved an email my message was displayed on it i was wondering if there is a possibility to get the last IP address used on that machine .So if there is such possibility could someone direct me how to do it ?

    I'm sorry, but I'm still not clear on the problem. Do you mean that you have both "Smith Family" and "John Smith" tied to the same email address? If so, again, that "friendly" name isn't sent to the recipient, so the person receiving the email will get exactly the same thing regardless of whether you select the "Smith Family" entry or the "John Smith" entry. The "friendly" name doesn't go along as part of the email.
    It would only matter on your end when looking at your Sent email, and if that's an issue, it should be no problem to select which one you want; just start entering in the email address/name and wait a second; you'll get a dropdown with all the addresses that meet that criteria and you can just pick the correct one.
    Forgive me if I'm still not understanding what the difficult is or what you're trying to accomplish.

  • Error message from iTunes

    I have been using iTunes with my iPod mini for ages and it works fine. I recently got a message saying some songs in the library have not been copied because the iPod software is too old. There are indeed some songs in the library that have been unchecked and are not on the iPod. It seems a pretty random selection. I can manually check the songs in the library and then they update OK on the iPod.
    The error message says to go to www.apple.com/ipod to get the latest updater. I downloaded the latest version, 2006-06-28 and it tells me I am running the latest iPod software, v1.4.1
    I also re-installed the latest iTunes as well, but I still get this same message. Anyone know where it comes from and what I can do ?

    http://docs.info.apple.com/article.html?artnum=300554
    If Windows has difficulty reading information off iPod or iPod shuffle, it may display a message from the System Tray, indicating there's a corrupt file and to please run the Chkdsk utility.
    (Apple) recommends using the latest version of iTunes to restore iPod because this will address the file system issue and will also defragment the iPod drive. Although you can use the Chkdsk utility to fix file system errors on the drive mapped to iPod, Chkdsk will not defragment the drive.
    More information is at the above link (I just pasted snippets of what I saw).

  • How can i display system messages(forms,rep) in prefered language

    I want to display returned messages from the system,on reports,charts,Forms buttons in users preferred language. How can i dot that
    Thanx in advance

    Hi,
    If you want to display your own message then you add those messages in a table wwnls_strings$. The strings you insert should be in a different domain like 'userdefined'. Please describe the table to know more about the table. You can then use get_string
    wwnls_api.get_string(
    p_domain => 'USERDEFINED',
    p_sub_domain => p_sub_domain,
    p_name => p_name,
    p_language => wwctx_api.get_nls_language,
    p0 => p0,
    p1 => p1,
    p2 => p2,
    p3 => p3);
    Thanks,
    Sharmila

  • Xtra: trouble capturing windows message

    We are trying to use the RegisterNotificationClient in an
    Xtra to capture couple windows messages from an external DLL.
    I basically have two questions:
    1. Is using RegisterNotificationClient the right way to
    capture windows messages from an xtra?
    2. If the answer to 1 is yes, then I have another question as
    when we try to set up the parameters for the
    RegisterNotificationClient I have a misstmatch in the nid, second
    parameter to specify the id of the message to be captured. I have
    for windows an integer constant, but the nid param expects a GUID
    number ...
    Thanks!

    Thanks for the reply Tom. (BTW I'm not the original poster.)
    You are correct- It is a USB drive formatted FAT 32 . After my original post, I erased the drive and started over with a clean slate. This was successful for tape one (about 60 minutes). About twenty minutes into tape two though, it was deja vu all over again. FC froze, I force quit, and lost all of what I had captured from tape one in the process. I unsuccessfully tried to recapture tape one. Same problem again.
    Although this is the first time I've tried to capture through FC onto an external drive, I've got three other USB drives full of video I've captured from VHS with the same computer through a DV encoder. When you say USB is not supported by Apple for video applications, does that mean video editing applications? As for complete information, apologies but I'm not exactly sure what other info. you mean. Please let me know. Thanks again. I appreciate the time.

  • Console displaying old messages only

    My console (console log or "all messages") displays only messages from february 11 to march 6 somehow. This varies a bit, sometimes I open it and it shows up to march 7, sometimes only up to march 3.
    They still are 4000 messages.
    I tried to make a new log request showing "messages after june 13th", but nothing is shown.
    The system.log works though, it displays messages of today and a couple of days back.
    Any idea? I already repaired the permissions.

    The full results would be pages long. Here's an excerpt:
    -rw-r--r-- 1 root wheel 770589 Jun 26 07:58 2009.06.25.asl
    -rw-r----- 1 root admin 1037 Jun 26 21:31 2009.06.26.U0.G80.asl
    -rw------- 1 root wheel 3482 Jun 26 18:16 2009.06.26.U0.asl
    -rw------- 1 heather wheel 33481 Jun 26 21:45 2009.06.26.U502.asl
    -rw------- 1 _securityagent wheel 2214 Jun 26 12:37 2009.06.26.U92.asl
    -rw-r--r-- 1 root wheel 1138562 Jun 27 06:23 2009.06.26.asl
    -rw------- 1 heather wheel 6169 Jun 27 17:04 2009.06.27.U502.asl
    -rw-r--r-- 1 root wheel 108104 Jun 28 07:40 2009.06.27.asl
    -rw-r----- 1 root admin 694 Jun 28 19:05 2009.06.28.U0.G80.asl
    -rw------- 1 heather wheel 35199 Jun 28 21:34 2009.06.28.U502.asl
    -rw-r--r-- 1 root wheel 121680 Jun 29 08:04 2009.06.28.asl
    -rw------- 1 heather wheel 36584 Jun 29 18:34 2009.06.29.U502.asl
    -rw-r--r-- 1 root wheel 56328 Jun 30 06:17 2009.06.29.asl
    -rw------- 1 heather wheel 16244 Jun 30 14:22 2009.06.30.U502.asl
    -rw-r--r-- 1 root wheel 51432 Jun 30 14:30 2009.06.30.asl
    -rw-r--r-- 1 root wheel 13878 Mar 14 09:06 LongTTL.U0.asl
    -rw-r--r-- 1 root wheel 47361 Apr 16 20:05 LongTTL.asl
    -rw-r--r-- 1 root wheel 4190 Mar 13 18:01 LongTTL.asl.1236606759
    -rw-r--r-- 1 root wheel 8 Jun 30 14:30 StoreData
    -rw-r--r-- 1 root wheel 0 Mar 14 09:06 SweepStore

  • Display error message in forms from function "verify_function"

    Hi,
    We have a number of users with our own created profile attached to them.
    We have enabled the 'PASSWORD_VERIFY_FUNCTION' for our own profile.
    Function "verify_function" is used to validate a user's password.
    In "verify_function" we have used "raise_application_error" message in case password validation fails.
    Example:
    raise_application_error(-20001,'Password must be minimum 8 characters in length and maximum 30 characters long');Question) "raise_application_error" displays the error message only in SQL Plus prompt. How do I display the same message from Oracle forms?.
    I have used DBMS_ERROR_TEXT & DBMS_ERROR_CODE in ON-ERROR trigger. This is not displaying the error message in forms in case validation failed in "verify_function". Oracle simply clears the username/password field with a new window. We want to display the error message that occured in "verify_function".
    Thanks

    use the following code in validating the item, e.g when-button-pressed
    begin
    verify_function;
    exception
    when others then
    message(sqlerrm);
    raise form_trigger_failure;
    end ;
    OR
    instead of writing a procedure rewrite it as a function to return 1 if password is correct or 0 if password is wrong
    Regards
    Jihad

Maybe you are looking for

  • How can I disable animated tab effects in Firefox 19.0?

    I updated Firefox a few days ago from 18.0.2 to 19.0 and now see that the tabs slide around when I drag to rearrange them or try to ppostion a tab over a bookmarks toolbar folder for bookmarking. The tab being dragged also gets transparent although I

  • Moving Photos Between Existing Film Rolls

    Can I move photos from one existing film roll to another existing fill roll, without creating a new film roll? And if so, how? I think this is a pretty basic question, but if I need to clarify anything please let me know. Any input is greatly appreci

  • Bi-7 bi content problem

    hai Friends,                 i have given business content activation task for fiar module,presently i am working on new implementation of bi7,but when activating business content in bi7 without any migration, i got 3.x flow for all my objects(cubes,

  • Problems with BB Media Sync and Curve 8330

    I having problems getting BB Media Sync to work with my curve 8330.  Some background info: I am using Windows 7 (I have also tried connecting it on a PC running XP to no avail). I have an 8 GB microsd card in my curve. BB Desktop software recognizes

  • Typedef Tab question

    A quick search with "Typedef Tab" did not return an answer to my issue, so here it is (tested in LV 2012/Windows XP). As I was reading this thread looking for ideas, I rediscovered something I had used in the past, that is, typedefining a Tab control