I have problem sending a email ..spool not created using custom FM

Hi experts,
i have problem sending a email ..spool not created using custom FM...this the custom FM
* Send email notification
      lv_subject = text-037.
      lv_attachment = text-038.
      CALL FUNCTION 'Z_SEND_EMAIL_FROM_SPOOL'
        EXPORTING
          email1            = lv_email1
          email2            = lv_email2
          email3            = lv_email3
          subject           = lv_subject
          attachment_name   = lv_attachment
        EXCEPTIONS
          spool_not_created = 1
          OTHERS            = 2.
Source code
this is the source code for this FM
IF sy-batch EQ 'X'.
    PERFORM get_job_details.
    PERFORM obtain_spool_id.
    PERFORM convert_spool_to_pdf.
    IF sy-subrc IS NOT INITIAL.
      MESSAGE e040(zhrcd) RAISING spool_not_created.
    ENDIF.
    PERFORM process_email USING email1
                                email2
                                email3
                                subject
                                attachment_name.
    WAIT UP TO 5 SECONDS.
    SUBMIT rsconn01 WITH mode   = 'INT'
                    WITH output = 'X'
                    AND RETURN.
  ENDIF.....
Please let me know
Edited by: Thomas Zloch on Nov 16, 2010 5:53 PM - please use code tags

Hi srinivas ,
Could you please Check
FORM summary_report .
  DATA: lv_success TYPE i,
          lv_error TYPE i,
          lv_total TYPE i.
  DESCRIBE TABLE gt_data LINES lv_success.
DESCRIBE TABLE gt_error LINES lv_error.
  DESCRIBE TABLE gt_message LINES lv_error.
lv_total = lv_success + lv_error.
  lv_total = lv_success.
  gwa_summary-record = text-008."Number of Successful records.
  gwa_summary-number = lv_success.
  APPEND gwa_summary TO gt_summary.
  gwa_summary-record = text-009."Number of error records'.
  gwa_summary-number = lv_error.
  APPEND gwa_summary TO gt_summary.
  gwa_summary-record = text-010."Total number of records processed.
  gwa_summary-number =  lv_total.
  APPEND gwa_summary TO gt_summary.
CLEAR gt_fieldcat.
  gwa_fieldcat_summ-col_pos = 1 .
  gwa_fieldcat_summ-fieldname  = 'RECORD'.
  gwa_fieldcat_summ-tabname = 'GT_SUMMARY'.
  gwa_fieldcat_summ-seltext_l  = text-011."Records
  gwa_fieldcat_summ-outputlen = '70'.
  APPEND gwa_fieldcat_summ TO gt_fieldcat_summ.
  gwa_fieldcat_summ-col_pos = 2 .
  gwa_fieldcat_summ-fieldname  = 'NUMBER'.
  gwa_fieldcat_summ-tabname = 'GT_SUMMARY'.
  gwa_fieldcat_summ-seltext_l  = text-012."Number
  gwa_fieldcat_summ-outputlen = '10'.
  APPEND gwa_fieldcat_summ TO gt_fieldcat_summ.
ENDFORM.                    " SUMMARY_REPORT
*&      Form  ERROR_REPORT
FORM error_report .
gt_fieldcat_err[] = gt_fieldcat[].
  gv_fieldcat_err-col_pos = 1.
  gv_fieldcat_err-fieldname  = 'PERNR'.
  gv_fieldcat_err-tabname = 'GT_MESSAGE'.
  gv_fieldcat_err-seltext_l  = text-070."Employee Number
  gv_fieldcat_err-outputlen = '20'.
  APPEND gv_fieldcat_err TO gt_fieldcat_err.
  gv_fieldcat_err-col_pos = 2.
  gv_fieldcat_err-fieldname  = 'MESSAGE'.
  gv_fieldcat_err-tabname = 'GT_MESSAGE'.
  gv_fieldcat_err-seltext_l  = text-071."Error Message
  gv_fieldcat_err-outputlen = '80'.
  APPEND gv_fieldcat_err TO gt_fieldcat_err.
