How to send Error Trace in Alert

Hi All,
I am using the following blog to raise an exception in mapping
/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
I am able to get the exceptions as expected, which is good.
When i executed the interface, if it failed then throwing an exception but it is giving in TRACE part of the MONI.
When an alert triggered, it says mapping error. I would like to have the Exception message in the alert.l
Is there any way to get that Exception message to Alert
Regards

Hi Vamsi Krishna,
You can access only limited Constant Field Values using Java API (UDF or Java Mapping). [Link1|http://help.sap.com/javadocs/pi/SP3/xpi/constant-values.html#com.sap.aii.mapping.api.StreamTransformationConstants.DYNAMIC_CONFIGURATION]
May be you can use this method [Link2|http://help.sap.com/javadocs/pi/SP3/xpi/com/sap/engine/interfaces/messaging/api/exception/MessagingException.html#setErrorCategory(java.lang.String)] . Please explore more about this API, you can use "setErrorCategory" method and in CCMS alerts you can sent that ErrorCategory. But I am think SAP will not recommend it.
Regards,
Raghu_Vamsee

Similar Messages

  • 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

  • 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 get Error Trace on Linux

    Hi All,
    I am trying to run my JAR ( A simple JAR that uses JCO) on Linux SUSE 10, when I run it, it just gives me the following error, there is no trace.
    How can I get the full trace. Please help.
    This is what im doing and the next line is the error message.
    dsadm@mach1:/opt/IBM/media/SAP/sapjco> java -jar ditest1.jar
    The java class is not found: com/sap/mw/jco/JCO$Exception
    dsadm@mach1:/opt/IBM/media/SAP/sapjco>
    This is the (ONLY) class file in the JAR, I exported my JAVA project from NWDS as a JAR file.
    package com.test;
    * Conn.java
    * Property of SAP AG, Walldorf
    * (c) Copyright SAP AG, Walldorf, 2000-2003.
    * All rights reserved.
    import com.sap.mw.jco.*;
    public class Conn {
      // The MySAP.com system we gonna be using
      static final String SID = "R3";
      // The repository we will be using
      com.sap.mw.jco.IRepository repository;
      public Conn()
         System.out.println("**** DI11 *****");
             this.buildConnection();
           System.out.println("**** DI 22*****");
      public void buildConnection(){
         try {
                   System.out.println("**** DI2 *****");
                // Add a connection pool to the specified system
                //    The pool will be saved in the pool list to be used
                //    from other threads by JCO.getClient(SID).
                //    The pool must be explicitely removed by JCO.removeClientPool(SID)
              com.sap.mw.jco.JCO.addClientPool( SID,         // Alias for this pool
                                        10,          // Max. number of connections
                                        "040",       // SAP client
                                        "testuser",   // userid
                                        "pass",  // password
                                        "EN",        // language
                                        "ipaddress",// host name
                                        "xx" );
                // Create a new repository
                //    The repository caches the function and structure definitions
                //    to be used for all calls to the system SID. The creation of
                //    redundant instances cause performance and memory waste.
                repository = com.sap.mw.jco.JCO.createRepository("MYRepository", SID);
              catch (Exception ex) {
                System.out.println("Caught an exception: \n" + ex.getMessage());
      // Retrieves and prints information about the remote system
      public void systemInfo()
        try {
          // Get a function template from the repository
          IFunctionTemplate ftemplate = repository.getFunctionTemplate("RFC_SYSTEM_INFO");
          // if the function definition was found in backend system
          if(ftemplate != null) {
            // Create a function from the template
            JCO.Function function = ftemplate.getFunction();
            // Get a client from the pool
            JCO.Client client = JCO.getClient(SID);
            // We can call 'RFC_SYSTEM_INFO' directly since it does not need any input parameters
            client.execute(function);
            // The export parameter 'RFCSI_EXPORT' contains a structure of type 'RFCSI'
            JCO.Structure s = function.getExportParameterList().getStructure("RFCSI_EXPORT");
            // Use enumeration to loop over all fields of the structure
            System.out.println("System info for " + SID + ":\n" +
            for (JCO.FieldIterator e = s.fields(); e.hasMoreElements(); ) {
              JCO.Field field = e.nextField();
              System.out.println(field.getName() + ":\t" + field.getString());
            }//for
            System.out.println("\n\n");
            // Release the client into the pool
            JCO.releaseClient(client);
          else {
             System.out.println("Function RFC_SYSTEM_INFO not found in backend system.");
         catch (JCO.Exception ex) {
           System.out.println("Caught an exception: \n" + ex);
      // Retrieves and displays a sales order list
      public void salesOrders()
         JCO.Client client = null;
        try {
          // Get a function template from the repository
          IFunctionTemplate ftemplate = repository.getFunctionTemplate("BAPI_SALESORDER_GETLIST");
          // if the function definition was found in backend system
          if(ftemplate != null) {
              // Create a function from the template
              JCO.Function function = ftemplate.getFunction();
              // Get a client from the pool
              client = JCO.getClient(SID);
              // Fill in input parameters
              JCO.ParameterList input = function.getImportParameterList();
              input.setValue("0000001200", "CUSTOMER_NUMBER"   );
              input.setValue(      "1000", "SALES_ORGANIZATION");
              input.setValue(         "0", "TRANSACTION_GROUP" );
              // Call the remote system
              client.execute(function);
              // Print return message
              JCO.Structure ret = function.getExportParameterList().getStructure("RETURN");
              System.out.println("BAPI_SALES_ORDER_GETLIST RETURN: " + ret.getString("MESSAGE"));
              // Get table containing the orders
              JCO.Table sales_orders = function.getTableParameterList().getTable("SALES_ORDERS");
              // Print results
              if (sales_orders.getNumRows() > 0) {
                // Loop over all rows
                do {
                  System.out.println("-----------------------------------------");
                  // Loop over all columns in the current row
                  for (JCO.FieldIterator e = sales_orders.fields(); e.hasMoreElements(); ) {
                     JCO.Field field = e.nextField();
                     System.out.println(field.getName() + ":\t" + field.getString());
                  }//for
                } while(sales_orders.nextRow());
              else {
                System.out.println("No results found");
              }//if
          else {
             System.out.println("Function BAPI_SALESORDER_GETLIST not found in backend system.");
           }//if
        catch (Exception ex) {
          System.out.println("Caught an exception: \n" + ex);
        finally {
           // Release the client to the pool
          JCO.releaseClient(client);
      protected void cleanUp() {
        JCO.removeClientPool(SID);
      public static void main(String[] argv)
        Conn e = new Conn();
      e.systemInfo();
      e.salesOrders();
      e.cleanUp();
    This is standard SAP code, please help on how can I get the complete error trace on linux.

    You do not require RFCSDK to build a jaava application that uses JCO on LINUX.

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

  • How to send HTML email using alert framework? Kindly help!

    Hi Experts,
          I am using alert framework (alert category) to send email. In the email message I want to use HTML content along with some hyperlinks.
         How can I do this?
         kindly help!
    Thanks
    Gopal
    Message was edited by:
            gopalkrishna baliga

    Hi,
    To send hyper links, you can add the links in the FollowUp Activity.
    The content of the mail from the alert framework will be a text mail.
    One option would be to check in your SCOT settings if it would be possible to set the Content Type as TEXT/HTML . If yes, then maybe this should be possible.
    Regards
    Bhavesh

  • How to send mail from UDM ALERT in Oracle 10 Grid control

    Hi,
    I have created a UDM alert in Grid control for a specific target which is sheduled to run every 15 Minutes.So if the sql query which will run for every 15 min returns any records then it will generate the alerts.*If there is any alerts thrown I should immediately send a mail from UDM .How to do this?*

    10.2 library
    http://download.oracle.com/docs/cd/B16240_01/welcome.html
    Administrator's Guide
    Chapter 4
    *T                                                                                                                                                                                                                                       

  • How to send errors to a particular error page

    I want to redirect any error to a particualr error page.
    how can this be done
    thanks
    varsha

    try this out to send yur own error....
    <%@ page errorPage="error.jsp" %>
    if (true){
    throw new Exception("my error");
    the <= exception.getMessage() %> in your error page will display the error

  • 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

  • How to send error record to session in call transaction method

    Hi experts,
    I want to send only the error record to session while executing the program in call transaction method. please give me example on this
    regards,
    siva kumar

    One logiv that I can suggest is that after you have got the details of the record in error, you write another perform build_Session and put the below logic in that.
    Logic:
    1. Build a internal table for the error records similar to the internal table you used for looping for the call transaction. In short this internal table will have only the records that have an error in call transaction.
    2. Copy the recordign that you have done before and put it in the perform inside the loop and build the BDC table.
    3. Then .using this BDC table you can build the BDC session.
    - Guru
    Reward points for helpful answers
    3.

  • 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 to send Run time errors alerts to email ?

    Dear Friends,
    I am using SAP CRM ABAP 6.0. I am checking run time errors in ST22 transaction. Usually, i check in morning or evening, based on my free time. I feel, dificully in this. so, i need to configure in somewhere for send this runtime error alerts to my office mail id.
    We are sending report outputs to our office id. But, i dont know, how to send run time errors with log or with out log to emai id?
    thanks in advance.
    Rajagopal
    Chennai - INDIA

    Thanks Dieter.
    Now, i have set the background job as per your suggestions. but, i have below doubts:
    1. I added my office mail id in spool list receipient. This background job alert mail goes to business work place inbox (SBWP). But, i need, in my outlook mail box.
    2. This background job gives all months runtime errors. but, only i need today & yesterday only. I checked in ST22 for create variant. Unfortunately, i did not get option. so, how to set variant?
    Thanks in advance.
    Rajagopal
    Chennai - INDIA.

  • How to send e-mail alert to the user job is successful or failed.

    Hi Experts,
    I have scheduled a job using DBMS_JOB Package; in this job I am calling a procedure.
    How can we send an e-mail(alert) to the user if the job is successful (or) job fails.
    If the job is successfully completed, then we have to send mail as “Job is completed successfully along with job name”.
    If the job fails we have to send email as “error message of the job along with job name”(why the job is failed).
    This alert should be sending automatically no manual intervention.
    Please help me.
         CREATE OR REPLACE PROCEDURE APPS_GLOBAL.arc_procedure (P_ID IN NUMBER)
         IS
         CURSOR C IS SELECT id,table_name,archive_table_name,where_condition
         FROM apps_global.control_ram
         WHERE id = p_id
         ORDER BY id, table_name;
         BEGIN
            FOR I IN C
            LOOP
               EXECUTE IMMEDIATE
                  'INSERT INTO '
               || I.ARCHIVE_TABLE_NAME
               || '
         (SELECT * FROM '
               || I.TABLE_NAME
               || ' WHERE '
               || I.WHERE_CONDITION
               || ')';
               EXECUTE IMMEDIATE
                  'DELETE FROM '
               || I.TABLE_NAME
               || ' WHERE '
               || I.WHERE_CONDITION
               || '';
               COMMIT;
            END LOOP;
         EXCEPTION
            WHEN OTHERS
            THEN
               ROLLBACK;
               DBMS_OUTPUT.PUT_LINE (
               'An error was encountered - ' || SQLCODE || ' -ERROR- ' || SQLERRM);
         END arc_procedure;
         /This is my job.
    DECLARE
      X NUMBER;
    BEGIN
      SYS.DBMS_JOB.SUBMIT
      ( job       => X
       ,what      => 'APPS.arc_procedure(1);'
       ,next_date => to_date('05/01/2013 00:00:00','dd/mm/yyyy hh24:mi:ss')
       ,interval  => 'TRUNC(SYSDATE+1)'
       ,no_parse  => FALSE
      SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
    COMMIT;
    END;
    /Thanks in advance.

    Hi,
    I think you can do by creating mailing procedures and call it in the loop and outside the loop.
    There would be two procedure one in inside loop which will execute after successfull completion of the loop.
    Other would be in the exception block like i shown in the below code you have written;
    V_variable_1 you can use as a parameter for what is the error occured.
    like suppose your mailing procedure name is Status_email and Status_email_1.
    CREATE OR REPLACE PROCEDURE APPS_GLOBAL.arc_procedure (P_ID IN NUMBER)
         IS
         CURSOR C IS SELECT id,table_name,archive_table_name,where_condition
         FROM apps_global.control_ram
         WHERE id = p_id
         ORDER BY id, table_name;
    V_VARIABLE_1 NUMBER;
    V_VARIABLE_2 VARCHAR2(400);
         BEGIN
            FOR I IN C
            LOOP
               EXECUTE IMMEDIATE
                  'INSERT INTO '
               || I.ARCHIVE_TABLE_NAME
               || '
         (SELECT * FROM '
               || I.TABLE_NAME
               || ' WHERE '
               || I.WHERE_CONDITION
               || ')';
               EXECUTE IMMEDIATE
                  'DELETE FROM '
               || I.TABLE_NAME
               || ' WHERE '
               || I.WHERE_CONDITION
               || '';
               COMMIT;
                     STATUS_EMAIL;
            END LOOP;
         EXCEPTION OTHERS THEN
    V_VARIABLE_1 :=SQLCODE;
    V_VARIABLE_2 :=SQLERRM;
               ROLLBACK;
    STATUS_EMAIL_1(V_VARIABLE_1,V_VARIABLE_2);
         END arc_procedure;
         / You can refer to sample email procedure i have created for you.
    CREATE OR REPLACE PROCEDURE STATUS_EMAIL
    AS
       v_From       VARCHAR2(80) := 'EMAIL_ID';
       v_Recipient  VARCHAR2(80) := 'EMAIL_ID';
    --YOU CAN SEND EMAIL TO MORE THAT ONE USER SO YOU CAN USE LIKE BELOW VARIABLE....
       v_Recipienttt  VARCHAR2(80) := 'EMAIL_ID';
       v_Subject    VARCHAR2(80) := 'SUBJECT_FOR_THE_MAIL';
       v_Mail_Host  VARCHAR2(30) := 'MAIL_SERVERS_HOST_IP(SMTP_SERVER)';
       v_Mail_Conn  utl_smtp.Connection;
       crlf         VARCHAR2(2)  := chr(13)||chr(10);
    BEGIN
      v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host);
      utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
      utl_smtp.Mail(v_Mail_Conn, v_From);
      utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
      utl_smtp.Rcpt(v_Mail_Conn, v_Recipienttt);
    --OPEN DATA CONNNECTION
      UTL_SMTP.OPEN_DATA(v_mail_conn);
    --MAIL HEADER
      utl_smtp.write_DATA(v_Mail_Conn,'Date: '   || to_char(sysdate, 'DD-MON-YYYY hh:mi:ss AM') || crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'From: '   || v_From || crlf );
      utl_smtp.write_DATA(v_Mail_Conn,'Subject: '|| v_Subject || ||crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'To: '     || v_Recipient || crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'Cc: '       || v_Recipienttt ||','|| crlf);
    --MAIL BODY
      utl_smtp.write_DATA(v_Mail_Conn,'MIME-Version: 1.0'|| crlf );
      utl_smtp.write_DATA(v_Mail_Conn,'Content-Type: multipart/mixed;'|| crlf );
      utl_smtp.write_DATA(v_Mail_Conn,' boundary="-----SECBOUND"'|| crlf ||crlf );
      utl_smtp.write_DATA(v_Mail_Conn,'-------SECBOUND'|| crlf );
      utl_smtp.write_DATA(v_Mail_Conn,'Content-Type: text/plain;'|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'Content-Transfer_Encoding: 7bit'|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'Procedure is successfully complited without error'|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
    utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'Dear All, '|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'Procedure is successfully complited without error'||'.' ||crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'Regards, '|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'any_name '|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_data(v_Mail_Conn, utl_tcp.CRLF ||'This mail is auto generated.');
      --CLOSE CONNECTION
      UTL_SMTP.CLOSE_DATA(v_mail_conn);
      utl_smtp.Quit(v_mail_conn);
    EXCEPTION
      WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
        raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
    END;
    /cheers..

  • Errors appeared in alert log file should send an email

    Hi,
    I have one requirement to do, as i am new dba, i dont know how to do this,
    sendmail is configured on my unix machine, but dont know how to send the errors appeared in alert logfile should send an email to administrator.
    daily, it has to check the errors in alert log file, if any errors occurs(ORA- errors or WARNING errors) should send an email to administrator.
    please help me how to do it

    Hi,
    There are many methods for interrogating the alert log and sending e-mail. Here are my notes:
    http://www.dba-oracle.com/t_alert_log_monitoring_errors.htm
    - PL/SQL or Java with e-mail alert: http://www.dba-village.com/village/dvp_papers.PaperDetails?PaperIdA=2383
    - Shell script - Database independent and on same level as alert log file and e-mail.
    - OEM - Too inflexible for complex alert log analysis rules
    - SQL against the alert log - You can define the alert log file as an external table and detect messages with SQL and then e-mail.
    Because the alert log is a server side flat file and because e-mail is also at the OS-level, I like to use a server side scell script. It's also far more robust then OEM, especially when combining and evaluating multiple alert log events. Jon Emmons has great notes on this:
    http://www.lifeaftercoffee.com/2007/12/04/when-to-use-shell-scripts/
    If you are on Windows, see here:
    http://www.dba-oracle.com/t_windows_alert_log_script.htm
    For UNIX, Linux, Jon Emmons has a great alert log e-mail script.
    Hope this helps . . . .
    Donald K. Burleson
    Oracle Press author

  • How to send alert when receiver JMS adapter fails? Please help!

    Hi experts,
       I have the following Asynchronous scenario:
       SAP R/3 -
    >IDOC----->XI>JMS--->BizTalk.
       I am sending IDOC from a given SAP R/3 system to XI. XI then sends the same to BizTalk via JMS adapter. In SXMB_MONI the message is successfully processed as it shows checked flag. But if I see the JMS communication channel status in runtime workbench then there it shows error saying JMS queue user id or password not found.
    How to send this JMS adapter error as alert?
    I also tried configuring alert rule in runtime workbench but still it does not trigger any error.
    I have also verified the alert category and everything is fine with that.
    What could be the problem? How can I send an alert when an Async adapter fails?
    Thanks & Regards,
    Gopal

    Hi! GOPAL,
    Once make sure whther all the below mentioned steps are configured correctly or not ok
    1: First make sure whether you are working on SAP XI or PI 7.1
               a) If XI you need to create Alerts (ALert Category) in CCMS ABAP stack in the
                        Tcode. ALRTCATDEF
               b) Open the alert category/classification definition environment (transaction ALRTCATDEF).
         ensure you are in change mode.
               c) In the group box with the alert classifications, right-click All classifications to open the   
                    context menu, and choose Create.
               d) Under Classification, enter a name for the classification.
               e) Under Description, enter a description of the classification.
               f)  Save your entries.
               g) Then go to RWB-->Go to ALERT Configuation and ADD the RULES to your alert category gor 
         which created there in the abap stack.
    Note Suppose if you want those ALERTS to come to your MAIL then again go to ABAP STACK and go to Tcode.  ALRTCATDEF and select your alert category press FIxed Recepients and there give your SAP XI ID's then  u can see those alerts in RWB-->ALERT INBOX
    Suppoe if you want those to mail then ask the basis team to link your company mail or personal mail ID to your SAP ID.
    2. Supppose if you are working on PI 7.1 Server.
         Only difference is creating Alert Category...Here you can create your ALERT Classification I mean   
         alert caltegory in the ESR (Enterprise Service Repository )
         Software Component >S CVersion>NameSpace-->Alert Category.
         You can configure how u configure there in abap stack such as long and short text every thing 
          except Fixed Receipients you need to give that recepients there only in ABAP STACK.
          what ever ALERT CATEGORY you are creating will reflect there in the ABAP STACK
         even you can Use these alerts Category in BPM --> CONTROL STEP -->Configure here in this step
    You can also reach alerts like this.
    NOTE  Most Important point is You can also view your mails or Alerts in the T Code:: SOST.
    Regards:
    Amar Srinivas ELi

Maybe you are looking for

  • ORA-00932 Error using 11g and the SDO_RELATE function. Works fine in 10g

    Hello, If I run this query in Oracle 11g: SELECT M.FID, MAX(M.VERSION) AS VERSION FROM SW_PB.A_ROADNODEINFORMATION M, SW_PB.ROADNODE N WHERE M.REFERENCETOROADNODE = N.FID AND M.NODEVERSION = N.VERSION AND M.CATALOGUEID <= 477 AND MDSYS.SDO_RELATE( N.

  • T430s - Mini Displaypor​t to HDMI

    I'm attempting to use the mini displayport output on my laptop to connect to a device that takes HDMI. I am using the following adapter: http://www.amazon.com/gp/product/B003OC6LWM/ref=oh​_details_o07_s00_i01 When I connect it to the external display

  • How to pass a cluster of data from one VI to another

    Hi all, I've got a cluster of controls on my main application VI that I am using to accept data of various types from the user.Next I want to pass this cluster to the input cluster control of another VI perfectly on the generation of a user event. Th

  • New 2015 MacBook for Mobile Graphic Design?

    I would love to buy the new MacBook. I am a graphic designer who is slowly moving over to front-end web development. I'm sure that even the 1.1 Core M in the new MacBook is more than capable for front-end web dev, but occasionally I do a bit heavier

  • URL bar stalls when loading

    Often the address bar stalls while loading up. If I click the X at the end of the bar and then click the Refresh symbol, it will often reload just fine.  Sometimes it takes a couple of tries.