How to Display Confirmation message when data is stored in DB ?

Hello.
I am persisting user entered data to database table. But I want to display custom message like "Stored successfully" or "Not Stored".
I am using following approach in my controller and AM impl
in PFR:
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean) ;
am.invokeMethod("insertDataToDeviceDetailsTable") ;
in AM Impl :
public void insertDataToDeviceDetailsTable(){
getDBTransaction().commit();
//delegating control to Device Details Page
How to do it ? and also what is the best way to show messages in this scenario. As in some pages a dialogue box appears and the page become inactive.
waiting for reply..
Regards,
Ajay

Hi,
You can pint message after am.invoke method:
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean) ;
am.invokeMethod("insertDataToDeviceDetailsTable") ;
throw new OAException("Stored successfully", OAException.INFORMATION);
in AM Impl :
public void insertDataToDeviceDetailsTable(){
getDBTransaction().commit();
--Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • 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.

  • How to display confirmation message in SPItemEventReceivers

    Is there a way to display confirmation message in ItemAdding event?
    I would like to display confirmation message and based on user input proceed with the other steps.
    public override void ItemAdding(SPItemEventProperties properties)
      // Display confirmation message
      if(OKClicked)
     // Do something
      else
      // Cancel Operation
    Thanks in advance,
    dhijit

    http://sharepoint.stackexchange.com/questions/32055/creating-event-handler-feature-ondeleting
    http://social.technet.microsoft.com/Forums/lync/en-US/39115b48-873b-462e-aa16-a7f7ce5c91d8/sharepoint-2013-online-office-365-list-item-added-event-receiver-how-to-sow-confirmation-message?forum=sharepointdevelopment
    http://social.msdn.microsoft.com/forums/sharepoint/en-US/2941f80e-37c9-4b83-a41c-a9cc712d2e18/display-message-from-itemadded-event-receiver
    http://sharepoint.stackexchange.com/questions/65858/confirmation-message-as-a-popup-for-itemupdating-in-event-receivers
    http://stackoverflow.com/questions/11999312/popup-alert-message-using-event-receiver-in-sharepoint-2010

  • How to disable confirmation message when submitting a pdf form

    How do I disable the confirmation mesage, so that the user does not get at message like " you form has been recieved"  each time data is submitted?
    The reason for my question, is that i have a pdf form that i'd like to fill out offline, store the settings (data) in an array and the when I get online again run a loop that populates the form with the values storen in my array and submits them one at the time to formscentral.
    I'm able to make the loop work just fine, however I do not want to see the confirmation message each time data is submitted,  because my loop is paused each time the confirmation message appears, and the only way to resume it, is to click "ok".
    Hope someone can provide me with some help here

    Hi,
    >>however I do not want to see the confirmation message each time data is submitted,  because my loop is paused each time the confirmation message appears, and the only way to resume it, is to click "ok". 
    Sorry, disabling the confirmation message is not possible.  The confirmation is always enabled.
    Thanks,
    Lucia

  • Problem in Displaying  Confirmation message when (retain am=false)

    i have a scenario wherein after committing the records,i need to redirect to a new page,with the confirmation messages.but ,to avoid stale data erorr,i have to make "retain am" parametere as "false".
    now the messages are not thrown on the next page if the reatinam is false.
    any workaround

    In PFR:
    pagecontext.putParameter("SuccessMsg", "ALV_QA_NCR_CREATE_CONFIRM");
    pagecontext.putParameter("NcrNumber",Param_NcrNumber );
    pageContext.forwardImmediately("OA.jsp?page=/alv/oracle/apps/qa/ncr/webui/XXALVACTIONS_PG&OAHP=XXALV_QA_HOME&OASF=XXALV_QA_UPDATE_ACTIONS",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    false, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    in PR of the new Page:
    String vMsg= pageContext.getParameter("SuccessMsg");
    if(vMsg!=null)
    Number ncrNum = (Number) pageContext.getParameter("NcrNumber");
    MessageToken[] tokens = { new MessageToken("NCRNO", Param_NcrNumber)};
    OAException confirmMessage = new OAException("QA", vMsg, tokens,
    OAException.CONFIRMATION, null);
    throw confirmMessage;
    Regards
    Sumit

  • How to display a message when no data found in report

    Hi all
    i have report with few user parameters
    when i run the report and no data found then i want a message
    Please Guide
    thanks And Reagds
    Vikas Singhal

    Hi,
    one solution is to
    1) create a summary column CS_COUNT where you count the number of records returned by your query (Function: count, Source:any field of your dataset Reset at:Report)
    2) create a text area where you say for example "No records found...", and enclosing it in a frame.
    3) Create format trigger for the frame like
    IF :CS_COUNT = 0 THEN
    return (TRUE);
    ELSE
         RETURN (FALSE);
    END IF;
    OR, if you launch your report from a form and you want a popup message, you can create a before report trigger like:
    if :CS_count = 0 then
    srw.message(1000, 'your message');
    raise srw.program_abort;
    return(false);
    else
    return(true);     
    end if;

  • How to display confirm message in APEX pl/sql process

    I have a pl/sql process that selects success messages from a database table. These messages need to be displayed to the user and confirmed (only one button, to acknowledge/dismiss the mssage) along the way.
    Is there a way to do this within the process? I see lots of examples in the Forum of doing this in javascript (which I know very little about) but suspect there must be a simple way to do this in my pl/sql process.
    Help?
    Thanks,
    Carol

    Hi Carol,
    You can put you success messages inside page items or application items (when pages are rendered or processed...).
    Then using :
    1) javascript can display these values
    2) rendering the page can display these values
    Hope this help
    Louis-Guillaume
    Homepage : http://www.insum.ca
    InSum Solutions' blog : http://insum-apex.blogspot.com

  • How to display error message when writing into Header text of VA02

    Hi All
    I have a requirement. I have a header text 'English' in VA01/VA02 transaction. I need to put a condition that whenever the user log-in is English language, then only he should be able to write text into that HEADER text 'English', else it should not allow the user to write anything.
    Is it possible to be done through any ABAP coding.
    Kindly help
    thanks and regards
    shilpa

    Hi
    Yes u can, but I think it's not easy to understand which language was used to write a text.
    U can use the fm READ_TEXT in order to get the text, but then I don't how u can decide if the text is in English or French or Italian...
    Max

  • How to display a message in an audit report?

    hello all,
    i would like to ask how do display a message in an audit report.  here is my code...
    CALL TRANSACTION tcode USING i_bdcdata
                            MODE c_n
                            MESSAGES INTO i_error2.
    IF sy-subrc EQ 0.
    ENDIF.
    CLEAR i_error2.
    LOOP AT i_error2.
      IF i_error2-msgtyp EQ c_e.
        MOVE v_pernr TO i_bdcerror2-pernr.
        MOVE c_infotype TO i_bdcerror2-infty.
        MOVE 'Error' TO i_bdcerror2-msgtype.
    <b>    SELECT SINGLE text
          INTO v_msgtxt
          FROM t100
          WHERE sprsl = i_error2-msgspra
          AND arbgb = i_error2-msgid
          AND msgnr = i_error2-msgnr.
        MOVE v_msgtxt TO i_bdcerror2-msgtxt.</b>
        APPEND i_bdcerror2.
      ENDIF.
    ENDLOOP.
    DESCRIBE TABLE i_bdcerror LINES v_bdcerrors.
    IF v_bdcerrors <> 0.
      SKIP 1.
      WRITE: 'BDC Error Report'.
      SKIP 1.
      WRITE: 'PERNR',
             'INFOTYPE',
             'MESSAGE TYPE',
             'MESSAGE TEXT'.
      ULINE.
      LOOP AT i_bdcerror.
        WRITE: / i_bdcerror-pernr,
               13 i_bdcerror-infty,
               22 i_bdcerror-msgtype,
               35 <b>i_bdcerror-msgtxt</b>.
      ENDLOOP.
    ENDIF.
    the message text that i was getting contains &1, &2 and so on.  how would i be able to replace it with the original value?
    thanks!
    -ann

    After calling the transaction, this is what I do.
    a) Call the function module, <b>MESSAGE_TEXT_BUILD</b> and pass the following values from <b>BDCMSGCOLL</b> or the internal table where you collect the messages.
       i) MSGID
      ii) MSGNR
    iii) MSGV1
      iv) MSGV2
       v) MSGV3
      vi) MSGV4
    There is no need to fetch data using select from table t100.
    It builds the message and returns in MESSAGE_TEXT_OUTPUT which can be then displayed to user.
    Regards,
    Subramanian V.

  • How to display the message along with a value using BBP_CHECK_BADI

    Hi Gurus,
    I need to display a message dynamically when the user create's a shopping cart. I am using Check_badi for this. i.e., I need to display the buyer number and amount left for him dynamically. I am storing both of them in variables and don't know how to display the messages laong with some message " the amount left for <XXXXXX> is <$$$$$$$$>". Can you help me out.
    Thanks,
    Neelima

    Hi,
    you can use the function module 'BBP_PD_MSG_ADD'. This is the function module normally used for the displaying the error messages in SRM.
    See wether you can use already available error messages , use the transaction SE91 , and the message class being BBP_PD

  • How to display list process, when i run sql*loader in c#

    Hello,
    How to display list process, when i run sql*loader in c#. I mean when i run sql*loader from cmd windows, i get list process how many row has been inserted. But when i run SQL*Loader from C#, i can't get process SQL*Loader.
    This is my code:
    string strCmd, strSQLLoader;
    string strLoaderFile = "XLLOAD.CTL";
    string strLogFile = "XLLOAD_LOG.LOG";
    string strCSVPath = @"E:\APT\WorkingFolder\WorkingFolder\sqlloader\sqlloader\bin\Debug\8testskrip_HTTP.csv";
    string options = "OPTIONS (SKIP=1, DIRECT=TRUE, ROWS=1000000,BINDSIZE=512000)";
    string append = "APPEND INTO TABLE XL_XDR FIELDS TERMINATED BY ','";
    string table = "OPTIONALLY ENCLOSED BY '\"' TRAILING NULLCOLS (xdr_id,xdr_type,session_start_time,session_end_time,session_last_update_time,session_flag,version,connection_row_count,error_code,method,host_len,host,url_len,url,connection_start_time,connection_last_update_time,connection_flag,connection_id,total_event_count,tunnel_pair_id,responsiveness_type,client_port,payload_type,virtual_type,vid_client,vid_server,client_addr,server_addr,client_tunnel_addr,server_tunnel_addr,error_code_2,ipid,c2s_pkts,c2s_octets,s2c_pkts,s2c_octets,num_succ_trans,connect_time,total_resp,timeouts,retries,rai,tcp_syns,tcp_syn_acks,tcp_syn_resets,tcp_syn_fins,event_type,flags,time_stamp,event_id,event_code)";
    strCmd = "sqlldr xl/secreat@o11g control=" + strLoaderFile + " LOG=" + strLogFile;
    System.IO.DirectoryInfo di;
    try
    System.Diagnostics.ProcessStartInfo cmdProcessInfo = new System.Diagnostics.ProcessStartInfo("cmd.exe");
    di = new DirectoryInfo(strCSVPath);
    strSQLLoader = "";
    strSQLLoader += "LOAD DATA INFILE '" + strCSVPath.ToString().Trim() + "' " + append + " " + table;
    StreamWriter writer = new StreamWriter(strLoaderFile);
    writer.WriteLine(strSQLLoader);
    writer.Flush();
    writer.Close();
    // Redirect both streams so we can write/read them.
    cmdProcessInfo.RedirectStandardInput = true;
    cmdProcessInfo.RedirectStandardOutput = true;
    cmdProcessInfo.UseShellExecute = false;
    cmdProcessInfo.LoadUserProfile = true;
    //System.Diagnostics.Process.Start("CMD.exe", strCmdLine);
    // Start the procses.
    System.Diagnostics.Process pro = System.Diagnostics.Process.Start(cmdProcessInfo);
    // Issue the dir command.
    pro.StandardInput.WriteLine(strCmd);
    // Exit the application.
    pro.StandardInput.WriteLine("exit");
    //Process[] processlist = Process.GetProcesses();
    //foreach(Process pro in processlist){
    Console.WriteLine("Process: {0} ID: {1}", pro.ProcessName, pro.Id);
    Console.WriteLine(pro.StandardOutput.ReadLine());
    // Read all the output generated from it.
    string strOutput;
    strOutput = pro.StandardOutput.ReadToEnd();
    pro.Dispose();
    catch (Exception ex)
    return;
    finally
    Thanks.

    friend
    sqlldr is an application residing in the OS. procedure runs in the dbms engine.
    you cannot run an os command directly from a procedure or a function or a package .
    If you want to do so you need to use either a daemon process created by a PRO*C program
    or a JAVA stored procedure to do so.
    just refer to previous question forums, you can find the solution. Somebody has already given a solution using
    java to run an OS command . check it out
    prakash
    [email protected]

  • How to display error message in Shopping Cart?

    How to display error message in Shopping Cart and stop the shopping cart for further processing? I try MESSAGE w001(zshop) or MESSAGE e001(zshop). But it is causing run-time error.

    Hi Paul,
    In the DOC_CHECK or DOC_SAVE BADI, you have a global internal table named et_messages. The structure of this table is 'bbp_smessages_badi'. You can append your error message here by inputting the message type, ID and number. The message type is either 'E' for error or 'W' for warning and the number would depend on your message class(ID). You will be able to see the error message on top of the screen, can be a red or yellow highlight depending on your appended message. I don't think creating the error message via the MESSAGE syntax will be successful, maybe this is why you are getting a runtime error.
    Regards,
    Noel

  • 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.

  • How to display a message dialog box

    I need to know how to display a message box from my application.
    Anyone can help me?
    Thanks in advance

    Dear Zennen,
    Use JOptionPane.
    Ex
    JOptionPane.showMessageDialog(this,"message","title",JOptionPane.INFORMATION_MESSAGE); Thanks
    Joey

  • How to display the Message Pool Messages in CE 7.2

    Hi Experts,
    Please let me know how to display the Message Pool Messages in CE 7.2.
    I have tried with reportContextAttributeMessage, but it is deprecated in CE 7.2.
    Please do the needful.Its Urgent.
    Thanks & Regards,
    SatheshKumar R

    Hi Sathesh,
    Do the following steps:
    1.) After creating a component, under it you will see Message Pools. Double click and open it.
    2).Click "Add Message" and add a new message. (Give a message key, type of message (either warning, error etc ) and message text).
    3). Save the metadata.
    4). Raise this message where all you want by using following code(For example, on click of a button) :
          IWDMessageManager msgnr = wdThis.wdGetAPI().getComponent().getMessageManager();
          msgnr.reportMessage(IMessage<component name>.<message>,null,true);
    For example, I have a component name TestAppComp and under message pool I have message called message1, then use lik this:
            IWDMessageManager msgnr = wdThis.wdGetAPI().getComponent().getMessageManager();
            msgnr.reportMessage(IMessageTestAppComp.MESSAGE1,null,true);
    Reply me if you any doubt.
    Regards,
    Jithin

