Exit WD after Displaying a Success Message

Hello Mentors,
Need your help as I am working on a Webdynpro Application,,
Requirement is something like that on a particular view I have a button Say "Approve" .
Now when clicks on Approve button , I want to display a  Success message to the user for his reference that he is done with his approval process & then it should default be exit from WD application.
I tried creating a Window Exit plug & it is working fine but the problem as soon as I click on Approve button , I am exited from the WD application without displaying a message.
I want to display success or error message & then want to exit from WD application.
So please suggest how could I be able to meet your requirement.
Thanks,
Fox

instead of calling direct message you can call popup with message in case of suucess full message regiter button in that button action you can call logic to exit application

Similar Messages

  • Display A Success Message From An Application Process

    Apex 3.2
    I have an on demand application process, which is resetting my application, except application items
    BEGIN
       FOR c IN (SELECT page_id
                   FROM apex_application_pages
                  WHERE application_id = :app_id)
       LOOP
          apex_util.clear_page_cache (c.page_id);
       END LOOP;
    :F270_REFRESH_INTERVAL := null;
    END;
    I have a list item that calls some javascript on page zero
    <script type="text/javascript">
    function resetapp(){
    var answer=confirm("Do you really want to reset the application ?");
    if(answer==true) {
    var get = new htmldb_Get(null, null, 'APPLICATION_PROCESS=RESET_APPLICATION');
    var gReturn = get.get();
    redirect('f?p=&APP_ID.:1:&APP_SESSION.');
    </script>
    The user clicks on the item in the list. A confirmation appear and when they click ok,
    then the on demand process runs and they are directed to page 1.
    This is all working ok.
    My problem is that I would like to display a message (a sucesss message) on page 1.
    I have an unconditional branch on page 1 with the tick box checked for include process message.
    I have tried the following in my application process, but none seem to work.
    apex_application.g_print_success_message := 'Application Has Been Reset';
    htp.prn('Application Has Been Reset');
    HTP.P('Application Has Been Reset');
    How can I do this ?
    Gus

    Can anyone help ?
    Gus

  • How to stop executing a piece of code after displaying the error message?

    Hi All
    I'm new to ADF, I am doing validation in java class. Like when i click the button, the control goes to a particular method, where i have written the below statements
    public void fetchValues(ActionEvent actionEvent){
    String firstName = getFirstName() == null ? "" : getFirstName();
    String secondName = getSecondName() == null ? "" : getSecondName();
    if(firstName.equals("") && secondName.equals(""){
    FacesContext context = FacesContext.getCurrentInstance();
    FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, null, "Please enter the values");
    context.addMessage(null, msg);
    System.out.println("Exited"); // Even if validation fails, this line is being executed. Could anyone tell me how to stop executing this line if validation fails ?
    Regards
    Venkat

    Just add a return; at the point you want to stop execution.
    public void fetchValues(ActionEvent actionEvent){
    String firstName = getFirstName() == null ? "" : getFirstName();
    String secondName = getSecondName() == null ? "" : getSecondName();
    if(firstName.equals("") && secondName.equals(""){
    FacesContext context = FacesContext.getCurrentInstance();
    FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, null, "Please enter the values");
    context.addMessage(null, msg);
    return;
    // UNREACHABLE System.out.println("Exited"); // Even if validation fails, this line is being executed. Could anyone tell me how to stop executing this line if validation fails ?
    }Timo

  • How to display success message when data is changed in the custom tab in MM

    Hi,
    I have added a new custom data tab in the MM01/MM02/MM03 transactions. Whenever I do changes to fields in the custom tab in MM02 transaction, and no changes in the standard tabs, I will get a message stating "No Changes Made".
    But if I do changes in the standard tabs, it works as usual with display of message "Changes to particular material has been done.
    Please let me know, if anyone of you know, how to display the success message if the changes to the custom tab is done.
    Thanks in advance,
    sudhanva

    Hi Sudhanva,
    The exit EXIT_SAPLMGMU_0001 is a function exit that you can use for custom validation but not to add custom tab/screen.
    But the message issued by SAP is not related to this Function Exit.
    If you have used a Screen Exit, then there must be some Function Exits also in the same Enhancement using which you can assign the value of custom fields to/from the standard structure. Thus when the value of any custom field is changed the system can understand that the some changes have been changed and will  not issue the message.
    In case you have used a BADI, there can be other methods in the BADi using whcih you can assign the value of custom fields to/from the standard structure. This might also prevent the message from being displayed.
    I could try giving you further details if you can provide the name of the Enhancement/BADi that you used to add the additional tab.
    Hope this helps.
    Regards,
    Abhisek.

  • Display Success Message in Web Service

    Hi All,
    I Have created web service for function module, when executing web service in navigator its working fine. Here Exception message display in output but success message not display. Success message working in Function Module but not display in Web service. How to display success message in web searvice.
    Code used for success message in Function Module:
    Message S001(ZMSG).
    Thanks,
    Chandra

    Hello,
    Dont think you can use custom message classes in RFC's. Try using a generic message and check if the message is being populated.
    Vikranth

  • How to display the error message on screen in display mode

    Hi all,
    How to display error message as as status message on the screen(module pool).
    The requirement is if I call the screen, it should get with the error message in the status bar. If I write with error message 'E' error mesage information displays and when I click on exit, it lives the current transaction.
    Thank you!
    Prasad

    Hi,
    Try as below.
    MESSAGE IXXX DISPLAY LIKE 'E'.
    LEAVE TO SCREEN XXXX.
    After displaying the information message like E, leave to the screen you want to navigate or can also navigate to the transaction required.
    Regards,
    Nangunoori.

  • How to make a field editable again after displaying error msg (validation)

    Dear All,
    In dialog programming, I have written a validation on a text field that it should not be left blank by the user, but after displaying the message the field becomes gray (non-editable). How can I make it editable once again after displaying the error message.
    My code is as following:
    ***INCLUDE MZFBPS1_SAVE_DATAF01 .
    *&      Form  save_data
          text
    -->  p1        text
    <--  p2        text
    FORM save_data .
    ****************Check For Empty Fields Start
    if ZFBPS_GATE_IN-truck_code is INITIAL
    or ZFBPS_GATE_IN-truck_no is INITIAL
    or ZFBPS_GATE_IN-transporter_code is INITIAL.
    MESSAGE e020(zmatlist).
    endif.
    ****************Check For Empty Fields Start
    Regards,
    Alok.

    hi,
    u can do it in chanin end chain.
    For example if there are 10 fields in the screen and for 5 fields whenever the user enters wrong values u like to give some error message. You can declare that fields in the chain enchain so that only those fields will be input enabled and all other fields will disabled.
    CHAIN.
    FIELD chk_connobj.
    FIELD chk_inst.
    FIELD chk_devloc.
    FIELD ehaud-haus.
    FIELD eanl-anlage.
    MODULE modify_screenfields.
    ENDCHAIN.
    *& Module modify_screenfields INPUT
    * text
    MODULE modify_screenfields INPUT.
    CLEAR okcode.
    okcode = sy-ucomm.
    CASE okcode.
    WHEN 'ENTER' OR 'EXECUTE'.
    IF chk_connobj IS INITIAL AND chk_inst EQ c_x AND
    chk_devloc EQ c_x.      -----------> ur condition
    IF ehaud-haus IS INITIAL.
    SET CURSOR FIELD 'EHAUD-HAUS'.
    MESSAGE e000(zo_spa) WITH text-017. " message obj
    ELSE
    loop at screen.
    if screen-name = 'FIELD_NAME'.
    field-name-input = 1. -----------> chnges to non-edit mod
    modify screen.
    endloop.
    ENDIF.
    ENDIF.
    ENDMODULE.
    Rgds
    Anver
    if hlped pls mark points

  • How to display success message after Remote service call

    Hi ,
    I am currently using Flex form for adding/updating user
    personal details.On submit button click ,i am submitting details to
    server by calling RPC remote service.For calling remote service i
    am using penneframework. On penneframework, Remote service call
    result are populated in RemoteResult object. It dont have any other
    event method for handling result event.For errror handling, i have
    defaultHandler for displaying error message.
    Here i am having two requirements
    1. I should be able to track RPC response, so that i can
    display success message to user along with DB generated ID.
    2. I need to reset all form field after receiving RPC
    response.
    Here my question is
    1.How i can track server response, so that i can display
    success or error message.
    2. Is their any event or coding technique which i can use for
    solving this issue.
    Thanks
    Kumar

    you can do following way :
    quote:
    var token:AsyncToken =
    YourRemoteClass.remoteMethod(param1,param2);
    token.addResponder(new AsyncResponder(
    function(data:Object, token:Object):void {
    // tadaaa response
    function(info:Object, token:Object):void {
    //ooooo , noo, failure
    token

  • How to display Success Message in PDF

    Hello all
    I need to display a success messgae in ODF. but without he message box.
    It should be such that, after the success, the user should not click yet see the success message.
    I got only MEssageBox. But that gives a pop up.
    Please let me know about other methods.
    Regards,
    Aditya Deshpande

    If you are using Web Dynpro then you can make use of the MessageArea control and display the messages there.
    Alternatively if you want to achieve this in Adobe itself then probably you will need to play with a text field and hide / unhide depending upon your execution.
    High level steps would be:-
    1. Create a TextField / TextArea element and bind it to the success node in your form. Initially you need to hide it.
    2. Upon submission, when the execution is complete then unhide it and show the message displayed the response you receive.
    PS: You will need this to be an Interactive Form for this to work.
    Chintan

  • How to display Success Message on the Left side of Screen

    I am displaying a Process Success Message after the ApplyMRU process, *#MRU_COUNT# row(s) updated*. By default, this message is displayed at the center of the screen. I would like to display this message at the left hand side of the screen.
    I am using APEX 4.0; Theme Sand - 10. I have tried changing the alignment for the success message position in the Page Template – One Level Tabs, HTML Body section. But I am not having any luck.
    Does anyone know how to change/override the default position for the success message?
    Thanks

    Andy,
    I tried what you suggested and the success message is still being displayed in the center of the page.
    I went to Template --> Page --> One Level Tabs. In the Header, I put the following lines before the </head>
    <style type="text/css">
    .t10messages {text-align:left;}
    </style>
    </head>
    <body #ONLOAD#>
    #FORM_OPEN#
    I do not have any other custom CSS. Just strictly using Theme 10 - Sand
    Any ideas on what else could be the reason?
    Thanks,
    DP
    Sorry for the delayed response - out for holidays.

  • Report with BDC not displaying success message when run in Background

    I am running a  BDC report in Background mode.The below statement  is not capturing the Success message when a document is posted.But when I am running the same in ForeGround mode it is capturing and is displayed in the output.Can anyone please help me in understanding why this is happening and how can I resolve this.
    CALL TRANSACTION 'MB1C' USING bdcdata MODE mode UPDATE 'S'
         MESSAGES INTO messtab.

    Hi Madhu,
    I think your BDC didnt generated any document when you run it in 'N' screen mode.
    Debug your program when you run it in background
    Goto Tcode :SM37
    Select the job ( march checkbox )
    ==> in command prompt enter 'JDBG'
    ==> Then you can start reexecting the job .
    You can check the sucess messages accordingly in debug mode
    Also add a read statement on messtab for msgtype = 'S'.
    Thanks
    Bhanu

  • How to display success message in function module

    Hi Experts,
                      I am developing new function module regarding URL finder. As per my requirement ,
                                                 If USER ID is not provided -display SUCCESS MESSAGE and Provide sy-uname.
    how to display success message.if possible can You write the code.
    Thanks
    raju

    Hello,
    We can use an exporting parameter like single character field like 'S' for success and 'E' for error instead of a message.
    Another option is you can use the Tables parameter and populate Return table with error or success message. Return table of type 'BAPIRET2'.
    Hope this might help you!
    Regards,
    MM Jaffer.

  • Process Success Message not displaying properly

    Hello.
    I know there are many threads about this problem. But i can't get it right.
    I have custom MRU process like:
    DECLARE
      p_updcount NUMBER := 0;
    BEGIN
      FOR i IN 1 .. apex_application.g_f08.COUNT                       
      LOOP
        IF apex_application.g_f08 (i) IS NOT NULL                  
          AND substr(APEX_APPLICATION.g_f20 (i),40) !=
          wwv_flow_item.md5 (apex_application.g_f07 (i),
                    apex_application.g_f08 (i),
                          apex_application.g_f09 (i),
                             apex_application.g_f10 (i),
                             apex_application.g_f11 (i),
                             apex_application.g_f12 (i),
                             apex_application.g_f13 (i),
                             apex_application.g_f14 (i),
                             apex_application.g_f15 (i),
                             apex_application.g_f16 (i),
                             apex_application.g_f17 (i),
                             apex_application.g_f18 (i),
                             apex_application.g_f19 (i)
                             )||'"  />' THEN
         UPDATE table
              SET ...
           WHERE id = ...;
          p_updcount := p_updcount + 1;
        END IF;
      END LOOP;
      :P232_UPDATE_NUMBER := p_updcount;
    END;
    {code}
    In the same process, success message looks like:
    Number of updated records: &P232_UPDATE_NUMBER. .
    Item :P232_UPDATE_NUMBER is text item.
    Even if i set default value in item, it doesn't work. Value is shown in item, but not in message.
    Message looks like: Number of updated records:  .
    Items "Source used" is set to Only when...
    If i set it to Always, ..., value doesn't appear in item.
    Any idea?
    Thanks.
    Regards,
    Dejan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    If i write code to check for updates after header, it is not necesary true that the user already updated some columns?Or am i wrong?>
    The Custom MRU has to be OnSubmit. I was talking about initialization of the Page Item
    To set the value of the item in Session State set the value using Before or After Header Computation or Process.E.g. write After Header Computation for P232_UPDATE_NUMBER > Static Assignment > 0
    . I am not referring to Custom MRU.As I said earlier, if your CustomMRU process runs you should see a number >= 0 in the message. You will need to initialize only, to say 0, only for situations when the Custom MRU does not run (condition evals to false).
    Cheers,

  • How can I display SQL%ROWCOUNT in the "Process Success Message"

    Hi all;
    I am trying to display SQL%ROWCOUNT in the "Process Success Message" of a custom update Process.
    Any ideas?

    Chris,
    I assume,
    ORDER_ITEM_LOAD.MERGE_INTELLI_LABS ( in_DEPARTMENT_UID );
    is a package / procedure you call to do something. Change the procedure and add an
    out parameter to it, which will get the
    SQL%ROWCOUNT
    value. Then, call this package like this:
    DECLARE
      in_DEPARTMENT_UID NUMBER;
    BEGIN
      in_DEPARTMENT_UID := :P4_DEPARTMENT_UID;
      ORDER_ITEM_LOAD.MERGE_INTELLI_LABS ( in_DEPARTMENT_UID,  :P4_ROW_COUNT );
    END;Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Display success message when validate is successful

    This sounds like the simplest thing but there is no box to put a success message in for validates. I have a text area that resets a database password, I would like to display "password changed successfully" in the region of the page this is on. I've tried setting and clearing some variables but they always seem to be set when I don't want them to be or vice versa.
    And yes I am new to this, as if you couldn't tell.......

    blp,
    This should not involve page validations. You should be using a page process to reset the password. Then you can check "include process success message" in the page branch definition.
    Scott

Maybe you are looking for

  • ITunes no longer opens when I plug in my iPhone - iPhoto does. Help!

    Don't know what happened - but when I plug in my iPhone to sync - iPhoto opens up - not iTunes.   I went to Help, and changed USB port, restarted computer and iPhone....  iPhoto still opens instead of iTunes.  Device only shows up on iPhoto window, n

  • Purchase Order Authorazation for line item

    Hi All, i have to restrict user to see PO line item ,whose PR not created by them. means suppose there are 5 line item for one PO created from 5 different PR. 4 PR created by user X and 1 PR created by user Y. So i dont want to display PO 4 line item

  • Signature behavior

    What exactly is a signature? I know how to use it, but I am interested in more detail. Is it a separate entity from the email body? Is it just pasted into the body? Why are there problems sometimes, such as in an older version of mail, if there was a

  • IPhone 5 stuck cycling through turn on procedure

    I have had an iPhone 5 32gb for about a week, this morning when trying to use some apps they were crashing instantly on upening so i decided to turn the phone off for a little while to see if it cleared this problem but now the phone is stuck trying

  • Adhoc Analysis in Web

    Hi, In BW 3.1 when we used the 'display query on the web'button, it showed tool bar from which we can create new query etc. We are not able to see it in the new SAP Netweaver Installation. Does anyone know what we are missing? Pls help. Thanks Suja