Send error message on Portal

In EHSM3.0 I am enhancing method process_event of class CL_EHFND_FBI_GUIBB_FORM to do some validations before data gets saved.
I set the following method parameter if user enters incorrect data:
ev_result = if_fpm_constants=>gc_event_result-failed.
With this the processing stops & data is not saved but I want to send back error message on portal.
I am trying to get message managaer using attribute MO_CONTROLLER of the class CL_EHFND_FBI_GUIBB_FORM but no success.
How to achieve this? Can someone help?

Dear Viswa,
You can find in the umelogonbase.jar file under com.sap.portal.runtime.logon par file.
Please refer to below blogs :-
Modifying The Logon Par(or customising the Logon Screen)
Portal Customizations Intro - Login Part 1
Hope it will helps
Best Regards,
Arun Jaiswal

Similar Messages

  • Custom Error message in portal

    HI Experts,
    I trying to implement cutom error messages in portal. By Following the below link.
    [https://cw.sdn.sap.com/cw/community/docupedia/nw70java/blog/2010/03/21/custom-error-messages-in-the-portal]
    As of now I trying to implement it for error code "500".
    <error-page>
                 <error-code>500</error-code>
                 <location>/Customerrors/500.html</location>
           </error-page>
    </web-app>
    The above code I pasted in web.xml. 500.html is there in customerrors folder. I have also restrated the system.
    when I log in to portal system still I could see standard message coming for "500" code error not the custom one from 500.html.
    Iam using EP7.0 EHP1 .
    Thanks
    Surender Singh Dahiya

    Surender,
    I guess it should work in the similar fashion.However, I do not have access to a portal system now. Will try testing the scenario soon and keep you posted.
    Cheers!
    Sandeep Tudumu

  • Display an error message in Portal during creation of Object Link

    Hi,
    I have a requirement where I need to throw an error message in Portal during creation of Object Link.
    The requirement is whenever the user clicks on Item and try to create a Object Link for Material-Plant combination, if the Mat-Plant combination exist, than I have to throw/display an error message.
    I tried for some enhancements in BAPI_BUS2172 but it does not work out.
    Please help.
    Thanks in advance.
    Arbind

    Hi,
    If you include the UI, it will display at the top of the screen..
    Please see below how to create a message in the message editor.
    http://help.sap.com/saphelp_nw04/helpdata/en/72/1d6526263ff24995016a152705eab2/frameset.htm
    and this is how you access the error message in the application ti display it to the end user
    http://help.sap.com/saphelp_nw04/helpdata/en/72/1d6526263ff24995016a152705eab2/frameset.htm
    Regards,
    Ganesh N

  • When i do initial set up w creative cloud set uo wont run send error message"installer failed to initialize" why and how can i get pass this

    When I do initial set up with creative cloud set up it wont run a send error message "installer failed to initialize" comes up. Why and how can I get passed this?

    Error "Installer Failed to Initialize" | Install desktop application | Windows

  • Best Practices Question: How to send error message to SSHR web page.

    Best Practices Question: How to send error message to SSHR web page from custom PL\SQL procedure called by SSHR workflow.
    For the Manager Self-Service application we’ve copied various workflows which were modified to meet business needs. Part of this exercise was creating custom PL\SQL Package Procedures that would gather details on the WF using them on custom notification sent by the WF.
    What I’m looking for is if/when the PL\SQL procedure errors, how does one send an failure message back and display it on the SS Page?
    Writing information into a log or table at the database level works for trouble-shooting, but we’re looking for something that will provide the end-user with an intelligent message that the workflow has failed.
    Thanks ahead of time for your responses.
    Rich

    We have implemented the same kind of requirement long back.
    We have defined our PL/SQL procedures with two OUT parameters
    1) Result Type (S:Success, E:Error)
    2) Result Message
    In the PL/SQL procedure we always use below construct when we want to raise any message
    hr_utility.set_message(APPL_NO, 'FND_MESSAGE_NAME');
    hr_utility.raise_error;
    In Exception block we write below( in successful case we just set the p_result_flag := 'S';)
    EXCEPTION
    WHEN APP_EXCEPTION.APPLICATION_EXCEPTION THEN
    p_result_flag := 'E';
    p_result_message := hr_utility.get_message;
    WHEN OTHERS THEN
    p_result_flag := 'E';
    p_result_message := hr_utility.get_message;
    fnd_message.set_name('PER','FFU10_GENERAL_ORACLE_ERROR');
    fnd_message.set_token('2',substr(sqlerrm,1,200));
    fnd_msg_pub.add;
    p_result_message := fnd_msg_pub.get_detail;
    After executing the PL/SQL in java
    We have written some thing similar to
    orclStmt.execute();
    OAExceptionUtils.checkErrors (txn);
    String resultFlag = orclStmt.getString(provide the resultflag bind no);
    if ("E".equalsIgnoreCase(resultFlag)){
    String resultMessage = orclStmt.getString(provide the resultMessage bind no);
    orclStmt.close();
    throw new OAException(resultMessage, OAException.ERROR);
    It safely shows the message to the user with all the data in the page.
    We have been using this construct for a long time for all our projects. They are all working as expected.
    Regards,
    Peddi.

  • How to send error message to forms from Database Trigger

    Hi, Please help me to send error message to forms from Database Trigger?
    RgDs,
    Madesh.R.M

    You are correct, the On-Error trigger is a Forms trigger. However, if your Form is going to display the error generated by the database stored procedure or trigger - you might not see the database error in your Form unless you check the DBMS_ERROR_CODE in the On-Error trigger and manually display the Error Code and associated Text. I've see this happen with a co-worker. The Form she was working on was based on a table with an Before-Insert trigger. Because she was not explicitely handling the error from the Before-Insert trigger in the Forms On-Error trigger, her Form appeared to halt for no reason at all. Once she added code to the On-Error trigger in the Form to handle the DBMS_ERROR_CODE, she discovered the trigger was producing an error and was able to show the error to the user in the On-Error trigger.
    I understand the desire to keep as much as possbile in the database, but with that comes some extra coding in your Forms to handle this. This extra coding could easily be placed in a Forms Library, attached to a Form and called in the On-Error trigger. Your code could look like this:
    DECLARE
       /*This example assumes you have an Alert defined
          in your Form called: 'ERROR' */  
       al_id    ALERT;
       al_text  VARCHAR2(200);  /* Max text of a Forms Alert message*/
       al_btn   NUMBER;
    BEGIN
    IF DBMS_ERROR_CODE != 0 THEN
       /* Error code is ORA-00000 Normal Successful completion
           So only handle non-zero errors  */
       al_text := DBMS_ERROR_CODE||':'||DBMS_ERROR_TEXT;
       al_id := Find_Alert('ERROR');
       set_alert_property(al_id, alert_message_text, al_text);
       al_btn := show_alert(al_id);
    END IF;
    END;Your original question was "How to send error message to forms from Database Trigger?" The answer is you don't because Forms already gets the database error code and database message through the Forms DBMS_ERROR_CODE and DBMS_ERROR_TEXT functions. Look these up in the Forms help and it should clear things up for you.
    Craig...
    Edited by: CraigB on Jun 14, 2010 4:49 PM
    Edited by: CraigB on Jun 14, 2010 4:49 PM
    Edited by: CraigB on Jun 14, 2010 4:50 PM
    Edited by: CraigB on Jun 14, 2010 4:51 PM
    Edited by: CraigB on Jun 14, 2010 4:51 PM

  • Sending error messages

    When I send error messages it disables the back, exit and cancel button.
    How can I enable them?

    Use popup window to notify errors...
    CALL SCREEN '1100' AS WINDOW STARTING AT 10 10.
    <i>OR</i>
    CALL FUNCTION 'POPUP_TO_CONFIRM'
      EXPORTING
       TITLEBAR                    = 'Test '
        text_question               = 'Error message'
       DISPLAY_CANCEL_BUTTON       = ' '
    Regards
    ramana

  • My iphone suddenly crashed and asked for restoration, however itunes sends error message of host not available, what should I do?

    My iphone suddenly crashed and asked for restoration, however itunes sends error message of host not available (3014), what should I do?

    Try -
    Error 1004, 1013, 1638, 3014, 3194: These errors may be the result of the connection to gs.apple.com being redirected or blocked. Follow these steps to resolve these errors:
    Install the latest version of iTunes.
    Check security software. Ensure that communication to gs.apple.com is allowed. Follow this article for assistance with security software. iTunes for Windows: Troubleshooting security software issues.
    Check the hosts file. The restore will fail if there is an active entry to redirect gs.apple.com. Follow iTunes: Advanced iTunes Store troubleshooting to edit the hosts file or revert to a default hosts file. See section "Blocked by configuration: (Mac OS X/Windows) > Rebuild network information".
    Try to restore from another known-good computer and network.
    If the errors persist on another computer, the device may need service.
    The "device may need service" means a hardware problem. In that case make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar
    Also see:
    3014
    Restoration of code 3014 will not work?: Apple Support Communities

  • Is it possible to send error message from Adapter Module to CCMS?

    Hi
    Is it possible to send error message from Adapter Module  to CCMS...?I have written on adatper module from there i have to send error message to CCMS or SXMB_MONI. Is it possible if yes please send me the related documents
    Best Regards
    Ravi Shankar B

    Hi
    I have written following User Defined Exeption in my Module program
    class DuplicateFileException extends ModuleException{
              DuplicateFileException(String message){
                   super(message);
    I am throwing my Exception like this
    try{
         throw new DuplicateFileException("Duplicate File");
    }catch(DuplicateFileException e){
         throw e;
    But i am not getting this exception in SXMB_MONI. In adpater monitoring i am getting the following exceptions
    <b>
    2007-05-16 15:51:30 GMT+05:30: Retry interval started. Length: 5.000 s
    - 2007-05-16 15:51:30 GMT+05:30: Error: java.lang.NullPointerException
    - 2007-05-16 15:51:30 GMT+05:30: An unknown error occured.
    - 2007-05-16 15:51:30 GMT+05:30: Processing started
    - 2007-05-16 15:51:25 GMT+05:30: Error: java.lang.NullPointerException</b>
    can any one give me the idea how to send error from module program to SXMB_MONI
    Thanks & Regards
    Ravi Shankar B

  • How ro send error message from BADI to BAPI

    i have a BADI which is triggered from a BAPI.This BADI has only importing and changing parameters.How can i send error message to BAPI.Please reply at the earliest.
    High points can be expected.

    Hi Arshi,
         Please check whether the following link is of any use to you,
    how to capture the error message from bapi
    Best Regards.
    Reward points if it is helpful.

  • Error message in portal when manager tries to submit a PCR

    Hi
    I have an unusual / rare case that no-one seems to have come across before in the technical team, where a manager with MSS access is trying to submit a personnel change request to modify an employee's position (just a change in part time hours for the WSR) in the portal. When the manager goes through the action all is fine. At the end when they click on the submit button, they receive the following message which prevents them from sending the PCR:
    There is an error message submitting your request. The error text is:
    Enter a valid date (for example,)
    Has anyone come across such an issue before possibly ? In our test environment we do not encounter the same issue as in production for this manager and so it's a little odd as we are not able to replicate the problem.
    Any assistance would be much appreciated.
    Nicola

    Hello,
    I assume you've checked all the dates entered to see if they are valid, but what dates have been entered (if any)?
    What happens if he tries again, same result?
    Have you tried turning on the debugger to see where it's coming from?
    Also, check the date settings for that user (eg DD.MM.YYYY) to see if they're unexpected.
    OSS Note 1095770 explains that the error message (888 from the message class FK)
    was changed from:
    Enter a valid date (for example, 01.01.1996)
    to:
    Enter a valid date (for example, &)
    and in the code change I see that the variable gets set this way:
    l_date_format(15)   TYPE c.
    WRITE sy-datum TO l_date_format.
    So it would seem that user is having a problem writing sy-datum. Again, check his user settings.
    regards
    Rick Bakker
    Hanabi Technology

  • How to throw Custom Error  message in Portal

    Hi Experts !
    I am working on CRM 5.0 and using BADI CRM_ORDER_STATUS for LEAD transaction.
    This BADI is checking the userid when user is trying to change the status of a lead. if userid is not correct than it is  throwing an Error Message  in GUI but this message is reflecting in  Portal as an Exception but what I need here is a custom Message similar to GUI.
    Pls suggest .
    With Thanks & Regards
    Navneet

    Hi Experts !
    I am working on CRM 5.0 and using BADI CRM_ORDER_STATUS for LEAD transaction.
    This BADI is checking the userid when user is trying to change the status of a lead. if userid is not correct than it is  throwing an Error Message  in GUI but this message is reflecting in  Portal as an Exception but what I need here is a custom Message similar to GUI.
    Pls suggest .
    With Thanks & Regards
    Navneet

  • Error Message in portal application.log

    Hi all,
    There are error messages continually been written to application.log.
    Here is the path.
    $ORACLE_HOME/j2ee/OC4J_Portal/application-deployments/portal/OC4J_Portal_default_island_1/application.log
    We couldn't find out what's wrong.
    Portal Version is 10.1.2.2.0.
    application.log
    07/01/31 16:54:54 portal: [module=RepositoryServlet, ecid=103102642203,1] ERROR: Repository Gateway error: Request Processing Error:
    maxlength.htc: PROCEDURE DOESN'T EXIST
    07/01/31 17:23:44 portal: [module=RepositoryServlet, ecid=133169185626,1] ERROR: Repository Gateway error: Request Processing Error:
    maxlength.htc: PROCEDURE DOESN'T EXIST
    07/01/31 17:23:58 portal: Broken pipe
    07/01/31 17:23:58 portal: Broken pipe
    07/01/31 17:23:58 portal: id=146054097151,1 Exception processing portlet response
    java.lang.ArrayIndexOutOfBoundsException
         at java.lang.System.arraycopy(Native Method)
         at com.evermind.server.http.EvermindServletOutputStream.write(EvermindServletOutputStream.java:216)
         at com.evermind.server.http.EvermindServletOutputStream.write(EvermindServletOutputStream.java:151)
         at oracle.webdb.repository.service.RepositoryHttpResponseWrapper$RepositoryOutputStreamWrapper.write(Unknown Source)
         at oracle.webdb.page.CharConvertingOutputStream.write(Unknown Source)
         at oracle.webdb.page.v2.BaseDataProcessor.addToOutputStream(Unknown Source)
         at oracle.webdb.page.v2.BaseDataProcessor.includePortlet(Unknown Source)
         at oracle.webdb.page.v2.BaseDataProcessor.parseLayout(Unknown Source)
         at oracle.webdb.page.v2.BaseDataProcessor.assemblePage(Unknown Source)
         at oracle.webdb.page.v2.BaseDataProcessor.process(Unknown Source)
         at oracle.webdb.page.PageBuilder.process(Unknown Source)
         at oracle.webdb.page.Main.doRequest(Unknown Source)
         at oracle.webdb.page.ParallelServlet.doGet(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:834)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:260)
         at oracle.webdb.portal.servlet.PortalServlet.doGet(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:834)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:228)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    ----------------------

    $ORACLE_HOME/j2ee/OC4J_Portal/application-deployments/portal/OC4J_Portal_default_island_1/application.log
    os the log of the "parent application". This is rather high level in the container. The message in the logfiles tells you that a procedure doesn't exist.
    This can mean 3 things:
    1. The procedure really doesn't exist
    2. The procedure expects different parameters then passed
    3. In the procedure a specific array member is called (but not found). (don't know how to explain this better in English, sorry for that).
    It has been a while since I touched portal. In the past portal used a DAD (located in your HTTP-Server configuration). By changing the error style of the dad, you might find a more comprohensive error message.

  • How to send error message via a mail to the customers email id

    HI experts ,
    i have a requirement,In idoc where i have to send the error message via email to a perticular emailid?
    please help me n tell also which fm is used for that?
    Thanks
    RAhul Sisodia

    Hi ,
    Check this Link..
    [sending an email with multiple attachments;
    Regards,
    Sachin M M

  • Display error message in portal

    Hi,
    I am working on SRM Netweaver portal. Can you please tell me how to display an error message in the portal. I tried using the function module BBP_PD_MSG_ADD. But it fails as it is not able to find the log.
    Thanks,
    Hema.

    Hi Rajani,
    Yes. Its std. I want the code to be written in the BADI BBP_WF_LIST. If the search does not provide any result, I want the standard message to be overwritten with a custom msg.
    Thanks,
    Hema.

Maybe you are looking for

  • Thirdparty Subcontracting

    Hi gurus....... My client wants following scenario to be mapped in SAP. My client gives raw material to his subcontracter. Then subcontractor makes processes on that and make finish product and then that subcontractor directly supplied finish product

  • Blu-ray ROM

    I have an HP pavilion dv2000 and I need to replace my rom drive.  I tried searching online but can only find a compatible blu-ray drive on a shady website.  Can anyone help?

  • Drill up broken in a tree based on a union

    Situation: there are six real root rows in the table and they have 0 in the parent id, so I added a single root to the tree select statement: UNION SELECT 0 id, NULL pid, 'Root' name, null link, null a1, null a2 FROM DUAL The whole tree displays ok s

  • Call a form by using Report Builder in 6i

    Dear All; How can I call the form from report builder in 6i Report and form?? For example: in report show customer total price: 2000 when I will click on this entry it will show me the breakup of this amount in form??? how can I do this plz help me.

  • Change "Logged in as" display on page  to Name vs. Username

    Is there a way to change what eBus 12.1.3.displays with the "Logged in as:" to the Name or Full Name as opposed to the actual username? If not is there a supported way to hide the username? Thank you