Sending an Email in case of error in Joblog.

Hi All,
I am trying to send an Email notification when there is an error in any job. Using the below script i am able to push the error info to the log. i need the same to be passed through Email, whenever i get an error in jobs. Can some one help me in this regard.
thisErr = uGetErrorInfo();
uErrMsg(3, "Got error - " + thisErr.getName());
attr = thisErr.firstAttr();
// In this example, we'll just dump all attributes to the log
while (attr != null)
attrName = attr.getKey();
attrValue = attr.getValue();
uErrMsg(0, attrName + "=" + attrValue);
          attr = thisErr.nextAttr();
Regards,
Dileep

Acham,
You can use the uSendSMTP() function to send the same information you pass in uErrMsg().
Documentation for this function is in the help file.  Note that a mail server connection is required.
BR,
Matt

Similar Messages

  • Failed to send invitation emails to recipients. detailed error: an error occurred while sending mail.

    I tried to send a distributed form out to myself to check the system and received this error message: failed to send invitation emails to recipients. detailed error: an error occurred while sending mail. Any idea what I may have done wrong? I am using Microsoft Outlook 2010 with Windows 8.1 OS.

    I think century link did change some settings though.
    Help menu (Alt+H) > troubleshooting information. Copy to clipboard and paste into a reply here. Then I can see what setting your using with century link and compare them to what century link provide.

  • How to send an email in case a Z Table is changed.

    Hi All,
              I need some guidance on how to send an email in case a Z Table is changed.
    Thanks in Advance,
    Saket

    HI Saket,
    As far as I understand you need to send an email whenever a Ztable is changed.For that
    1. You need to create a BO with the event Table changed using transaction SW01.
    2. then you need to bind this event to your Ztable.for that steps are mentioned in the link given below:-
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20implement%20events%20in%20table%20maintenance.doc
    basically this pdf will illustrate to you as to how you should bind a event to table maintenance. this event should be traced with the one created in the BO using transaction SWEL.
    3.After that you need to create workflow wherein you will use the event which you have defined in the BO in the BASIC DATA(button with the Hat) of the workflow developer(Transaction swdd). in the Basic data you need to put in the object name and the event in the Startitng condition tab.
    4.After that you need to have an email task included as in the workflow stating the text and subject line with the agent assigned as Workflow initiator.
    after all these settings are done the try to do some changes in the Ztable. and after that just goto the transaction sbwp(Sap business workplace) to check whether the email has been sent out for.
    Let me know if you are still unable to implement becuase I have already worked on it and its working in my case

  • Every time I try to send an email, I get an error message which says "The recipient was rejected by the server because it does not allow relaying" How can I fix this?

    My email is not working properly, I can receive emails but I cannot send them. Every time I try to send an email an error message appear saying "The recipient was rejected by the server because it does not allow relaying". There used to be no problem with my email it has only come up recently. Also, my Internet works fine. I have tryed restoring my iPad to factory settings but it still doesn't work. Does anyone know how to fix it?

    try to check the email id   of the guy you are trying to send the email to as i had the same problem i had written yahoo.com when it was yahoo.in 

  • TS3899 When I send an email I get an error message that the receiver does not allow "relaying" it doesn't matter who the recipient si

    When I send/forward an email I get an error message that the recipient does not allow "relaying". It doesn't matter who the recipient is.

    Go into Settings>Mail, Contacts, Calendars>your account>Outgoing mail Server>SMTP>Primary Server then turn Server ON and fill in both User Name & Password>under Outgoing Mail Server.

  • TS3899 when I try to send a email I get a error message that my sever would not allow redirected emails

    What to do about error message your server is not able to redirect mail

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Using a POP account with multiple devices
    http://support.apple.com/kb/ht3228
    iOS: Adding an email account
    http://support.apple.com/kb/HT4810
    iOS: Setting up an Outlook.com, Hotmail, Live, or MSN email account
    http://support.apple.com/kb/ht1694
    iPhone, iPad, iPod touch: Microsoft Outlook 2003, Outlook 2007, Outlook 2010 may not display contacts and calendars after sync
    http://support.apple.com/kb/TS1944
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say “Cannot Connect to Server”?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    How to Delete Email on the iPad
    http://ipad.about.com/od/iPad_Guide/ss/How-To-Delete-Email-On-The-Ipad.htm
    How to Mass Delete Emails from iPhone and iPad Inbox (with video)
    http://suiteminute.com/how-to-mass-delete-emails-from-iphone-and-ipad-inbox/
    How to add, send and open iPad email attachments
    http://www.iskysoft.com/apple-ipad/ipad-email-attachments.html
    How to Sync Contacts with Your iPad Using iTunes
    http://www.dummies.com/how-to/content/how-to-sync-contacts-with-your-ipad-using- itunes.html
    iOS: ‘Mailbox Locked’, account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    iCloud: Create a group and add contacts to it
    http://support.apple.com/kb/PH2667
    eMail Groups - You can use a third party app that many users recommend.
    MailShot -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    Group Email -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
    How to delete an email account on your iPad
    http://www.shoppepro.com/support/knowledgebase/228/How-to-delete-an-email-accoun t-on-your-iPad.html
     Cheers, Tom 

  • ThunderBird sucks. Step 1: Type in your recipients emails. Step 2: Send your email. Step 3:Error can't send because I suck and only accept contacts in your list

    Uninstall.

    I remember having a similiar problem. It was caused by the session not using the properties passed in. I seem to remember I needed to set a system property at startup, but can't remember what it was. JGuru has this to say though:
    Q:
    I'm getting my Session with Session.getDefaultInstance and its not getting changes to the Properties passed in. What's wrong?
    A:
    In getDefaultInstance(Properties props), the Properties are only used in the initial call. Future calls ignore the setting, returning the previously created Session. If you need to change the Properties, like to change SMTP servers, you should use getInstance(Properties props) instead.

  • Receiving an Error message when trying to send an email

    Help
    All of a sudden whenever I try to send an email I receive an Error message stating it cannot be delivered. The message suggests verifying addressee, checking SMTP server settings and verifying any advanced settings. I have tried different addressees, and all the information in the Mail Preferences looks accurate to me. Any ideas what could be causing this? It just started happening.
    Any info is greatly appreciated
    Susan
    Quad Core   Mac OS X (10.4.6)  

    Hi Susan,
    Many ISPs have recently started blocking outgoing (smtp) mail via port 25 that doesn't use their own smtp server. (This is to try and combat spam).
    There are generally two ways to overcome this:
    1) Use the smtp server of the ISP that you are currently connected to. (If you have a laptop and connect from different places this may mean you have to select an appropriate smtp server at each location.)
    2) Connect to your preferred smtp server on a port other than 25. This will depend on the setup of that server. For instance the Apple .Mac smtp server allows connections on port 587 (reference Apple support article: http://docs.info.apple.com/article.html?artnum=75124)
    Graham

  • Sending Email When FTP Adapter Errors Out

    Hello everyone,
    I am developing a very simple interface to grab a file from a directory and ftp it to a partner's server. Now I want to be able to check if an error occurs when I send the file so I can send a notification e-mail to the administrator and move the file to an Error-Archive directory.
    Some of the errors that could happen are:
    1. Partner server is down
    2. FTP Username or password is wrong
    3. FTP account does not have permissions to write to the Partner server
    4. ...etc
    I have defined an Integration process and for the block where I ftp my file, I defined an exception which I catch in an exception branch. In the Exception branch, I have then defined steps to send notification emails and move the file to an error-archive directory. But unfortunately all the steps of the Integration Process seems to pass, although the FTP Adapter throughs an error.
    I'm not sure how can I get the FTP adapter errors to be passed back to my integration process. I already searched in the service market place for OSS notes and also searched the SDN but I can't find any helpful information.
    There is one OSS note, 821267, that mentions the use of System Acknowledgements. I'm not sure if this will help me and I don't know how to set it up.
    Does anyone have any ideas on how to handle this particular scenario? Did anyone implement System Acknowledgements with the File/FTP adapter?
    Any help is greatly appreciated

    Hi,
    To do the alert configuration as suggested, please go through the information below.
    From SP 14 on PMI-free alerting was introduced. That means before SP 14 one has to configure and activate the End-to-End Monitoring, and to schedule the report SXMSALERT_PROCESS_DATA_GET in order to extract the alerts from the PMI data. For SP 14 and higher, that's not longer necessary.
    If no alerts are being delivered, please check if "Suppress multiple alerts of this rule" is checked for your rule.
    For SP 14 and higher you could also have a look at the report sxmsalert_logreader. This report shows some information about alerts being created or not.
    You'll find more information about trouble shooting the alerting in SAP Note 913858.
    Also just check if this batch program (RSALERTPROC) is running or not.
    The links below on Alert Management (ALM) will be of good help to you:
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/567ddea69d3d4c93a6aedabd08899e/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/81023cfa699508e10000000a11402f/frameset.htm
    Meanwhile look at these forum threads also:
    Alerts not getting triggered from Adapter Framework
    Alert  Configs...
    Also, In ALRTCATDEF, go to SETTINGS--> CONFIGURATION. By default, the option selected is INTERNAL PROCESSING. Select the option SMTP FORWARDING AS XML and give the email id. This will enable you to send an email alert whenever an error occurs in XI.
    I hope I have answered your queries. If u want help with anything else please do reply back.
    Regards,
    abhy
    PS: AWARD POINTS FOR HELPFUL ANSWERS.

  • Alert in case of errors in XI tx sm58

    Hi,
    we discovered that we sometimes (not more often than once a month) have errors in XI tx sm58, e.g. when a target SAP system has been down and idocs have not been delivered.
    Is there an easy way to monitor sm58 and send e.g. an email in case of errors?
    Thanks,
    Philipp

    Hi,
    May be you can have a check on "ARFCLOG" table so that you can generate the alert.
    for the blocked/Queued IDocs.
    Hope this helps.
    -Prasad Babu.

  • Resubmit and notification in case of error

    Hi,
    In Oracle B2B if there is error while sending outbound or Inbound message, how can we resubmit the messages automatically.
    Also is there any way to send the notification in case of error while sending the messages.
    Thanks,
    Arun Jadhav

    Hi Arun,
    As far as Resubmittting is concerned, there are two ways by which you may resubmit a message in 11g -
    1. Through UI (http://blogs.oracle.com/oracleb2bgurus/2009/09/what_do_i_like_most_in_11g_-_r.html)
    2. Through Resubmit command line utility (http://blogs.oracle.com/oracleb2bgurus/2009/09/b2b_commandline_utilities.html)
    Notification is not an in built mechanism in Oracle b2b. You may like to implement the same using BPEL. As Nitesh mentioned, by default exception/error message is enqueued to IP_IN_QUEUE and has the recipient name b2berroruser. You may develope a BPEL process listening for error messages (recipient name=b2berroruser), and perform required notification processing (EMail, SMS, Fax etc.) in that.
    Regards,
    Anuj

  • Unable to send an email with Adobe Reader X

    I am using Outlook 2010 as my default email client. Every time I try sending an email I get this error. Either there is no default mail client or the current mail client cannot fulfill the request. Please run Microsoft Outlook and set it as the default mail client. I no fo a fact this is my email client what can I do? Any help would be great. Thanks fo any input. Using Win 7 64bit ultimate as OS.

    I am using Outlook 2010 as my default email client. Every time I try sending an email I get this error. Either there is no default mail client or the current mail client cannot fulfill the request. Please run Microsoft Outlook and set it as the default mail client. I no fo a fact this is my email client what can I do? Any help would be great. Thanks fo any input. Using Win 7 64bit ultimate as OS.

  • Error while sending by email a PDF from SMARTFORM

    Hi all.
    Wer'e upgrading to EP4 and I can send smartform PDF by email but get an error message while trying to open it.
    *FORM convert_otf_2_pdf.
      call function 'CONVERT_OTF_2_PDF'
        importing
          bin_filesize           = lv_len_in  
        tables
          otf                    = gs_return-otfdata[]
          doctab_archive         = it_docs[]
          lines                  = lt_tline[]
        exceptions
          err_conv_not_possible  = 1
          err_otf_mc_noendmarker = 2
          others                 = 3.
      if sy-subrc ne 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    *then to send it as Email attachemnt we need to format the PDF data
      call function 'SX_TABLE_LINE_WIDTH_CHANGE'
        exporting
          line_width_dst              = '255'
        tables
          content_in                  = lt_tline
          content_out                 = lt_objbin
        exceptions
          err_line_width_src_too_long = 1
          err_line_width_dst_too_long = 2
          err_conv_failed             = 3
          others                      = 4.
      clear ls_solisti.
      ls_solisti = 'Payment Notification'.
      append ls_solisti to lt_objtxt.
    DESCRIBE TABLE lt_objtxt LINES lv_lines.
    READ TABLE lt_objtxt INDEX lv_lines.
      ls_doc_chg-obj_name = 'Payment Notification'.
      ls_doc_chg-expiry_dat = sy-datum + 10.
      ls_doc_chg-obj_descr =  'Payment Notification'.
      ls_doc_chg-sensitivty = 'F'.
      ls_doc_chg-doc_size = 255.
      ls_objpack-head_start = 1.
      ls_objpack-head_num = 0.
      ls_objpack-body_start = 1.
      ls_objpack-body_num = 1. "lv_lines.
      ls_objpack-doc_type = 'RAW'.
      append ls_objpack to lt_objpack.
    (pdf-Attachment)
      ls_objpack-transf_bin = 'X'.
      ls_objpack-head_start = 1.
      ls_objpack-head_num = 0.
      ls_objpack-body_start = 1.
      describe table lt_objbin lines lv_lines.
      "READ TABLE lt_objbin INDEX lv_lines.
      ls_objpack-doc_size = lv_lines * 255 .
      ls_objpack-body_num = lv_lines.
      ls_objpack-doc_type = 'PDF'.
      ls_objpack-obj_name = 'NOTIF'.
      ls_objpack-obj_descr = 'Payment Notif.'.
      append ls_objpack to lt_objpack.
      clear lt_dli[].
      lv_name = p_list.
      call function 'SO_DLI_READ_API1'
        exporting
          dli_name                   = lv_name
          dli_id                     = '000000000001'
          shared_dli                 = 'X'
        tables
          dli_entries                = lt_dli
        exceptions
          dli_not_exist              = 1
          operation_no_authorization = 2
          parameter_error            = 3
          x_error                    = 4
          others                     = 5.
      if sy-subrc eq 0 and
        lt_dli[] is not initial.
    clear ls_reclist.
        ls_reclist-receiver = p_list.
        ls_reclist-rec_type = 'C'.
        append ls_reclist to lt_reclist.
      endif.
      call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        exporting
          document_data              = ls_doc_chg
          put_in_outbox              = ''
        tables
          packing_list               = lt_objpack
          object_header              = ls_objhead
          contents_bin               = lt_objbin
          contents_txt               = lt_objtxt
          receivers                  = lt_reclist
        exceptions
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          others                     = 8.
    What's wrong ??
    Thanks all,
    Rebeka

    Hello,
    Try below code
    LOOP AT gt_check_data INTO gw_inc_payment.
              CLEAR wa_pa0105.
              READ TABLE gt_pa0105 INTO wa_pa0105
                                   WITH KEY pernr = gw_inc_payment-pernr.
              IF sy-subrc = 0.      ELSE.             CONDENSE  wa_pa0105-usrid_long NO-GAPS.
                TRANSLATE wa_pa0105-usrid_long TO LOWER CASE.
              ENDIF.
              CALL FUNCTION 'ZHR_ITA_MAIL_PDF'
                EXPORTING
                  im_incentive       = gw_ita_inc
                  im_flag            = 'X'
                IMPORTING
                  ls_job_output_info = ls_op_info
                EXCEPTIONS
                  cntl_error_ctrl    = 1
                  cntl_error_cont    = 2
                  cntl_error_load    = 3
                  cntl_error_show    = 4
                  OTHERS             = 5.
              IF sy-subrc <> 0.
                MESSAGE text-024 TYPE 'E'.
              ELSE.
                CLEAR gt_tline[].
                CALL FUNCTION 'CONVERT_OTF'
                  EXPORTING
                    format                = 'PDF'
                  IMPORTING
                    bin_filesize          = g_pdfsize
                  TABLES
                    otf                   = ls_op_info-otfdata
                    lines                 = gt_tline
                  EXCEPTIONS
                    err_max_linewidth     = 1
                    err_format            = 2
                    err_conv_not_possible = 3
                    err_bad_otf           = 4
                    OTHERS                = 5.
                IF sy-subrc <> 0.
                  IF gt_tline IS INITIAL.
                    MESSAGE text-023 TYPE 'E'.
                  ENDIF.
                ELSE.
          Data handling with required length
                  LOOP AT gt_tline INTO gw_tline.
                    lv_pos = 255 - lv_len.
                    IF lv_pos > 134.                          "length of pdf_table
                      lv_pos = 134.
                    ENDIF.
                    gw_objbin+lv_len = gw_tline(lv_pos).
                    lv_len = lv_len + lv_pos.
                    IF lv_len = 255.                          "length of out (contents_bin)
                      APPEND gw_objbin TO gt_objbin.
                      CLEAR: gw_objbin, lv_len.
                      IF lv_pos < 134.
                        gw_objbin = gw_tline+lv_pos.
                        lv_len = 134 - lv_pos.
                      ENDIF.
                    ENDIF.
                  ENDLOOP.
                  IF lv_len > 0.
                    APPEND gw_objbin TO gt_objbin.
                  ENDIF.
                  CLEAR gw_objbin.
            Mail process with the PDF attachment
                  PERFORM mail_process_attach USING wa_pa0105-usrid_long.
                ENDIF.
              ENDIF.
            ENDLOOP.
    FORM mail_process_attach USING lv_receive TYPE comm_id_long.
    **//--- For Sending eMail
      DATA :  it_packing_list TYPE TABLE OF  sopcklsti1,
              wa_packing_list TYPE sopcklsti1,
              it_receivers    TYPE TABLE OF somlreci1,
              wa_receivers    TYPE somlreci1,
              it_message      TYPE  TABLE OF solisti1,
              wa_message      TYPE  solisti1,
              it_line         TYPE STANDARD TABLE OF tline,
              wa_line         TYPE tline,
              it_attachment   TYPE TABLE OF solisti1,
              wa_attachment   TYPE solisti1,
              wa_doc_data     TYPE sodocchgi1,
              lv_cnt          TYPE  i,
              lv_tablines     TYPE i,
              lv_subject      TYPE so_obj_des,
              lv_incref       TYPE string.
    *--Populating Mail Recepients
      wa_receivers-rec_type   = 'U'.
      wa_receivers-com_type   = 'INT'.
      wa_receivers-notif_del  = 'X'.
      wa_receivers-notif_ndel = 'X'.
      wa_receivers-express    = 'X'.
    assgining a receiver's mail id
      wa_receivers-receiver   = lv_receive.
      APPEND wa_receivers TO it_receivers.
      CLEAR wa_receivers.
    *--Populating the body
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          client                  = sy-mandt
          id                      = 'ST'
          language                = sy-langu
          name                    = gc_so10_name
          object                  = 'TEXT'
        TABLES
          lines                   = it_line
        EXCEPTIONS
          id                      = 1
          language                = 2
          name                    = 3
          not_found               = 4
          object                  = 5
          reference_check         = 6
          wrong_access_to_archive = 7
          OTHERS                  = 8.
      IF sy-subrc = 0.
        LOOP AT it_line INTO wa_line.
          wa_message-line = wa_line-tdline.
          APPEND wa_message TO it_message.
          CLEAR : wa_line, wa_message.
        ENDLOOP.
      ENDIF.
    *//---  Populate the subject/generic message attributes
      wa_doc_data-obj_langu  = sy-langu.
      READ TABLE it_attachment INTO wa_attachment INDEX lv_cnt.
      wa_doc_data-doc_size   = ( lv_cnt - 1 ) * 255 + STRLEN( wa_attachment ).
      wa_doc_data-obj_name   = 'SAPRPT'.
    *//--- Subject Begin
      CLEAR : lv_subject.
      lv_subject = gw_inc_payment-pernr.
      SHIFT  lv_subject LEFT DELETING LEADING '0'.
      CONCATENATE text-009 '(' lv_subject ')'
                  INTO  wa_doc_data-obj_descr
                  SEPARATED BY space.
    *//--- Subject End
      wa_doc_data-sensitivty = 'F'.
    *--Describe the body of the message
      CLEAR : wa_packing_list, it_packing_list[].
      wa_packing_list-transf_bin  = space.
      wa_packing_list-head_start  = 1.
      wa_packing_list-head_num    = 0.
      wa_packing_list-body_start  = 1.
      DESCRIBE TABLE it_message LINES wa_packing_list-body_num.
      wa_packing_list-doc_type    = 'RAW'.
      APPEND wa_packing_list TO it_packing_list.
    Filling the attachment table
      DESCRIBE TABLE gt_objbin LINES lv_tablines.
      wa_packing_list-transf_bin  = 'X'.
      wa_packing_list-head_start  = 1.
      wa_packing_list-head_num    = 0.
      wa_packing_list-body_start  = 1.
      wa_packing_list-body_num    = lv_tablines.
      wa_packing_list-doc_type    = 'PDF'.
      wa_packing_list-obj_name    = 'ATTACHMENT'(a01).
    *//--- Attachment File Name - Begin
      CLEAR : lv_subject.
      lv_subject = gw_inc_payment-pernr.
      lv_incref  = gw_inc_payment-incref.
      SHIFT lv_subject LEFT DELETING LEADING '0'.
      SHIFT lv_incref  LEFT DELETING LEADING '0'.
      CONCATENATE text-011
                  lv_subject
                  gw_inc_payment-itafy
                  lv_incref
                  INTO wa_packing_list-obj_descr
                  SEPARATED BY '_'.
    *//--- Attachment File Name - End
      wa_packing_list-doc_size    = lv_tablines * 255.
      APPEND wa_packing_list TO it_packing_list.
      CLEAR wa_packing_list.
    calling the function module to send the mail
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data              = wa_doc_data
          put_in_outbox              = 'X'
          sender_address             = gc_sender
          sender_address_type        = 'INT'
          commit_work                = 'X'
        TABLES
          packing_list               = it_packing_list
          contents_bin               = gt_objbin[]
          contents_txt               = it_message
          receivers                  = it_receivers
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc <> 0.
        gw_inc_payment-zmail       = '0'.
        gw_inc_payment-mail_status = text-022.
        gw_ita_inc-zmail           = '0'.
        MODIFY  gt_inc_payment  FROM gw_inc_payment
        TRANSPORTING zmail  WHERE incref = gw_inc_payment-incref
                              AND pernr = gw_inc_payment-pernr.
        MODIFY zhr_ita_inc_payk FROM gw_ita_inc.
        MESSAGE text-013 TYPE 'E'.
        CLEAR gw_ita_inc.
      ELSE.
        gw_inc_payment-zmail       = '1'.
        gw_inc_payment-mail_status = text-021.
        gw_ita_inc-zmail           = '1'.
        MODIFY  gt_inc_payment FROM gw_inc_payment
                               TRANSPORTING zmail mail_status
                               WHERE incref = gw_inc_payment-incref AND
                                     pernr = gw_inc_payment-pernr.
        IF sy-subrc = 0.
          MODIFY zhr_ita_inc_payk FROM gw_ita_inc.
          IF sy-subrc = 0.
            MESSAGE text-012 TYPE 'S'.
          ENDIF.
        ENDIF.
        CLEAR gw_ita_inc.
      ENDIF.
      CLEAR : it_packing_list,
              gt_objbin[],
              it_message[],
              it_receivers[],
              wa_doc_data.
    ENDFORM.                    " MAIL_PROCESS_ATTACH
    regards

  • Error in sending Notification email with Embedded CLOB message in the body

    Hi,
    Workflow version is : 2.6.3.5
    Apps Version is 11.5.10.1
    Oracle Database 9.2.0.5.0
    I am embedding a CLOB message document attribute to my Notification
    Message Body.
    Everything works fine when I check my notifications in the "workflow worklist"
    i.e. Oracle Apps. <Notifications> tab.
    but the emails are not going to the users and below message is displayed in the
    status monitor. (eventhough it displays below error - I can able to respond the notifications using the worklist and can able to COMPLETE the workflow process
    successfully)
    Please help me to resolve the below error, so that the Same notification which I am able to see using the workflow worklist should be sent to the user in email as embedded text.
    NOTE: there is no problem with the Package XXDB_OKC_CONTRACTS_WF_PKG, as it is not changed and I even verified it before and after this error that this package is indeed in VALID status.
    Workflow Errors: XXDBCAPR, SDA-10314
    Failed Activity Send Approve_Reject Responce Notification
    Activity Type Notice
    Error Name WF_ERROR
    Error Message [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: 2018: Unable to generate the notification XML. Caused by: 2020: Error when getting notification content. Caused by: ORA-04061: existing state of has been invalidated ORA-04061: existing state of package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" has been invalidated ORA-04065: not executed, altered or dropped package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" ORA-06508: PL/SQL: could not find program unit being called Wf_Notification.GetAttrClob(18841, MESSAGE_BODY, text/html) Wf_Notification.oldGetAttrC' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'. ERROR_STACK= WF_MAIL.GetLOBMessage3(18841, WFMAILER, 2020: Error when getting notification content. Caused by: ORA-04061: existing state of has been invalidated ORA-04061: existing state of package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" has been invalidated ORA-04065: not executed, altered or dropped package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" ORA-06508: PL/SQL: could not find program unit being called Wf_Notification.GetAttrClob(18841, MESSAGE_BODY, text/html) Wf_Notification.oldGetAttrClob(18841, MESSAGE_BODY, text/html) WF_NOTIFICATION.GetFullBody(nid => 18841, disptype => text/html) WF_MAIL.GetLOBMessage3(nid => 18841, r_ntf_pref => MAILHTML), Step -> Getting text/html body) WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 18841) WF_XML.Generate(oracle.apps.wf.notification.send, 18841) WF_XML.Generate(oracle.apps.wf.notification.send, 18841) Wf_Event.setMessage(oracle.apps.wf.notification.send, 18841, WF_XML.Generate) Wf_Event.dispatch_internal()
    Error Stack
    thanks,
    Shashi
    NOTE: there is no problem with the Package XXDB_OKC_CONTRACTS_WF_PKG, as it is not changed and I even verified it before and after this error that this package is indeed in VALID status.

    Hi,
    Below solution worked for us :
    Whenever the document message related procedure is modified and compiled we need to STOP and START all the workflow related services,
    Homepage -> Workflow Manager -> Service Components => STOP all Services => Start All Services
    NOTE: Even when we bounced the database, application server the error is still occuring, only when we STOP and START the services whenever we compiled the document message procedures then the emails are getting processed.
    The Metalink Forum note 588112.992 (ORA-04061: existing state of has been invalidated ORA-04061: existing state of package) is helpful in getting the solution Below is a snippet of the same :
    From: David Hsu 01-Aug-05 20:06
    Subject: Re : ORA-04061: existing state of has been invalidated ORA-04061:
    existing state of package
    Loren,
    we had a similar ORA-04061 error when we tried to compile a Workflow package
    after we modified it with new attributes. What we were told was that some
    workflow process or listener is still "thinking" the package is invalid even
    though it is valid. Whenever packages referred by the workflow process is
    changed, the Agent listeners and mailer must be bounced. Worst case scenario
    if the error still persist is that the database may have to be bounced as
    well.
    Please try bouncing the Agent listeners or, if it possible, bounce the
    database and see if you are still getting the error after that.
    The listeners that you need to bounce are all the listeners that you have
    enabled under OAM > Workflow Manager > Service Components,
    including the Workflow Notification Mailer.
    Hope this helps thanks,
    Shashi

  • CLOB: Error in sending Notification email with Embedded message in the body

    Hi,
    Oracle Database 9.2.0.5.0
    Workflow version is : 2.6.3.5
    Apps Version is 11.5.10.1
    I am embedding a CLOB message document attribute to my Notification
    Message Body.
    Everything works fine when I check my notifications in the "workflow worklist"
    i.e. Oracle Apps. <Notifications> tab.
    but the emails are not going to the users and below message is displayed in the
    status monitor. (eventhough it displays below error - I can able to respond the notifications using the worklist and can able to COMPLETE the workflow process
    successfully)
    Please help me to resolve the below error, so that the Same notification which I am able to see using the workflow worklist should be sent to the user in email as embedded text.
    NOTE: there is no problem with the Package XXDB_OKC_CONTRACTS_WF_PKG, as it is not changed and I even verified it before and after this error that this package is indeed in VALID status.
    Workflow Errors: XXDBCAPR, SDA-10314
    Failed Activity Send Approve_Reject Responce Notification
    Activity Type Notice
    Error Name WF_ERROR
    Error Message [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: 2018: Unable to generate the notification XML. Caused by: 2020: Error when getting notification content. Caused by: ORA-04061: existing state of has been invalidated ORA-04061: existing state of package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" has been invalidated ORA-04065: not executed, altered or dropped package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" ORA-06508: PL/SQL: could not find program unit being called Wf_Notification.GetAttrClob(18841, MESSAGE_BODY, text/html) Wf_Notification.oldGetAttrC' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'. ERROR_STACK= WF_MAIL.GetLOBMessage3(18841, WFMAILER, 2020: Error when getting notification content. Caused by: ORA-04061: existing state of has been invalidated ORA-04061: existing state of package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" has been invalidated ORA-04065: not executed, altered or dropped package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" ORA-06508: PL/SQL: could not find program unit being called Wf_Notification.GetAttrClob(18841, MESSAGE_BODY, text/html) Wf_Notification.oldGetAttrClob(18841, MESSAGE_BODY, text/html) WF_NOTIFICATION.GetFullBody(nid => 18841, disptype => text/html) WF_MAIL.GetLOBMessage3(nid => 18841, r_ntf_pref => MAILHTML), Step -> Getting text/html body) WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 18841) WF_XML.Generate(oracle.apps.wf.notification.send, 18841) WF_XML.Generate(oracle.apps.wf.notification.send, 18841) Wf_Event.setMessage(oracle.apps.wf.notification.send, 18841, WF_XML.Generate) Wf_Event.dispatch_internal()
    Error Stack
    thanks,
    Shashi
    NOTE: there is no problem with the Package XXDB_OKC_CONTRACTS_WF_PKG, as it is not changed and I even verified it before and after this error that this package is indeed in VALID status.

    Hi,
    Below solution worked for us :
    Whenever the document message related procedure is modified and compiled we need to STOP and START all the workflow related services,
    Homepage -> Workflow Manager -> Service Components => STOP all Services => Start All Services
    NOTE: Even when we bounced the database, application server the error is still occuring, only when we STOP and START the services whenever we compiled the document message procedures then the emails are getting processed.
    Metalink Forum note 588112.992 (ORA-04061: existing state of has been invalidated ORA-04061: existing state of package) is helpful in getting the solution Below is a snippet of the same :
    From: David Hsu 01-Aug-05 20:06
    Subject: Re : ORA-04061: existing state of has been invalidated ORA-04061:
    existing state of package
    Loren,
    we had a similar ORA-04061 error when we tried to compile a Workflow package
    after we modified it with new attributes. What we were told was that some
    workflow process or listener is still "thinking" the package is invalid even
    though it is valid. Whenever packages referred by the workflow process is
    changed, the Agent listeners and mailer must be bounced. Worst case scenario
    if the error still persist is that the database may have to be bounced as
    well.
    Please try bouncing the Agent listeners or, if it possible, bounce the
    database and see if you are still getting the error after that.
    The listeners that you need to bounce are all the listeners that you have
    enabled under OAM > Workflow Manager > Service Components,
    including the Workflow Notification Mailer.
    Hope this helps thanks,
    Shashi

Maybe you are looking for

  • (Solved) one sound application at a time

    hello,archers! I moved from gnome to Kde(at last) and faced the issue. E.G if amarok plays musik there's no system notifications and smplayer plays no sound t.i only one programm can use alsa at a time. I have latest kde, alsa and gstreamer and xine

  • I cannot install ITunes 10.6, my computer keeps blocking on it.

    I cannot install ITunes 10.6, my computer keeps blocking on it. At first I had problems with the upgrade, then I couldn't start iTunes anymore, so I had to uninstall it in orde to reinstall it again. However that doesn't work. Everytime I run the ins

  • ITunes 10.2.2 no longer organizing library

    I have been adding video content to iTunes, and it was working normally. I've got "Keep iTunes Media folder organized" and "Copy files to iTunes Media folder when adding to" checked, and when I add the files, they moved into the iTunes Media folder.

  • Unconstrained Resize of an object - not working

    When I try to resize an object with the 'constrain width and height' turned off (which would allow me to resize without preserving the ratio aspect) - it still size 'constrains' the resize of the object.

  • I cannot sync anything to my ipod touch

    Today I purchased at 32gb ipod touch. However, when putting it into my computer it came up with: "device is not connected" and "disk cannot be read" I have changed both the cables i use and the USB ports but my problem does not seem to go away. i hav