ENDFORM.                    " ERROR_REPORT
*&      Form  FINAL_REPORT
FORM final_report .
  DATA:lv_layout TYPE slis_layout_alv,
         lt_events_summ TYPE slis_t_event,
         lv_events_summ LIKE LINE OF lt_events_summ,
         lt_events_det TYPE slis_t_event,
         lv_events_det LIKE LINE OF lt_events_det,
         lt_events_err TYPE slis_t_event,
         lv_events_err LIKE LINE OF lt_events_det,
         lt_events_msg TYPE slis_t_event,
         lv_events_msg LIKE LINE OF lt_events_det.
  lv_events_summ-name = 'TOP_OF_PAGE'.
  lv_events_summ-form = 'TOP_OF_PAGE1'.
  APPEND lv_events_summ TO lt_events_summ.
  lv_events_det-name = 'TOP_OF_PAGE'.
  lv_events_det-form = 'TOP_OF_PAGE2'.
  APPEND lv_events_det TO lt_events_det.
  lv_events_err-name = 'TOP_OF_PAGE'.
  lv_events_err-form = 'TOP_OF_PAGE3'.
  APPEND lv_events_err TO lt_events_err.
  lv_events_msg-name = 'TOP_OF_PAGE'.
  lv_events_msg-form = 'TOP_OF_PAGE4'.
  APPEND lv_events_msg TO lt_events_msg.
  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
    EXPORTING
      i_callback_program = sy-repid.
  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
      is_layout                        = lv_layout
      it_fieldcat                      = gt_fieldcat_summ
      i_tabname                        = 'IT_SUMMARY'
      it_events                        = lt_events_summ
  IT_SORT                          =
  I_TEXT                           = ' '
    TABLES
      t_outtab                         = gt_summary
EXCEPTIONS
  PROGRAM_ERROR                    = 1
  MAXIMUM_OF_APPENDS_REACHED       = 2
  OTHERS                           = 3
IF CHK_DTL IS NOT INITIAL.
  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
      is_layout                        = lv_layout
      it_fieldcat                      = gt_fieldcat
      i_tabname                        = 'gt_data'
      it_events                        = lt_events_det
  IT_SORT                          =
  I_TEXT                           = ' '
    TABLES
      t_outtab                         = gt_data
EXCEPTIONS
  PROGRAM_ERROR                    = 1
  MAXIMUM_OF_APPENDS_REACHED       = 2
  OTHERS                           = 3
ENDIF.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
   EXPORTING
     is_layout   = lv_layout
     it_fieldcat = gt_fieldcat_err
     i_tabname   = 'gt_error'
     it_events   = lt_events_err
   TABLES
     t_outtab    = gt_error.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
   EXPORTING
     is_layout   = lv_layout
     it_fieldcat = gt_fieldcat_msg
     i_tabname   = 'gt_message'
     it_events   = lt_events_msg
   TABLES
     t_outtab    = gt_error.
  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
      is_layout   = lv_layout
      it_fieldcat = gt_fieldcat_err
      i_tabname   = 'gt_message'
      it_events   = lt_events_err
    TABLES
      t_outtab    = gt_message.
IF GT_MESSAGE[] IS NOT INITIAL.
  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
      is_layout   = lv_layout
      it_fieldcat = gt_fieldcat_msg
      i_tabname   = 'gt_message'
      it_events   = lt_events_msg
    TABLES
      t_outtab    = gt_message.
ENDIF.
  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
EXPORTING
   i_interface_check             = ' '
  IS_PRINT                      =
   i_screen_start_column         = 0
   i_screen_start_line           = 0
   i_screen_end_column           = 0
   i_screen_end_line             = 0
IMPORTING
  E_EXIT_CAUSED_BY_CALLER       =
  ES_EXIT_CAUSED_BY_USER        =
EXCEPTIONS
  PROGRAM_ERROR                 = 1
  OTHERS                        = 2
ENDFORM.                    " FINAL_REPORT
*&      Form  top_of_page
      text
FORM top_of_page1.                                          "#EC CALLED
  WRITE text-013."SUMMARY REPORT.
ENDFORM.                    "top_of_page
*&      Form  top_of_page2
      text
