E-mail via Workflow task is not send they say aprox once a month

Hi there
I am asked to check one system with a “workflow” running 2+ years. It is actually an task with method which sends an e-mail when Purchase requisition is created.
It istriggered by event in user exit(via function).
The version is IS oil 4.6C.
The problem is that e-mail is not send they say aprox once a month (which I personaly do not believe). However I have to do something (and explain what could be the reason).
What would be your idea to do?
I have in mind to subtye BUS2081 to e.g zz BUS2081 and then delegate bus2081 system wide(which is not done (but I think this will not solve the problem).
In addition all technical details:
I created event  ZCREATED for object ZABUS2105 (done as copy of BUS2105) in user exit MEREQ001 (EXIT_SAPLMEREQ_008) while creating purchase requisition via z transaction me51n and my colleague added this function in MV45AFZZ(while creating purchase order from sales order).
CLEAR EVENT_CONTAINER. REFRESH EVENT_CONTAINER.
i_banfn = IM_BANFN_NEW.
CALL FUNCTION 'SWE_EVENT_CREATE'
       EXPORTING
            OBJTYPE           = 'ZABUS2105'
            OBJKEY            = i_banfn
            EVENT             = 'ZCREATED'
                      creator           = sy-uname
       TABLES
            EVENT_CONTAINER   = EVENT_CONTAINER
This event triggers workflow task TS92000018
Task TS92000018 is a  background task and has  atribute »general task« . Metoda (program) is:
BEGIN_METHOD ZWF_SEND CHANGING CONTAINER. 
   call function 'ZWF_SEND_MAIL7XX'      
      Exporting                        
       banfn = OBJECT-KEY-NUMBER.                                                                               
END_METHOD.
Function Z_SEND_MAIL7XX:
FUNCTION ZWF_SEND_MAIL7XX.
""Local interface:
*"       IMPORTING
*"             REFERENCE(BANFN) TYPE  BANFN OPTIONAL
*"             REFERENCE(STATUS) DEFAULT 1
  DATA: reclist   TYPE STANDARD TABLE OF somlreci1  WITH HEADER LINE,
        objtxt    TYPE STANDARD TABLE OF solisti1   WITH HEADER LINE,
        objpack   TYPE STANDARD TABLE OF sopcklsti1 WITH HEADER LINE.
  DATA: doc_chng  TYPE sodocchgi1,
        tab_lines TYPE sy-index,
        subject   TYPE so_obj_des,
        email like zwf_emailko7XX,
        menge(17) TYPE c,
        I_Zwf_obdelan7xx like zwf_obdelan7xx,
        I_eban like eban  occurs 10 with header line.
        SELECT SINGLE * FROM Zwf_obdeLAN7xx into i_zWF_obdelan7xx WHERE
BANFN
EQ
BANFN.
  IF sy-subrc NE 0.
KONCNEMU
SELECT single * FROM eban where banfn = banfn.
    SELECT single * FROM zwf_emailko7XX into email
                    WHERE  ekgrp = eban-ekgrp.
refresh reclist.
    reclist-receiver = email-SMTP_ADDR.
    reclist-rec_type = 'U'.
    APPEND reclist.
CONCATENATE text-015 banfn INTO subject SEPARATED BY space.
  doc_chng-obj_name = 'SENDFILE'.
Mail Subject
  doc_chng-obj_descr = subject."text-001.BO22.11.2005
Mail Contents
refresh i_eban.
  CONCATENATE text-015 banfn text-016 sy-mandt text-017 eban-ernam INTO
objtxt
SEPARATED BY
space.
    APPEND objtxt.
select * from eban into i_eban where banfn = banfn.
menge = i_eban-menge.
  CONCATENATE  i_eban-matnr i_eban-txz01 menge i_eban-meins INTO objtxt
SEPARATED
BY space.
  APPEND objtxt.
  append i_eban. clear i_eban.
endselect.
  DESCRIBE TABLE objtxt LINES tab_lines.
  READ TABLE objtxt INDEX tab_lines.
  doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
  CLEAR objpack-transf_bin.
  objpack-head_start = 1.
  objpack-head_num = 0.
  objpack-body_start = 1.
  objpack-body_num = tab_lines.
  objpack-doc_type = 'RAW'.
  APPEND objpack.
  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
       EXPORTING
            document_data              = doc_chng
            put_in_outbox              = 'X'
       TABLES
            packing_list               = objpack
           object_header              = objhead
           contents_bin               = objbin
            contents_txt               = objtxt
            receivers                  = reclist
       EXCEPTIONS
            too_many_receivers         = 1
            document_not_sent          = 2
            operation_no_authorization = 4
            OTHERS                     = 99.
insert into zwf_obdelan7xx values banfn.
commit work.
endif.
ENDFUNCTION.

There are several things you can check before starting to check the code/solution.
I would start by sending an e-mail from SAP Business Workplace - either to someone who say he/she receives e-mail only once a month, or to yourself if that is not possible. Check how long it takes from the mail is sent until it is received. Once the first mail has been received, send another mail and check the time again (to determine the sendmail process' interval). Of course you can probably just check the configuration of send processes ... but you may as well give them some hard proof.
Secondly, check the send log (transaction SOST) - and find out how often there are the type of messages you are interested in. Alternatively, test the workflow and verify that messages are sent immediately.

Similar Messages

  • Mail receives OK but will not send for smtp account.  Exchange server receives/sends OK

    mail receives OK but will not send for smtp account.  Exchange server receives/sends OK  I'm away from home, using a family-member's wireless network that has always worked OK in the past.  Today, the same problem occured while waiting in a hospital waiting lounge.  Any ideas?

    The outgoing mail server may be rejecting mail from your network address. Typically that happens when your mail service provider is also your ISP, and you connect to it from another network. The SMTP server will allow connections without a password from anywhere, but it will only relay mail from within the ISP's network. It could also be that your account on the server has expired or been suspended.
    If you need to send mail from outside your ISP's network, use an independent mail service provider. I don't have a specific recommendation.

  • I can receive mail on my iPad but not send it; tried deleting and adding email account, I can receive mail on my iPad but not send it; tried deleting and adding email account

    I can receive mail on my iPad but not send it; tried deleting and adding email account, I can receive mail on my iPad but not send it; tried deleting and adding email account.

    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
    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 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
    The iPad's Mail app has no provisions for creating groups. However, 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/group-email!-mail-client-attachments/id380690305 ?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.
     Cheers, Tom

  • I am able t receive e-mails on my ipad3, but not send them. All my settings are correct

    I am able to send e-mails from my ipad3, but not send them. My settings are definately correct

    To expound a little on lllaass post ....
    Go into your email account's settings : Settings > Mail, Contacts, Calendars , tap on the account on the right-hand side, go into Account, then SMTP (under Outgoing Mail Server) and try filling in your email account name and password (they might show as 'optional' at the moment) and see if that helps

  • After updating my iPhone 4 to 5IOS my letters from my mail(i use google) does not send

    After updating my iPhone 4 to 5IOS my letters from my mail(i use google) does not send

    I tried that but I still got the message "Unable to verify account information."  I saved it anyway and when I go to the Exchange email account it says "Cannot Get Mail" "The connection to the server failed."  We are running Microsoft Exchange 2010 and I was always able to sync my calendar and email before I upgraded to IOS 6.

  • HT5569 i can connect to internet and e mail via wi fi , however not out with these. I have just moved from i phone 3 to 4s is it the settings?

    i can connect to internet and e mail via wi fi , however not out with these. I have just moved from i phone 3 to 4s is it the settings?

    Let me see if I understand correctly, you can access the Internet and email when on wifi, however when not on wifi, none of this works? Is this correct? If so, do you have a data plan with your carrier? Do you have cellular data turned on in Settings? When you look at your carrier in the upper left corner, do you see a signal, carrier name, and then 3G, 4G or LTE displayed? Have you contacted your carrier about this?

  • HT201269 Hi I purchased iphone5 in uk..Now am in India before coming I unlocked my iphone using my mail id.but now its not activating they telling now this mail id is not used to unlock this iphone.what can i do now?please anyone tel me the answers

    Hi I purchased iphone5 in uk..Now am in India before coming I unlocked my iphone using my mail id.but now its not activating they telling now this mail id is not used to unlock this iphone.what can i do now?please anyone tel me the answers

    Only the Carrier it is Locked to can Unlock it.
    Contact the Carrier.

  • Cant send Mails via Workflow CRM 2015

    Hi,
    I have two workflows for Cases ... in booth I'm trying to send Mails. In the on it works fine. In the other I'm getting the following Error:
    [Recipient is Contact or Responsible Contact]
    Plugin Trace:
    [Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.SendEmail]
    [SendEmailStep3: Send Mail To Responsible]
    Error Message:
    Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.Crm.Workflow.Services.SendEmailActivityService.<>c__DisplayClass1.<SendEmailInternal>b__0(IOrganizationService sdkService)
       at Microsoft.Crm.Workflow.Services.ActivityServiceBase.ExecuteInTransactedContext(ActivityDelegate activityDelegate)
       at Microsoft.Crm.Workflow.Services.SendEmailActivityService.ExecuteInternal(ActivityContext executionContext, SendEmail sendEmail)
       at Microsoft.Crm.Workflow.Services.SendEmailActivityService.Execute(ActivityContext executionContext, SendEmail sendEmail)
       at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
       at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
    Any ideas what I can do?
    Thanks for your help
    EDIT: the first workflow is from the 2013 Version .. the second not working prozess is buildet in 2015

    Hello Mcgum,
    Though I am not a techie :(, I guess this is due to some privilege issue. Check if the current user is enabled to send emails on behalf of other user.
    I hope it should work.
    Regards, Abhishek Bakshi If you find this post helpful then please Vote as Helpful and Mark As Answer. Check my blog on https://mydynamicscrmblog.wordpress.com/

  • Workflow notification are not sending to employee

    gusy,
    on 11.5.10
    We have created New type in Special information which access by SSHR,In this page in sshr employee enter their information and send to manager for approval,while submiting system shoud be generated two notification one for requester and other for supervisor,but the requestor notification are not sending while supervisor is woking fine,so how can i rectify what the exact prolem with requestor notification,
    could you please adive..
    Thanks

    The workflow notification back to the requestor is just an FYI notification. When the Workflow Mailer emails a copy of the FYI notification it automatically closes the workflow notification.
    Could it be that this is happening? Try this:
    1) Login as the Requestor and access their Worklist
    2) Change the view to see 'Closed' Notifications
    3) Do you see the notification in the list of closed notifications?
    If so, try temporarily disabling the Workflow Mailer so that no email copies are sent and then repeat the SIT request. Does the requestor now see that notification in their 'Open' notifications?

  • Workflow - Task Due Date, Send Reminder, Possible ?

    Some sharepoint workflow questions
    1. I am assigning a task but how is the due date calculated?
    2. I need to send a reminder if the task is not completed by Friday 12:00 noon to the assigned person. How can I do this?

    Hi SP, you can do that a couple ways: 1) have a due date column with a workflow that is triggered when the date is past the due date. 2) make a calculated column taking the date and subtracting x number of days. This will have the workflow send out
    the reminder before the due date.
    Your calculation would be something like, if "today's date" = "due date - 7," then start workflow (to send out the reminder 7 days before).
    cameron rautmann

  • I-MAIL. Can receive but not send. Suddenly outgoing SMTP will not function.

    I-Mail. Can receive mail but not send. Pass 2 wks. Outgoing SMTP server says I'm OFFLINE. Tried the following ----Mail, Preferences, Out Mail server, made sure it didn't say NONE. Hit edit, went to following page, typed my user name & passwd-----Still get drop down window --- says SMTP server rejected passwd 4 my acct. If can't resolve, off to the GENIUS.
    All help appreciated-----Lester

    Problem is resolved

  • Mail Receiver Adapter: Message gets not send:

    Hi everybody,
    in message-monitoring the mail to be send remains with:
    Mail: Receiver adapter entered with qos ExactlyOnce
    It gets not send.
    Any ideas?
    Thanks regards
    Mario

    Hi all,
    http://host:port/MessagingSystem/monitor/monitor.jsp   says also
    Mail: calling the adpter for processing
    But the message/mail gets not send.
    Any ideas?
    regards
    Mario

  • I am getting undeliverable mail from people I did not send mail to.  How can I get this to stop?

    I recently received rejected mail notices from Postmaster that I did not send and are encrytped.  My address is being used, and I do not know these web addresses these emails were being sent to.  How can I resolve this issue? 

    We will need more information to be able to assist you.
    These message yoy are receiving are probably just a particular type of spam.  However it is also possible (unlikely) that your email account is being used to send spam, and that these are the bounce messages.
    To tell the difference, you need to look at the email headers.  Open the message, then go to the View menu and select Message -> All Headers.
    Select the text and post it back here (remembering to obscure your own email address first).
    Cheers,
    Rodney

  • Firefox crashes when I try to send an e-mail (hotmail) - can open but not send or reply

    I can send e-mail using I.E. but not Firefox
    The message I get is " crash reporter cannot send a crash report -- the application did not leave a crash dump file"

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Mac mail 7.3 receiving but not sending

    Hello everyone,
    I have been stuggling with this problem for three days now.  I set up a new e-mail account (for a new job) and the new account will receive fine but not send.  Here is the general set of steps that I followed:
    *  Used IMAP unsecured - smtp port 25.  Failed due to port blocking
    *  Used IMAP unsecured - smtp port 587.  Works on other servers but this one not.
    *  Used IMAP and smtp secured with SSL - smtp port 465.  Failed.
    The last one is what I believe I should be using.  I get the standard "Could not connect to this SMTP server..." message on connection doctor, and all I get from the log is:
    INITIATING CONNECTION Jun 10 11:04:13.633 host:vps2955.inmotionhosting.com -- port:465 -- socket:0x0 -- thread:0x608002468c00
    CONNECTED Jun 10 11:04:14.278 [kCFStreamSocketSecurityLevelNone] -- host:vps2955.inmotionhosting.com -- port:465 -- socket:0x600000ad8d40 -- thread:0x608002468c00
    With no "READ" or "WROTE" messages or anything else.  The "kCFStreamSocketSecurityLevelNone" seems odd, but I've seen that elsewhere.  I've also tried:
    * Turning off SSL and using 465 - failed
    * Deleting all related keychain items - no effect (after accepting the cert)
    * Running keychain first aid - no problems
    I contact inmotion hosting and they said my settings all look right.  They can probe further, but I need to coordinate with my boss to get permissions for them to do that (maybe later today).
    One additional thing - using network utility I am able to see port 465 on this server as expected.
    I'm at a loss.  I've set up many, many e-mail accounts in the past and this is the first time I have ever had these sorts of problems.  Help!!!

    Under no circumstances should you ever change the trust settings of any SSL certificate, unless you created it yourself. That's just about the most dangerous thing you can do with a computer.
    Back up all data, then take each of the following steps that you haven't already taken. Stop when the problem is resolved.
    Step 1
    From the menu bar, select
     ▹ System Preferences... ▹ Date & Time
    Select the Time Zone tab in the preference pane that opens and check that the time zone matches your location. Then select the Date & Time tab. Check that the data and time shown (including the year) are correct, and correct them if not.
    Check the box marked
    Set date and time automatically
    if it's not already checked, and select one of the Apple time servers from the menu next to it.
    Step 2
    Triple-click anywhere in the line below on this page to select it:
    /System/Library/Keychains/SystemCACertificates.keychain
    Right-click or control-click the highlighted line and select
    Services ▹ Show Info
    from the contextual menu.* An Info dialog should open. The dialog should show "You can only read" in the Sharing & Permissions section.
    Repeat with this line:
    /System/Library/Keychains/SystemRootCertificates.keychain
    If instead of the Info dialog, you get a message that either file can't be found, reinstall OS X.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. Open a TextEdit window and paste into it by pressing command-V. Select the line you just pasted and continue as above.
    Step 3
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    In the upper left corner of the window, you should see a list headed Keychains. If not, click the button in the lower left corner that looks like a triangle inside a square.
    In the Keychains list, there should be items named System and System Roots. If not, select
    File ▹ Add Keychain
    from the menu bar and add the following items:
    /Library/Keychains/System.keychain
    /System/Library/Keychains/SystemRootCertificates.keychain
    From the Category list in the lower left corner of the window, select Certificates. Look carefully at the list of certificates in the right side of the window. If any of them has a a blue-and-white plus sign or a red "X" in the icon, double-click it. An inspection window will open. Click the disclosure triangle labeled Trust to disclose the trust settings for the certificate. From the menu at the top, select
    When using this certificate: Use System Defaults
    Close the inspection window. You'll be prompted for your administrator password to update the settings. Revert all the certificates with non-default trust settings.Never again change any of those settings.
    Step 4
    Select My Certificates from the Category list. From the list of certificates shown, delete any that are marked with a red X as expired or invalid.
    Export all remaining certificates, delete them from the keychain, and reimport. For instructions, select
    Help ▹ Keychain Access Help
    from the menu bar and search for the term "export" in the help window. Export each certificate as an individual file; don't combine them into one big file.
    Step 5
    From the menu bar, select
    Keychain Access ▹ Preferences... ▹ Certificates
    There are three menus in the window. Change the selection in the top two to Best attempt, and in the bottom one to  CRL.
    Step 6
    Triple-click anywhere in the line of text below on this page to select it:
    /var/db/crls
    Copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    A folder named "crls" should open. Move all the files in that folder to the Trash. You’ll be prompted for your administrator login password.
    Step 7
    Restart the computer, empty the Trash, and test.

