Showing error messages on click of Save button only

Hi,
Generally SAP web client GUI is showing the error message on pressing of Enter button (or) picking up any data field and stepping out of it. We want to show error messages for mandatory fields only when user clicks on Save. How can this be done in SAP web client GUI?
Regards
--Hari

Hi Hari,
If you want to raise an error message on save. Try this.
method eh_onsave
DATA: lr_msg_service    TYPE REF TO cl_bsp_wd_message_service.
  DATA: ls_msg_no TYPE symsgno.
if ( condition failed)
  lr_msg_service = me->view_manager->get_message_service( ).
    lr_msg_service->add_message(
    iv_msg_type       =  'E'
    iv_msg_id         = 'Z_MSG_CLASS'
    iv_msg_number     = ls_msg_no ).
exit the method once the error message is raised
exit
endif.
end method.
Note : specify the message class and message number in the add_message menthod.
Hope this was helpful.
Best Regards,
Lakshminarayana

Similar Messages

  • Error Messages on clicking the previous button from the review of PCR.

    Hi,
    When we fill the PCR form and review it. it works fine.
    Once i click the 'previous' button from the review stage, A pop up window with title - 'Adobe Reader' comes up which says - 'Message limit exceeded <a number> errors not reported'.
    Does this have to do with the Action methods of this button.
    This is common across all forms including the standard forms delivered by SAP.
    Any pointers or duggestions to this will be highly appreciated.
    s/m - NW2004
    reg: ISR Adobe forms
    Kindly help.
    Regards,
    Anto

    Hi Anto,
    i've seen this message too in the ISR scenario on NW2004. It is related to the Active Component Framework (ACF). Please try installing the most recent xACF file. See note 766191 for more info and a link to the file for SP18.
    kind regards,
    Marijn Sponselee

  • Getting error message while clicking on proposal button in Automatic Py.Pr

    When trying run Automatic payment program, clicking on proposal , getting error message "Company codes SAG1/SAG1 do not appear in proposal 12.05.2010 SAG1;correct"
    Please help me in resolving this error message.

    Hi Sagar,
    This may happen when the particular line items are entered in another proposal and not exequted fully.
    So system will block these line items in old app run and will not allow in new app.
    you can over come by exequting the old APP run or deleting values in previous APP run and run new APP.
    Regards
    babu.

  • af:message sometimes does not show error message

    Have a page that has a popup to show some information.
    In page, used this to show error message that occured during save.
              <af:messages globalOnly="true" inline="true"  inlineStyle="padding:10px;" id="m4"/>
    In popup, used this to show error messages that occurred while performing some action.
              <af:messages globalOnly="true" inline="true" id="m2"/>
    Whenever any error occurs while performing some action in page, error message is shown.
    Then open the popup
    Whenever any error occurs while performing some action in popup, error message is shown properly in popup
    But after closing popup, not able to show any error message in page. In bean error message is added to FacesContext, but not shown in UI.
    What would be the problem here?
    JDev version: 11.1.1.6.0
    Thanks,
    Bhaskar Pola

    Thanks Vinay for the link. However still facing the issue.
    This method will be invoked from page.
        public void onDelete(ActionEvent actionEvent) {
            RowKeySet rksSelectedRows = table.getSelectedRowKeys();
            int count = rksSelectedRows.getSize();
            if(count == 0){
                FacesContext facesContext = FacesContext.getCurrentInstance();
                facesContext.addMessage(null,
                                        new FacesMessage(FacesMessage.SEVERITY_ERROR,"Atleast one row should be selected.",null));
                facesContext.renderResponse();
            } else {
               ADFUtils.showPopup(deletePopup);
    This method will be invoked from popup withing same page.
        public void multipleSelListner(ActionEvent actionEvent) {
            List<String> list = (ArrayList<String>)ADFUtils.getPageFlowValue("selList");
            try {
                if(list != null && list.size() > 0){
                    if(list.size() > 25){
                        error = true;
                        FacesContext facesContext = FacesContext.getCurrentInstance();
                        facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR,
                                                "Maximum 25 items can be selected.", null));
          facesContext.renderResponse();                                           
                        return;
            } catch (SQLException e) {
                System.err.println(e.getMessage());
                e.printStackTrace();
    I have removed some extra code...
    Looks like problem is with 2 af:message tags. When popup shown with error message second af:message within popup gets preference. Subsequent messages are pointed to that one.
    May be related to unloading popup content from document. Not sure though.
    Thanks,
    Bhaskar

  • How to update Ipad 2 from IOS 4.3.5 to IOS 5. Itunes won't let me do it because it keeps showing error messages asking me to check if my network is active.

    how to update Ipad 2 from IOS 4.3.5 to IOS 5? Itunes won't let me do it because it keeps showing error messages asking me to check if my network is active.

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 7.1.2. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    You can no longer update to iOS 6.x, or down grade the iOS.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and antivirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 7.x, the next update can be installed via wifi (i.e., not connected to your computer).
    Tip 2 - If you're updating via wifi, place your iPad close to your router to preclude getting a corrupted download.
    How to Upgrade to iOS 7
    The iOS 7.0 update requires around 2.5 GB of storage space, so if your iPad is almost full, you may need to clear up some space. You can check your available space in Settings -> General -> Usage.
    There are two ways to upgrade to iOS 7: You can use your Wi-Fi connection, or you can connect your iPad to your PC and update through iTunes. We'll go over each method.
    To upgrade using Wi-Fi:
    Note: If your iPad's battery is under 50%, you will want to plug it into your charger while performing the update.
    Go into the iPad's Settings.
    Locate and tap "General" from the menu on the left.
    The second option from the top is "Software Update". Tap this to move into the update settings.
    Tap "Download and Install". This will start the upgrade, which will take several minutes and will reboot your iPad during the process. If the Download and Install button is grayed out, trying clearing up some space. The space required by the update is mostly temporary, so you should gain most of it back after iOS 7 is installed.
    Once the update is installed, you may have to run through the initial steps of setting up your iPad again. This is to account for new features and settings.
    To upgrade using iTunes:
    First, connect your iPad to your PC or Mac using the cable provided when you purchased your device. This will allow iTunes to communicate with your iPad.
    You will also need the latest version of iTunes. Don't worry, you will be prompted to download the latest version when you launch iTunes. Once it installs, you may be asked to setup iCloud by logging into your iTunes account. If you have a Mac, you may be prompted on whether or not you want to enable the Find my Mac feature.
    Now you are ready to begin the process:
    If you upgraded iTunes earlier, go ahead and launch it. (For many, it will launch automatically when you plug in your iPad.)
    Once iTunes is launched, it should automatically detect that a new version of the operating system exists and prompt you to upgrade to it. Choose Cancel. Before updating, you will want to manually sync your iPad to make sure everything is up to date.
    After canceling the dialog box, iTunes should automatically sync with your iPad.
    If iTunes doesn't automatically sync, you can manually do it by selecting your iPad within iTunes, clicking on the File menu and choosing Sync iPad from the list.
    After your iPad has been synced to iTunes, select your iPad within iTunes. You can find it on the left side menu under Devices.
    From the iPad screen, click on the Update button.
    After verifying that you want to update your iPad, the process will begin. It takes a few minutes to update the operating system during which time your iPad may reboot a few times.
    After updating, you may be asked a few questions when your device finally boots back up. This is to account for new settings and features.
     Cheers, Tom

  • Report is Blank after Click on Save button

    Hi All,
    I am having a Real Time Infocube, which is been used by Monthly and Yearly report separately using different Aggregation Levels.
    During Monthly report testing, I made changes in Yearly Report (common for monthly as well) and clicked on SAVE button.
    As a result, a new request generated into the Cube, whereas my old request (yellow one) was still there and was containing only 700 records.
    Step1:
    Now,  after that when I activated aggregation level. The output of the report was blank.
    Same thing happened with monthly report also.
    Step2:
    So, I deleted that new request from Cube after changing its behaviour from Planned mode --> Load mode.
    Now, when I tried to get it back. It was asking me to green the existing request (old request).
    Step3:
    when the cube was containing only old yellow request (before changing the behaviour) monthly report was showing me correct data. But, Yearly report was blank.
    So, I manually green the request and changed the behaviour to Planned mode.
    Whereas, Now (after changing behavior to Planned mode) both reports are blank.
    Please help!!
    Best Regards,
    Jatin

    Hi,
    first you the correct settings in transaction RSDIPROP for your InfoCube:
    On tab 'Roll Up' you should set the flag Set Quality Status to OK Automatically.
    Second delete the cache for the planbuffer query; the name of the plan buffer queries are as follows
    - if your aggregation level is defined on InfoCube CUBE the name is CUBE/!!1CUBE
    - if your aggregation level is defined on MultiProvider IPROV the name is IPROV/!!1IPROV
    - if you are using a query on a MultiProvider containing aggregatiion levels delete also the cache of the query.
    Now check the values of your query again.
    Note 1136163 contains the recommended cache settings in RSRT.
    Regards,
    Gregor

  • While trying to run it show error message : "The application or DLL C:\Program Files\Mozilla Firefox\sqlite3.dll is not a valid Windows image. Please check this against your installation diskette

    Just updated firefox. While trying to run it show error message : "The application or DLL C:\Program Files\Mozilla Firefox\sqlite3.dll is not a valid Windows image. Please check this against your installation diskette." Tried to download and install new firefox, but it alway show that the file is corrupt
    == Today ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)

    Do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    You can skip the step to create a new profile, that is not necessary for this issue.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • Throw a popup message just after pressing SAVE button?

    Hello
    I want to throw a message IMMEDIATELY after clicking the SAVE button by user, so, i put JS as below in the Pre-Save event of the form, but its not working, directly am getting the file-download manager dialog box, pls. let me know how to achieve my requirement?
    app.alert ("Pls. dont forward this file after saving on your local machine, its against norms")
    Thank you

    Try
    below script on  javaScript and PreSave event of the form
    xfa.event.cancelAction = 1;
    xfa.host.messageBox("Pls. dont forward......");
    Regards,
    Jay

  • When a third party program creates a new Google calendar event using a http link I cannot click the save button in Firefox 9.01 or 10b2.

    I use a TV listings program called DigiGuide. This has a script that opens a new Google Calendar event page in my browser for a specified TV program with all fields already completed. I then just have to click the SAVE button on the Google Calendar site to save the event - but since updating to 9.01 from 8.xx this button and others (Discard, Search) has no effect, although the cursor changes when over the button as if it recognised a link. Opening the same page in Chrome works fine. I have also noticed that Calendar's other buttons (e.g. next/previous period) can stop working on the main Calendar page, which I have as a pinned tab - in this event navigating away from Calendar and back again regains that functionality. The issue persists in Firefox 10b2.

    Further investigation reveals this only happens when the event is created from within WP native calendar app and disappears when I make an edit to the event in any other calendar client including Google web. So a more appropriate description of the problem would be:
    "Native calendar app keeps subtracting 1h off a Google calendar event on EVERY edit"
    Create an event at 2013/07/17 15:00 in WP native calendar app. Result: Event shows as 2013/07/17 15:00 in the calendar app for a few seconds, then updates itself to 2013/07/17 14:00.
    Edit the event title and save in WP native calendar app. Event time moves by -1h again to 2013/07/17 13:00.
    Edit the event title in Google web calendar.
    Subsequent edits in WP native calendar do not mess up the time any longer. If I fix the time to what I originally intended (2013/07/17 15:00) in WP native calendar app, it stays there and shows correctly in all previously mentioned calendar viewers.
    I just learned that Lumia 925 was released with GDR2 update pre-installed. This update is only now being made generally available. If the issue is secific to the CalDAV implementation in GDR2 rather than specific to my phone only, this would make a lot of angry people. I hope I'm wrong on this though as it's an extremely frustrating problem.

  • When trying to install nwds tool , showing error message not properly insta

    hi ,
    when i am trying to install nwds in system, it showing error message at the end stage.
    The following program files could not be registered:
    *     c:\windows\sapwksta\setup\splash.dll*
    *     c:\program files\common files\sap shared\wdadobecontrol.dll*
    *     c:\windows\system32\librfc32.dll*
    *     c:\program files\common files\sap shared\sapchart.ocx*
    The installed applications may not function correctly until all program files are successfully installed.
    what is the problem. when i am click on nwds icon on desktop, it showing error message
    c:\program files\sap\ide\ide7.0\eclipse\sapide.exe is not valid wid 32 applicaiton.
    i installed java and gave environment variables settings . it is not a problem.
    please give reply

    Hi Sujana,
    I am also faced the same issue when I install the NWDS softward.
    Reason: Maybe you have install higher version NWDS.Beside that SAPGUI will also use librfc32.dll.
    Solution: Please delete librfc32.dll in c:\windows\system32 and install again
    I have did the same thing, itsh installed successfully.
    Hope it shold works fine.
    Regards,
    Venkata Ramireddy

  • Message on clicks on standard button of alv in webdynpro

    Hi experts,
    I want to show message on clicks on standard button of alv in webdynpro.

    Hi Rohit..
    Also check this...
    http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproABAP-ALVControllingStandard+Buttons
    Cheers,
    Kris.

  • When attempting to buy an app, iam asked to update my security questions. When I submit these I get an error message saying unable to save data.

    When attempting to buy an app, I am asked to update my security questions. When I submit theses I get an error message saying unable to save data.

    Hi,
    Go here:
    https://appleid.apple.com/
    Then click on "Manage my Apple ID" so you can update these security questions and ensure all your data is up to date. Including rescue emails.
    Regards,
    C

  • Session should logoff on click of save button in webgui window

    Hi All
    I am directly changing section 80 details using WEBGUI ervices( PA30 tcode with infotype 585 in change mode) WITH BELOW URL
    'http://XXXXXXXXXXXXXXX/sap/bc/gui/sap/its/webgui?~transaction=*pa30%20RP50G-PERNR=' lv_aempid
    ';RP50G-choic=0006;RP50G-SUBTY=4;RP50G-begda=01.01.1800;RP50G-endda=31.12.9999;DYNP_OKCODE=CHG'
    So user able to change their details using above URL, but when user clicks on save button, it is showing PA30 main screen..I want o know how to avoid this screen...
    My requirement is when user clicks on Save button, it should save and logoff from session.*
    Regards
    Srinivas

    Try to use CALL FUNCTION 'ITS_END_SESSION' in the user-exit.
    Of couse you must check that it is webgui session (not sapgui).
    Hope this helps

  • How to show error message in a report program

    Hello Guys,
    I am making a report using smartforms. I am successful in showing data  but problem is if if i put a value in parameters that does not exist is database, the smartform runs and related fields shows as empty fields. But the form is running. I want to show error message if the parameter values dose not matches with the database values. The message will show as Document not exists
    So i used related error msg here like
    if sy-subrc ne 0.
              message e357.
               endif.
    But it is not working for passing values to smartform. It works if i use in classical report. Plz help me on this issue.
    Thanks,
    Rosaline.

    >
    Rosaline. wrote:
    > Thanks all for reply.  Should i have to use message before call function 'SSF_FUNCTION_MODULE_NAME' ? I tried it but not working.
    >
    >
    if it_final[] is not initial.
    >*             if sy-subrc ne 0. ---> "Remove this condition check, it not required
    >            Message e000(8i) with 'Parameter value not found'.
    >            endif.
    > *            endif. ---> "remove this
    >
    Hi,
    Sy-subrc doesnt need to be validated here, remove that If condition and check again.
    Regards,
    Karthik D

  • Crystal Report/STRUTS: Error (404) when clicking on Control Buttons (Print, Export, Next, Previous, etc...) on report viewer

    Post Author: jwenny
    CA Forum: Deployment
    Need help badly!!!
    We are using the crystal reports plugin for STRUTS.
    We are able to display the report in the crystal report viewer.  However, when we click any control buttons (print, export, etc...), then we get:
    JSPG0036E:  Failed to find resource /Report-viewer.jsp
    We then moved Report-viewer.jsp to the WebContents folder (root directory) and got a different error when we clicked any control button:
    Error:  400 page not found
    Does anyone know how to solve this problem?  For instance, is there a setting or parameter that needs to be set?
    Greatly appreciate any help!

    HI,
    Whenever we print the viewer does an auto postback, I believe due to this some of the values are getting missed. Moreover we are referring to the viewer and reportdocument object, it seems. So can you try this simple code in an application to see if it helps:
    ReportDocument rdoc = new ReportDocument();
    rdoc.Load("C:\TASKECrystalReports\Intraday.rpt");
    rdoc.SetDatabaseLogon("uid","pwd");
    rdoc.SetParameterValues("parameter name","value");
    CrystalReportViewer.ReportSource = rdoc;
    Helps?
    Thanks.

Maybe you are looking for

  • J1IEX post than made error like does not contain any selectable items

    Respected Sir, We have purchase the Goods From SEZ unit and it wil be treated as import made. We doing the following activities 1. Prepared the Import P.O. 2. released the same P.O. 3. Doing the MIRO for Custome Vendor 4. Capture the J1iex than we fi

  • View Usage missing information

    I am the account owner, and yesterday I was checking text message information on one of the lines.  There were quite a few text messages that were shown on one of the lines that are no longer there today.  All the other lines appear to be fine, just

  • Regarding transfer LSMW from one system to another

    Hi experts,    I have a LSMW project, subprojects and objects in a system. I have to transfer or upload the entire LSMW project into another system with all its rules and recordings.    I tried with export and import option on LSMW. But only the text

  • Help files

    Why is it that when I select Numbers Help from the Help menu, all I get is a Help window with some highlighted items but when I click on any of them, nothing happens?!! Where are the Help files stored? Are the links on the help page links to local fi

  • Can I use an iMac G5 (with built-in iSight) with an external iSight as well

    I like the built-in iSight for chat and video conferencing but I need to use an external webcam for capturing objects. Can I use an external iSight with my iMac with built-in iSight?