Maybe you are looking for

  • Error in deploying a jar file on JBOSS

    What could be the error here ? 12:49:30,643 INFO [URLDeploymentScanner] Started 12:49:31,074 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.2.1_tomcat-4.1.24/server/all/conf/jboss-service.xml 12:49:31,094 INFO [Server] JBoss (MX MicroKernel)

  • 2012 to 2014 Upgrade Not Working

    I downloaded the SQLEXPRADV_x64_ENU version of MS SQL Server (I am running the 2102 Version on a Windows 8.1 PC).  When i ran the upgrade wizard it all ran ok -except that MS SQL 204 Server isn't there -the machine is still running the 2012 version a

  • Some images saved in Photoshop CS will not open in Photoshop 6

    We have confirmed that some files saved from Photoshop CS will not open in Photoshop 6. This is due to a bug in Photoshop 6, not in CS. These files open correctly in Photoshop 3, 4, 5, 5.5, 7 and CS on both platforms. The solution is to upgrade the c

  • Similar to below message

    Hey, I just got the new Gen5 iPod TODAY and I haven't been able to use it because it keeps giving me problems. For starters, it wouldn't open on my computer just like the guy in the discussion below this one said. It won't be recognized by either my

  • "Volume needs Repair" -Disk Utility--what do i do?

    So, my computer was freezing & I had the insight to run Disk Utility on the Repair part, everything comes up great, but on verify, under "Network"--Volume comes up needing repair. I looked it up under About the Mac & see that Volume is empty of info.