Maybe you are looking for

  • Creative T7900 Why don't 7.1 work with mplayer 10?

    Hi. I have Creative T7900 speaker system and soundblaster audigy 2 ZS platinium pro and my problem is that i can't get the 7.1 surround working with mediaplayer 10,winamp,creative media source when i try to play mp3s or music CDs it just gives me sou

  • BLOB Column Query

    Hi, I have a CLOB column defined NOT NULL with data in it. Its a huge database of almost 2 TB and the management wants it to be reduced. If I need to SHRINK the contents of this column only on selected rows what are my options ? I will be given speci

  • Unicode display with system fonts?? (special characters)

    Hi All. We're working on site that supports a couple different languages: English, Japanese, and now German. We're using dynamic text boxes and Remoting to display internationalized text where necessary. Remoting makes a call to the backend, which re

  • 'Filmstrip" transition background changed to aqua green and off white...how do I get it back to white? FCPX

    Editing a piece it was complete. We went back and omitted a word in the transistion 'filmstrip'. The background is now an off white yellow on "pand down fast' and the 'pan down slow' is a light blue or aqua. These are my selections I can't redo the t

  • IPhone 3G keeps needing to be restored

    My iPhone has worked fine the past year and a half, but recently hasn't been working. It was getting no service in areas where there is service a week or so ago. Two days ago it said iPhone cannot make or receive calls restore needed. I did the resto