FORM top_of_page2.                                          "#EC CALLED
  WRITE text-014."DETAIL REPORT.
ENDFORM.                    "top_of_page
*&      Form  top_of_page3
      text
FORM top_of_page3.                                          "#EC CALLED
  WRITE text-015."ERROR REPORT
ENDFORM.                    "top_of_page
*&      Form  EMAIL_NOTIFICATION
FORM email_notification .
  DATA: lv_email1  TYPE somlreci1-receiver,
       lv_email2  TYPE somlreci1-receiver,
       lv_email3  TYPE somlreci1-receiver,
       lv_subject TYPE char200,
       c_flag     TYPE c           VALUE 'X',
       lv_attachment TYPE char50.
  CLEAR: lv_email1,
         lv_email2,
         lv_email3,
         lv_subject,
         lv_attachment.
  SELECT SINGLE email1
                email2
                email3
    FROM zhr_interface_pr
    INTO (lv_email1,lv_email2,lv_email3)
    WHERE zinterfaceid EQ gc_objectid.
  IF sy-subrc EQ 0.
    IF sy-batch EQ 'X'.
Send email notification
      lv_subject = text-037.
      lv_attachment = text-038.
      CALL FUNCTION 'Z_SEND_EMAIL_FROM_SPOOL'
        EXPORTING
          email1            = lv_email1
          email2            = lv_email2
          email3            = lv_email3
          subject           = lv_subject
          attachment_name   = lv_attachment
        EXCEPTIONS
          spool_not_created = 1
          OTHERS            = 2.
      IF sy-subrc <> 0.
      ENDIF.
    ENDIF.
  ENDIF.
ENDFORM.                    "
Edited by: katewinslate@SAP on Nov 17, 2010 12:50 PM

Similar Messages

  • I have problem send any email from iPad2

    I have a very weird situation.
    I had this iPad2 for  a few months and was able to receive and send email using 3 email accounts, from gmail, yahoo and hotmail without any problem.
    Howeverm after I came back from a trip, I could only receive email, but cannot send any email from any of these accounts at all!
    I am using WIFI. I have deleted all email accounts, turned off the ipad2, and started over a couple of times.
    I tried to recreate these account again one by one. After added one account, I tested it only to see no email can be sent!
    THere is no error message, no any information. All I know is the email I sent from my iPad disappeared!
    Any one here can help?
    Thanks!

    Disabling email scanning didn't fix it. I can open the Mozilla email client and it immediately tries to connect to the inbound AT&T mail server but then just sits there with no response. If I try to send a message same thing, tries to connect to outbound AT&T server but nothing. One of the options in the support doc said to remove the saved passwords and when the client restarts it will ask you to save your password again. The client never makes a connection to the server so it never has a chance to authenticate. Its almost like AT&T disabled their POP server.

  • I have an Ipad 2 and are having problems sending out emails in one of my email address. I always get a message reading the email was not sent because the server does not allow relaying. This is an email account POP3. I have no such problem with gmail.

    I have an Ipad 2 and are having problems sending out emails in one of my email address. This is a POP3 email Account? I always get a message reading that the email was not sent because the server does not allow relaying. I have no such problem with gmail. What could be the problem and how do I resolve this. Is it about settings?
    Richard.

    Welcome to the Apple community.
    If you are unable to remember your password, security questions, don’t have access to your rescue address or are unable to reset your password for whatever reason, your only option is to contact Apple ID Support, upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.
    The operator will take you through some steps you may have already tried, however they need to be sure they have exhausted all usual approaches before trying to reset your account, so you should try to be helpful and show patience with the procedure.
    The operator will need to verify they are speaking to the account holder and may ask you some questions that only the account holder could know, and you will need to answer them if the process is to proceed.
    Once the operator has verified your identity they will send a message through to your device which contains an alpha numeric code, which you will need to read back to them.
    Once this has been completed they will send an email to your iCloud email address after a period of 24 hours, so you should check that mail is enabled in your devices iCloud settings.
    Upon receipt of the email, use the reset link provided to reset your password, after which you should be able to make the adjustments to iCloud that you wish to do.

  • Error - Problem sending invitation email

    Hi
    I am trying to invite a admin user, but i never get an email from BC
    This i the error when im resend invitation email :
    Error - Problem sending invitation email
    Thanks
    Finn

    I am having a similar issue - the email appears to have been created but the activation email was never sent... now we can not remove the busted one or create a log in in a client! - how to repair?

  • Problem sending out emails offsite. iPad

    Hi fellow apple users, 
    Could anyone assist?
    I have no problem sending out email when using it at office.
    But when I go offsite to send out email, i was prompted 'Cannot Send Mail'. A copy has been placed in your outbox. The recipient was rejected by server because it does not allow relaying.
    Any good souls out there who can assist?
    Thanks a bunch!

    Hi al,
    Here is a link to a site that explains the whole "relaying" thing. Because there are various reasons you may be getting this message, thought this might be helpful:
    http://www.gammadyne.com/relaying_denied.htm
    Hope this sheds some light on your issue!
    GB

  • Have problems sending mail from a secure wireless connection. but ok from starbucks

    I have several clients here at my marina all using different email providers and they all seem to have problems sending out mail from my secure wireless. They can recieve mail no problem. Now here is where it get weird. I added my gmail account to one of the problem iphones and same thing was happening, when i go to send out an email from my account on their phone it gets stuck trying to send mail. I compaired server setting on my phone to his and everything was that same, even turned off his server from fairpoint(the email he uses) and kept my gmail one and still couldnt send mail from his phone but worked fine on mine. Apple set up this individuals iphone/ipad so it make me think they did something when he had the accounts added. Any thoughts?

    look here for gmail accounts
    http://support.apple.com/kb/TS3058

  • TS3899 My ipad was working fine but if I go to send an email, a note pops up that my email address has been rejected by the server, what does that mean?

    Hi, my Ipad was working fine but if I try to send an email, a note pops up that my email address has been rejected by the server, what does this mean?  I am still receiving emails and can access websites through Safari.

    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 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.
     Cheers, Tom

  • I have a problem sending mail via smtp. I use a satellite system and the average return time for a ping is 675ms. Is this a problem with mail? If so can I change Mail to accept it. The problem also exists with Lion

    I have a problem sending mail via smtp. I use a satellite system and the average return time for a ping is 675ms. Is this a problem with mail? If so can I change Mail to accept it. The problem also exists with Lion and on both my MacPro and my wife's Imac. I also see my mailboxes randomly disconnecting and reconnecting. Any other ideas of a possible cause?

    I solved it myself, after the "note" which came back from FF/Mozilla just as I finished my message, commenting on what it was that my system had , I wnnt back to check my plug-ins etc. I downloaded the latest Java, BOTH 32bit AND 64 bit versions and latest Firefox.
    Now all is working.
    Thanks,
    B.

  • After upgrading to firefox 3.6 I have problem with hotmail email service

    after upgrading to firefox 3.6.4 I have problem with hotmail email service, however I can login in hotmail, I can't open mails or delet or do anything else with them.
    == URL of affected sites ==
    http://hotmail.msn.com

    Thank you, but I already have "always show tabs bar" set.
    Also, I have two computers and the other is running the exact same version of Firefox, and the exact same theme, but it does not have this problem.
    To make sure I'm being clear: there is an "x" on each tab that allows me to close it when I have multiple tabs open. When I have only one tab open, there is no "x"; so in order to close the webpage I have to open another empty tab, and then close the first. My other computer has the "x" to close the tab visible even when there is only one tab so that I can close the page and have an empty (marked "(untitled)" tab). Please help!

  • Update to Muse CC 2014.3 still have problem upload to FTP: Server not responding in time, FTP may not be supported on this server [Connection timed out after 15001 millseconds.] I have no problem with CC 2014. Can you suggest what do I have to do?

    Update to Muse CC 2014.3 still have problem upload to FTP: Server not responding in time, FTP may not be supported on this server [Connection timed out after 15001 millseconds.] I have no problem with CC 2014. Can you suggest what do I have to do?

    Hello.
    Today I got the opportunity to work with a Muse user with the same issue after performing the troubleshooting steps in the post above we decided to contact the host.
    Later i came to know that host took Muse user's IP and they were able to unblock it and muse started connecting to FTP host.
    I another scenario Host suggested Muse user to add :21 to the FTP address and then Muse was able to connect.
    Eg    ftp.domain.com:21
    Please try the 2 suggestion above and let me know if it works.
    Regards
    Vivek

  • What is an smpt password?  I have problems sending photos using the stamp at the bottom because it asks for some smpt password and I have no clue to find out what it is, how to set one of find one if I somehow put one in and don't know what it it.

    what is an smpt password?  I have problems sending photos using the stamp at the bottom because it asks for some smpt password and I have no clue to find out what it is, how to set one of find one if I somehow put one in and don't know what it it.

    It's the password for your outgoing mail in your Mail account. You need to set it up in your Preferences.
    Regards
    TD

  • Hello support , i have problem getting my email in rescue email

    hello team i have problem getting my email on my rescue email ,
    i want to change my password ,
    and i forgot the secrect question i added ,
    so i changed my alternative id but i am unable to get my security option on my primary id and also on my rescue email ,
    <Email Edited by Host>

    You can only change the rescue email address by answering 2 of your security questions. If you have a rescue email address then the request reset info link should give you a clue as to what the address is e.g. (from here) :
    If you don't what it is then on the user-tip that I linked to there are contact details : http://support.apple.com/kb/HE57 (ask for the Account Security Team)

  • HT5312 I forget answers to security questions,on the other hand rescue email address that Apple use to send me email is not correst,how I can reset security questions or change rescue email ?

    I forget answers to security question , on the other hand rescue email address that Apple use to send me email is not correct , how I can reset security questions or change and make correction for rescue email address ?
    Please send me answer to [email protected] or [email protected]
    Thank you

    You need to contact Apple. Click here, phone them, and ask for the Account Security team.
    (87669)

  • Have iMac with IMAP email, 3rd party.  Use a rule to sort emails into various boxes. One box does not appear on Mail in new iPhone 5C. Emails sorted into that box are also missing.

    Have iMac with IMAP email, 3rd party.  Use a rule to sort emails into various boxes. One box does not appear on Mail in new iPhone 5C. Emails sorted into that box are also missing. Any suggestions?

    In which this just gets weirder and weirder...
    I logged onto iCloud.com, signed into my account and created a rule there that emails from my husband's address should be allowed into the inbox. I sent another test msg from him to me and got the New Mail notification sound, the new mail showed up but in a flash disappeared. This happened in the space of about 3 seconds.
    Messages from his email address are not even showing up in the Trash folder. WTH?

  • I have problems sending e-mail from my iPhone.  I can receive OK.

    I have problems sending e-mail from my iPhone.  I can receive OK.  The e-mail gets put in the outbox, but never goes out.

    Did you set it up following this:
    http://portal.activehost.com/knowledgebase.php?action=displayarticle&id=4744

Maybe you are looking for

  • My neighbor gets service and AT&T cancels my account!

      Extraordinarily long story (15+ hours phone time). So, here's the quick version. ATT changed my service address at some point to my neighbors address. Billing address is of course correct as I had service at my address for years. Found this out the

  • Fillable object from line segments

    I've created a tree object from line segments and it looks how I want it to look. I made it a compound path. When I fill it, I get weird results. I used live fill and that works fine, but I still dont get the pointed edges that I would like to see on

  • Table - Data Entry?

    Hi All, I cannot find how to do this in Designer (It's a fillable PDF form). I have need of a table in which someone can add as many rows as needed for the following information: Class Number - Class Name - Class Hours I thought a table that would ad

  • Unable to connect to Internet

    I need help. I am trying to make a connection to the internet with my G4 running on OS 9.2 from my home. The phone company has come and told me that there is a fiber optic line that runs to the house and then an ethernet cable from the house to the j

  • SRM - Add column to Response and awards table

    Hello, I have a requirement to add a column in the compare responses table (please see print attached), i've found the WDA program, that is the /SAPSRM/WDC_AODC_BEV_CMP, View: V_BID_COMP_ITEM, but the part of the table that is in the print attached i