Regarding E-mail

Hi ABAPers,
My requirement is that, when any employee get seperates from the organization, then he and his particular department people (through which he has taken company products Ex:- Laptops, company cars, etc.,)  should get E-Mails, that he is leaving from the company so kindly collect all the products from him.
This is working well, but the problem was instead of sending one mail to each of them, they were going twice or thrice.
so how can i solve this.
i used FM "SO_NEW_DOCUMENT_SEND_API1" to send mails.
in that FM i passed these two,       object_content             = i_message
                                                   receivers                     = i_receivers
while debugging "i_receivers" contains 3 mail-id's, but it was going 2 time for each of them.
can any one help me in this issue.
Thanks in Advance,
Regards,
Ramana Prasad. T

Hi  ...
seee yhe below  program and the clear  & refresher  with in the  loop  ... and also the bolled fields  passsing to the FM
*& Report  ZSPOOLTOPDF                                                 *
*& Converts spool request into PDF document and emails it to           *
*& recipicant.                                                         *
*& Execution                                                           *
*& This program must be run as a background job in-order for the write *
*& commands to create a Spool request rather than be displayed on      *
*& screen                                                              *
REPORT  zspooltopdf.
PARAMETER: p_email1 LIKE somlreci1-receiver
                                    DEFAULT '[email protected]',
           p_sender LIKE somlreci1-receiver
                                    DEFAULT '[email protected]',
           p_delspl  AS CHECKBOX.
*DATA DECLARATION
DATA: gd_recsize TYPE i.
* Spool IDs
TYPES: BEGIN OF t_tbtcp.
        INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
      wa_tbtcp TYPE t_tbtcp.
* Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
      gd_eventparm LIKE tbtcm-eventparm,
      gd_external_program_active LIKE tbtcm-xpgactive,
      gd_jobcount LIKE tbtcm-jobcount,
      gd_jobname LIKE tbtcm-jobname,
      gd_stepcount LIKE tbtcm-stepcount,
      gd_error    TYPE sy-subrc,
      gd_reciever TYPE sy-subrc.
DATA:  w_recsize TYPE i.
DATA: gd_subject   LIKE sodocchgi1-obj_descr,
      it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
      it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
      gd_sender_type     LIKE soextreci1-adr_typ,
      gd_attachment_desc TYPE so_obj_nam,
      gd_attachment_name TYPE so_obj_des.
* Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
      gd_destination LIKE rlgrap-filename,
      gd_bytecount LIKE tst01-dsize,
      gd_buffer TYPE string.
* Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
        INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
CONSTANTS: c_dev LIKE  sy-sysid VALUE 'DEV',
           c_no(1)     TYPE c   VALUE ' ',
           c_device(4) TYPE c   VALUE 'LOCL'.
*START-OF-SELECTION.
START-OF-SELECTION.
* Write statement to represent report output. Spool request is created
* if write statement is executed in background. This could also be an
* ALV grid which would be converted to PDF without any extra effort
  WRITE 'Hello World'.
  new-page.
  commit work.
  new-page print off.
  IF sy-batch EQ 'X'.
    PERFORM get_job_details.
    PERFORM obtain_spool_id.
*** Alternative way could be to submit another program and store spool
*** id into memory, will be stored in sy-spono.
*submit ZSPOOLTOPDF2
*        to sap-spool
*        spool parameters   %_print
*        archive parameters %_print
*        without spool dynpro
*        and return.
* Get spool id from program called above
*  IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
    PERFORM convert_spool_to_pdf.
    PERFORM process_email.
    if p_delspl EQ 'X'.
      PERFORM delete_spool.
    endif.
    IF sy-sysid = c_dev.
      wait up to 5 seconds.
      SUBMIT rsconn01 WITH mode   = 'INT'
                      WITH output = 'X'
                      AND RETURN.
    ENDIF.
  ELSE.
    SKIP.
    WRITE:/ 'Program must be executed in background in-order for spool',
            'request to be created.'.
  ENDIF.
*       FORM obtain_spool_id                                          *
FORM obtain_spool_id.
  CHECK NOT ( gd_jobname IS INITIAL ).
  CHECK NOT ( gd_jobcount IS INITIAL ).
  SELECT * FROM  tbtcp
                 INTO TABLE it_tbtcp
                 WHERE      jobname     = gd_jobname
                 AND        jobcount    = gd_jobcount
                 AND        stepcount   = gd_stepcount
                 AND        listident   <> '0000000000'
                 ORDER BY   jobname
                            jobcount
                            stepcount.
  READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
  IF sy-subrc = 0.
    message s004(zdd) with gd_spool_nr.
    gd_spool_nr = wa_tbtcp-listident.
    MESSAGE s004(zdd) WITH gd_spool_nr.
  ELSE.
    MESSAGE s005(zdd).
  ENDIF.
ENDFORM.
*       FORM get_job_details                                          *
FORM get_job_details.
* Get current job details
  CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
       IMPORTING
            eventid                 = gd_eventid
            eventparm               = gd_eventparm
            external_program_active = gd_external_program_active
            jobcount                = gd_jobcount
            jobname                 = gd_jobname
            stepcount               = gd_stepcount
       EXCEPTIONS
            no_runtime_info         = 1
            OTHERS                  = 2.
ENDFORM.
*       FORM convert_spool_to_pdf                                     *
FORM convert_spool_to_pdf.
  CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
       EXPORTING
            src_spoolid              = gd_spool_nr
            no_dialog                = c_no
            dst_device               = c_device
       IMPORTING
            pdf_bytecount            = gd_bytecount
       TABLES
            pdf                      = it_pdf_output
       EXCEPTIONS
            err_no_abap_spooljob     = 1
            err_no_spooljob          = 2
            err_no_permission        = 3
            err_conv_not_possible    = 4
            err_bad_destdevice       = 5
            user_cancelled           = 6
            err_spoolerror           = 7
            err_temseerror           = 8
            err_btcjob_open_failed   = 9
            err_btcjob_submit_failed = 10
            err_btcjob_close_failed  = 11
            OTHERS                   = 12.
  CHECK sy-subrc = 0.
* Transfer the 132-long strings to 255-long strings
  LOOP AT it_pdf_output.
    TRANSLATE it_pdf_output USING ' ~'.
    CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
  ENDLOOP.
  TRANSLATE gd_buffer USING '~ '.
  DO.
    it_mess_att = gd_buffer.
    APPEND it_mess_att.
    SHIFT gd_buffer LEFT BY 255 PLACES.
    IF gd_buffer IS INITIAL.
      EXIT.
    ENDIF.
  ENDDO.
ENDFORM.
*       FORM process_email                                            *
FORM process_email.
  DESCRIBE TABLE it_mess_att LINES gd_recsize.
  CHECK gd_recsize > 0.
  PERFORM send_email USING p_email1.
*  perform send_email using p_email2.
ENDFORM.
*       FORM send_email                                               *
*  -->  p_email                                                       *
FORM send_email USING p_email.
  CHECK NOT ( p_email IS INITIAL ).
  REFRESH it_mess_bod.
* Default subject matter
  gd_subject         = 'Subject'.
  gd_attachment_desc = 'Attachname'.
*  CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
  it_mess_bod        = 'Message Body text, line 1'.
  APPEND it_mess_bod.
  it_mess_bod        = 'Message Body text, line 2...'.
  APPEND it_mess_bod.
* If no sender specified - default blank
  IF p_sender EQ space.
    gd_sender_type  = space.
  ELSE.
    gd_sender_type  = 'INT'.
  ENDIF.
* Send file by email as .xls speadsheet
  PERFORM send_file_as_email_attachment
                              tables
<b>it_mess_bod</b>   
it_mess_att
                                using p_email
                                      'Example .xls documnet attachment'
                                      'PDF'
                                      gd_attachment_name
                                      gd_attachment_desc
                                      p_sender
                                      gd_sender_type
                             changing gd_error
                                      gd_reciever.
ENDFORM.
*       FORM delete_spool                                             *
FORM delete_spool.
  DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
  ld_spool_nr = gd_spool_nr.
  CHECK p_delspl <> c_no.
  CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
       EXPORTING
            spoolid = ld_spool_nr.
ENDFORM.
*&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
*       Send email
FORM send_file_as_email_attachment tables
<b>it_message</b>
                                    it_attach
                                    using p_email
                                          p_mtitle
                                          p_format
                                          p_filename
                                          p_attdescription
                                          p_sender_address
                                          p_sender_addres_type
                                 changing p_error
                                          p_reciever.
  DATA: ld_error    TYPE sy-subrc,
        ld_reciever TYPE sy-subrc,
        ld_mtitle LIKE sodocchgi1-obj_descr,
        ld_email LIKE  somlreci1-receiver,
        ld_format TYPE  so_obj_tp ,
        ld_attdescription TYPE  so_obj_nam ,
        ld_attfilename TYPE  so_obj_des ,
        ld_sender_address LIKE  soextreci1-receiver,
        ld_sender_address_type LIKE  soextreci1-adr_typ,
        ld_receiver LIKE  sy-subrc.
data:   t_packing_list like sopcklsti1 occurs 0 with header line,
        t_contents like solisti1 occurs 0 with header line,
        t_receivers like somlreci1 occurs 0 with header line,
        t_attachment like solisti1 occurs 0 with header line,
        t_object_header like solisti1 occurs 0 with header line,
        w_cnt type i,
        w_sent_all(1) type c,
        w_doc_data like sodocchgi1.
  ld_email   = p_email.
  ld_mtitle = p_mtitle.
  ld_format              = p_format.
  ld_attdescription      = p_attdescription.
  ld_attfilename         = p_filename.
  ld_sender_address      = p_sender_address.
  ld_sender_address_type = p_sender_addres_type.
* Fill the document data.
  w_doc_data-doc_size = 1.
* Populate the subject/generic message attributes
  w_doc_data-obj_langu = sy-langu.
  w_doc_data-obj_name  = 'SAPRPT'.
  w_doc_data-obj_descr = ld_mtitle .
  w_doc_data-sensitivty = 'F'.
* Fill the document data and get size of attachment
  CLEAR w_doc_data.
  READ TABLE it_attach INDEX w_cnt.
  w_doc_data-doc_size =
     ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
  w_doc_data-obj_langu  = sy-langu.
  w_doc_data-obj_name   = 'SAPRPT'.
  w_doc_data-obj_descr  = ld_mtitle.
  w_doc_data-sensitivty = 'F'.
  CLEAR t_attachment.
  REFRESH t_attachment.
  t_attachment[] = it_attach[].
* Describe the body of the message
  CLEAR t_packing_list.
  REFRESH t_packing_list.
  t_packing_list-transf_bin = space.
  t_packing_list-head_start = 1.
  t_packing_list-head_num = 0.
  t_packing_list-body_start = 1.
  DESCRIBE TABLE
<b>it_message</b>  
LINES t_packing_list-body_num.
  t_packing_list-doc_type = 'RAW'.
  APPEND t_packing_list.
* Create attachment notification
  t_packing_list-transf_bin = 'X'.
  t_packing_list-head_start = 1.
  t_packing_list-head_num   = 1.
  t_packing_list-body_start = 1.
  DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
  t_packing_list-doc_type   =  ld_format.
  t_packing_list-obj_descr  =  ld_attdescription.
  t_packing_list-obj_name   =  ld_attfilename.
  t_packing_list-doc_size   =  t_packing_list-body_num * 255.
APPEND t_packing_list.
<b>* Add the recipients email address
  CLEAR t_receivers.
  REFRESH t_receivers.
  t_receivers-receiver = ld_email.
  t_receivers-rec_type = 'U'.
  t_receivers-com_type = 'INT'.
  t_receivers-notif_del = 'X'.
  t_receivers-notif_ndel = 'X'.
  APPEND t_receivers.</b>
  CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
       EXPORTING
            document_data              = w_doc_data
            put_in_outbox              = 'X'
            sender_address             = ld_sender_address
            sender_address_type        = ld_sender_address_type
            commit_work                = 'X'
       IMPORTING
            sent_to_all                = w_sent_all
       TABLES
            packing_list               = t_packing_list
            contents_bin               = t_attachment
            contents_txt               = it_message
            receivers                  = t_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.
* Populate zerror return code
  ld_error = sy-subrc.
* Populate zreceiver return code
  LOOP AT t_receivers.
    ld_receiver = t_receivers-retrn_code.
  ENDLOOP.
ENDFORM.
Reward points if it is usefull .....
gIRISH

Similar Messages

  • Regarding my mail service, I placed all my family emails in a "family   " folder.  All of a sudden, it's gone.  How do I get it back?    e.

    Regarding my mail site, I placed all my family emails in a "family" folder.  Today it was gone.  How can I retrieve my family folder?

    you should look in your applications folder to see if mail is still there. the dock icon is pointing to mail being in your applications folder. it has probably been moved or deleted for some reason from the app folder. do a spotlight search for your mail program. if it is still on your computer, move it back to the applications folder and when you click the question mark, it should see it is back and open. The email folder in your library shouldn't have to be touched. you need mail.app itself.

  • Je n'arrive plus a regarder mes mail ...quand je clique sur icône il me demende de choisir entre icloud,google,yahoo etc... Comment faire pour retrouver mon mail?

    Je n'arrive plus a regarder mes mail ...quand je clique sur icône il me demende de choisir entre icloud,google,yahoo etc... Comment faire pour retrouver mon mail?

    Bonjour du Canada!
    Pour répondre à ta question concernant Balance, ton entreprise doit être parti d'une solution Entreprise pour activer cet service.
    J'espère que ça t'aides.
    (Excuse mon français, je suis Anglophone.)
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • This question regarding sending mail from sap

    hi to all,
    this question regarding sending mail from sap
    rt now iam able to send mails from 500 clint, what r the setting i need to do send mails from my another client 700,
    iam using ecc 6.0 with sql database
    regards,
    krishna
    Moderator message: FAQ, please search for available information before asking.
    locked by: Thomas Zloch on Aug 16, 2010 2:11 PM

    hi to all,
    this question regarding sending mail from sap
    rt now iam able to send mails from 500 clint, what r the setting i need to do send mails from my another client 700,
    iam using ecc 6.0 with sql database
    regards,
    krishna
    Moderator message: FAQ, please search for available information before asking.
    locked by: Thomas Zloch on Aug 16, 2010 2:11 PM

  • Regarding Receiver Mail adapter.

    Hi experts,
    iam looking at one off the weblog whick  Michal Krawczyk have created.
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    in this weblog michal have told to download the XSD file from service market place  and upload it in IR External definition it gives us target structure.What is the use off it, we can directly create the target structure.
    And also one more dought what is the use off checking parameter in mail Attributes use mail package.I dont have much knowledge on mail adapter please help me in this issue.
    i want to send parameters dynamically into receiver mail adapter in my project ie(TO,FROM,SUB and CONTENT) please send links and doc's on it.
    Note: Helpfull answer will be rewarded.
    Thanks & regards,
    Phani

    Hi raj,
    Once again thanks for the reply,I will explain my object,its is any 2 senarios in one object.
    1) file to proxy were i upload employee details in to infotype2010 after inserting what ever error records i will l store them in error table.
    2)ater geting error records if i get more then 25 i have to send file path and error records to receiver side. or if i get all sucess also i have 2 send sucess flag into receiver side.
    but i haveto pick data from different systems and i have to send the data into different mail ids i have to generate TO FROM CONTENT dynamically.
    onsite have prepared TS(Tecnical specs) in that spec they gave XIALL and SMTP.
    so my question is using this parameters can i post them dynamically or  not.
    if YES ? then how??
    please help me in this issue.
    if u still dont understand give me ur id  i will send my TS.
    Thanks and regards,
    phani

  • Regarding Workflow mailer error

    Hi
    Could anyone teach me how to troubleshooting these errors in log of mailer?
    My customer made mailer available through OAM and could send notification.
    However, a lot of errors were found in log of mailer.
    Quote
    [Nov 7, 2011 8:33:55 PM JST]:1320665635770:-1:-1:svdbdc006:10.140.102.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[BES Dispatch Thread,5,main]:10.140.102.13:73020:1320665633553:10:EXCEPTION:[SVC-GSM-WFALSNRSVC-133833 : oracle.apps.fnd.cp.gsc.SvcComponentContainer.onBusinessEvent(BusinessEvent)]:Successfully handled component event, oracle.apps.fnd.cp.gsc.SvcComponent.start, for component 10011
    [Nov 7, 2011 8:33:54 PM JST]:1320665634490:-1:-1:svdbdc006:10.140.102.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[inboundThreadGroup1,5,inboundThreadGroup]:10.140.102.13:73020:1320665634490:11:ERROR:[SVC-GSM-WFALSNRSVC-133833-10005 : oracle.apps.fnd.wf.bes.AgentListenerProcessor.read()]:10consecutive errors occurred
    [Nov 7, 2011 8:33:57 PM JST]:1320665637002:-1:-1:svdbdc006:10.140.102.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[inboundThreadGroup1,5,inboundThreadGroup]:10.140.102.13:73020:1320665634490:11:ERROR:[SVC-GSM-WFALSNRSVC-133833-10005 : oracle.apps.fnd.cp.gsc.Processor.performError(ProcessorException)]:Maximum number of errors have occurred for this processing thread.
    <af type="tenured" id="106" timestamp="Nov 07 20:33:58 2011" intervalms="3796.734">
    <minimum requested_bytes="98320" />
    <time exclusiveaccessms="0.032" meanexclusiveaccessms="0.032" threads="0" lastthreadtid="0x3225CB00" />
    <refs soft="399" weak="183" phantom="0" dynamicSoftReferenceThreshold="9" maxSoftReferenceThreshold="32" />
    <tenured freebytes="0" totalbytes="18192896" percent="0" >
    <soa freebytes="0" totalbytes="18192896" percent="0" />
    <loa freebytes="0" totalbytes="0" percent="0" />
    </tenured>
    <gc type="global" id="106" totalid="106" intervalms="3796.788">
    <expansion type="tenured" amount="3553280" newsize="21746176" timetaken="0.000" reason="insufficient free space following gc" />
    <finalization objectsqueued="27" />
    <timesms mark="22.192" sweep="0.514" compact="0.000" total="23.115" />
    <tenured freebytes="6622496" totalbytes="21746176" percent="30" >
    <soa freebytes="6405408" totalbytes="21529088" percent="29" />
    <loa freebytes="217088" totalbytes="217088" percent="100" />
    </tenured>
    </gc>
    <tenured freebytes="6524176" totalbytes="21746176" percent="30" >
    <soa freebytes="6383376" totalbytes="21605376" percent="29" />
    <loa freebytes="140800" totalbytes="140800" percent="100" />
    </tenured>
    <refs soft="214" weak="167" phantom="0" dynamicSoftReferenceThreshold="9" maxSoftReferenceThreshold="32" />
    <time totalms="23.241" />
    </af>
    [Nov 7, 2011 8:34:29 PM JST]:1320665669022:-1:-1:svdbdc006:10.140.102.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[ComponentMonitor,5,main]:10.140.102.13:73020:1320665606034:1:EXCEPTION:[SVC-GSM-WFALSNRSVC-133833 : oracle.apps.fnd.cp.gsc.SvcComponentMonitor.startAutomaticComponents()]:Starting automatic component 10005
    [Nov 7, 2011 8:34:36 PM JST]:1320665676474:-1:-1:svdbdc006:10.140.102.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[BES Dispatch Thread,5,main]:10.140.102.13:73020:1320665676474:12:EXCEPTION:[SVC-GSM-WFALSNRSVC-133833 : oracle.apps.fnd.cp.gsc.SvcComponentContainer.onBusinessEvent(BusinessEvent)]:(BusinessEvent{name=oracle.apps.fnd.cp.gsc.SvcComponent.start, key=SVC:07-NOV-2011, priority=50, correlationId=null, sendDate=Mon Nov 07 20:34:29 JST 2011, receiveDate=null, From Agent:  , To Agent:  , Last Subscription=  , Error Message=null, Error Stack=null, CONTAINER_TYPE=GSM, CONTAINER_PROCESS_ID=133833, COMPONENT_ID=10005, [email protected], BES_PAYLOAD_OBJECT=false})
    [Nov 7, 2011 8:34:46 PM JST]:1320665686481:-1:-1:svdbdc006:10.140.102.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[BES Dispatch Thread,5,main]:10.140.102.13:73020:1320665676474:12:EXCEPTION:[SVC-GSM-WFALSNRSVC-133833 : oracle.apps.fnd.cp.gsc.SvcComponentContainer.handleComponentEvent(int, String, String)]:Successfully retrieved component details from the database
    [Nov 7, 2011 8:34:46 PM JST]:1320665686614:-1:-1:svdbdc006:10.140.102.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[BES Dispatch Thread,5,main]:10.140.102.13:73020:1320665676474:12:EXCEPTION:[SVC-GSM-WFALSNRSVC-133833 : oracle.apps.fnd.cp.gsc.SvcComponentContainer.onBusinessEvent(BusinessEvent)]:Successfully handled component event, oracle.apps.fnd.cp.gsc.SvcComponent.start, for component 10005
    [Nov 7, 2011 8:34:46 PM JST]:1320665686772:-1:-1:svdbdc006:10.140.102.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[inboundThreadGroup1,5,inboundThreadGroup]:10.140.102.13:73020:1320665686772:13:ERROR:[SVC-GSM-WFALSNRSVC-133833-10005 : oracle.apps.fnd.wf.bes.AgentListenerProcessor.read()]:10consecutive errors occurred
    [Nov 7, 2011 8:34:46 PM JST]:1320665686812:-1:-1:svdbdc006:10.140.102.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[inboundThreadGroup1,5,inboundThreadGroup]:10.140.102.13:73020:1320665686772:13:ERROR:[SVC-GSM-WFALSNRSVC-133833-10005 : oracle.apps.fnd.cp.gsc.Processor.performError(ProcessorException)]:Maximum number of errors have occurred for this processing thread.
    [Nov 7, 2011 8:35:29 PM JST]:1320665729053:-1:-1:svdbdc006:10.140.102.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[ComponentMonitor,5,main]:10.140.102.13:73020:1320665606034:1:EXCEPTION:[SVC-GSM-WFALSNRSVC-133833 : oracle.apps.fnd.cp.gsc.SvcComponentMonitor.startAutomaticComponents()]:Starting automatic component 10005
    <af type="tenured" id="107" timestamp="Nov 07 20:35:36 2011" intervalms="98237.510">
    <minimum requested_bytes="98320" />
    <time exclusiveaccessms="0.024" meanexclusiveaccessms="0.024" threads="0" lastthreadtid="0x330E6900" />
    <refs soft="483" weak="329" phantom="0" dynamicSoftReferenceThreshold="9" maxSoftReferenceThreshold="32" />
    <tenured freebytes="0" totalbytes="21746176" percent="0" >
    <soa freebytes="0" totalbytes="21605376" percent="0" />
    <loa freebytes="0" totalbytes="140800" percent="0" />
    </tenured>
    <gc type="global" id="107" totalid="107" intervalms="98237.593">
    <expansion type="tenured" amount="1048576" newsize="22794752" timetaken="0.000" reason="insufficient free space following gc" />
    <finalization objectsqueued="25" />
    <timesms mark="20.137" sweep="0.800" compact="0.000" total="21.178" />
    <tenured freebytes="6998816" totalbytes="22794752" percent="30" >
    <soa freebytes="6623520" totalbytes="22419456" percent="29" />
    <loa freebytes="375296" totalbytes="375296" percent="100" />
    </tenured>
    </gc>
    <tenured freebytes="6900496" totalbytes="22794752" percent="30" >
    <soa freebytes="6671632" totalbytes="22565888" percent="29" />
    <loa freebytes="228864" totalbytes="228864" percent="100" />
    </tenured>
    <refs soft="215" weak="169" phantom="0" dynamicSoftReferenceThreshold="9" maxSoftReferenceThreshold="32" />
    <time totalms="21.265" />
    </af>
    I have checked the below notes,but I'm not clear.
    761434.1 Workflow Mailer fails to star : Maximum Number Of Errors (100) Have Been Reached : WebSession.isSessionRecreated
    333017.1 OWF.G Mailer just started dumping a OutOfMemoryError
    Please teach me what's the meaning of errors and what we should deal with them.
    Best Regards
    Liying

    Please post the details of the application release, database version and OS.
    Please see these docs.
    Java.Lang.Outofmemoryerror On Large Inbound XML Message [ID 560680.1]
    Intermittently Notification Emails are not Received [ID 1315344.1]
    OWF.G Mailer just started dumping a OutOfMemoryError [ID 333017.1]
    Output Post Processor is Down With Error "Insufficient Free Space Following GC" [ID 885607.1]
    Thanks,
    Hussein

  • Regarding Receiver Mail Adapter Attachments formats

    Hi Xians,
    when we configure Receiver Mail Adapter, we get the payload as Attachments in XML format. Does it support any other format apart from xml like text, pdf etc
    Regards,
    Varun

    Rajesh wrote:
    Yes it supports all you need to do for conversion is to use MessageTransform Bean in adapter modules
    and use parameter contentDispositon and contentDescirption things for setting different formats
    Hi Rajesh,
       Thanks for your reply. Can you please provide relevant blogs or any other docs on the same
    Regards,
    Varun

  • Regarding sending mail as XLS attachment.

    Hi SAP Gurus,
    I am taken code from program "BCS_EXAMPLE_7" for sending mail with xls attachment.
    I am using following code to send as copy .
          L_RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( Email_ID ).
          CALL METHOD SEND_REQUEST->ADD_RECIPIENT
            EXPORTING
              I_RECIPIENT = L_RECIPIENT
              I_EXPRESS   = 'X'
              I_COPY      = 'X'.
    Now my requirement is to send to many mail to more than one ID as copy. how can I get that.
    Please help.
    Regards,
    Pavan.

    Hi Pavan,
    Please use do loop and add recipient in each loop.In below sample code change w_sender in each loop.
    *do 2 times.*TRY.
    lo_email = cl_bcs=>create_persistent( ).
    lo_email_body = cl_document_bcs=>create_document(
    i_type = 'txt'
    i_text = it_message
    i_subject = 'Message from Subba' ).
    PERFORM add_attachment. " USING lo_email_body.
    lo_email->set_document( lo_email_body ).
    lo_receiver = cl_cam_address_bcs=>create_internet_address( w_sender ).
    lo_email->add_recipient( i_recipient = lo_receiver
    i_express = 'X' ).
    lo_email->set_send_immediately( 'X' ).
    lo_email->send( EXPORTING
    i_with_error_screen = 'X'
    RECEIVING
    result = lv_send_result ).
    WRITE: / 'Success flag:', lv_send_result.
    COMMIT WORK.
    CATCH cx_bcs INTO lx_exception.
    WRITE:/ 'Message sending failed:', lx_exception->error_type.
    ENDTRY.
    *enddo.*
    Thanks,
    Subba

  • Regarding E-Mail a PO smartform

    Hi SAP Gurus,
    with the help of thread
    link: [Regardin E-Mail from Smartform;
    I have made the mailling Process from my smartform . But now it is giving error that "No connectivity from USER1 to external Mail"
    I have consulted with my Basis person , can any one tell me how to configure the SAP with External  Mail .
    Thanks & Regards,
    Pavan.

    if your using this FM CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1' to sending mail you have to use
    user mail id in SCOT tcode, SCOT -> INT->SMTP double click and maintain the email id ...

  • Regarding daily mail fire

    Hi experts,
    I've a requirement to fire a mail daily at fixed time. I'm new in job scheduling. can u tell me the steps for background job scheduling to solve the problem.
    thnks in regards,
    Goutam.

    Search and thou shall find...

  • Very urgent: query regarding sending mail frm infopackage

    Hi all,
              At InfoPackage level at menubar in systems option--->short message option is exists.
           Can we use this option to send mail to client that infopackage has been successful or failure.
            Please send me more detaily how can we send mail to any receipent.I am unable to work on this option please help me out.
    Thanks & Regards,
    Praveena

    Hi praveena,
    if you want to send messages when the infopackage is successful, this can be done in the process chains.
    Steps are as follows:
    create process chain to include the Infopackage (IP) for which you want to send
       message
    Right click on the IP , create message. pop up will come asking you when the 
       message should be sent seolect when it is successful
    Create variant for sending message and maintain the receipient list (email IDs)
    with this you can send messages.
    I hope this will help you.
    Vijay.

  • Issue regarding external mail send

    Hi,
    I have created a workflow wherein i am sending a mail to my gmail address. The problem is that when i execute a workflow, it gives me status for task as completed but when i check my gmail mail doesnot appear in it.
    The thing i done regarding this issue is that i went to tcode SOST and from that tcode i executed but it was showing me error message as "Message cannot be transferred to node SMTP due to connection error (final)" How to solve this error ?
    I have also gone through SCOT tcode and there i done with SMTP node
    then why is this error and how to resolve it?
    Thanks
    Parag

    This problem is related to configuration in SCOT. I think you can check the Basis forums for more help.
    Check this link also
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10dfad5a-5398-2b10-568b-d3d999d49b5c
    Thanks
    Arghadip

  • Regarding sending mails from SAP

    Hi Frnds,
    I have a requirement in which i have to send a mail from SAP to a distribution list of a particular domain, for example [email protected] which contains no. of individual mail ids of the same domain.
    And i am using a FM called SO_NEW_DOCUMENT_ATT_SEND_API1.
    Here i need to populate the internal table "receivers",
    like,   receivers-receiver = '[email protected]'
             receivers-rec_type = ?
    I am not sure as to what value to be filled in the field "receivers-rec_type". I have tried with the values 'P', 'C' and 'U'.
    Can anyone please give me some input as to what value needs to be assigned to this field?
    Many thanks in advance...
    Regards,
    Karthick C

    Hi,
    use 'U' in the receiver type .....
    Here also is a very simple program. You must also have SAPconnect configured correctly. You can force the SEND process using the commented program at the bottom of this example.
    report reddy_0003 .
    For API
    data: maildata type sodocchgi1.
    data: mailtxt type table of solisti1 with header line.
    data: mailrec type table of somlrec90 with header line.
    start-of-selection.
    clear: maildata, mailtxt, mailrec.
    refresh: mailtxt, mailrec.
    maildata-obj_name = 'TEST'.
    maildata-obj_descr = 'Test'.
    maildata-obj_langu = sy-langu.
    mailtxt-line = 'This is a test'.
    append mailtxt.
    mailrec-receiver = '[email protected]'.
    mailrec-rec_type = 'U'.
    append mailrec.
    call function 'SO_NEW_DOCUMENT_SEND_API1'
    exporting
    document_data = maildata
    document_type = 'RAW'
    put_in_outbox = 'X'
    tables
    object_header = mailtxt
    object_content = mailtxt
    receivers = mailrec
    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.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    submit rsconn01 with mode = 'INT' and return.
    Regards
    Sudheer

  • Regarding sending mails to group of users from ABAP program

    Hi,
    I have a program which sends Email's to group of users.
    And code for that purpose is written as below.
    <b>* Insert distribution list name into i_send
      i_send-receiver = 'TEST-DIST'. "Distribution List</b>
    Can anybody tell me where the mail id's[Group of] will be given for this purpose.
    TEST-DIST will be having set of mail id's where does i can see them and change.
    If anybody knows please post!
    Thanks in advance.
    Thanks & Regards,
    Prasad.

    Hi,
    I got the issue.
    It will be in SO01.
    Where we can give Mail ID's for Shared/Private Distribution List(s).
    Thanks,
    Prasad.

  • Regarding the mail alert

    Hi Experts
    I have configured the mail alert in ChaRM.
    When user change the status the alert has to triggered to 2 business partner, but now it's triggering to only one business partner. I have chekced all the configuration it's looking same.
    Could you please help me to resolve the issue.
    Thanks in advance
    Regards
    Venkat

    Hi
    with addition to the Ragu's update
    please check the below suggestions for the same such scenarios in CHARM
    [automatical email to report transport status|automatical email to report transport status]
    Thanks,
    Jansi

Maybe you are looking for

  • Timeline won't render in Premiere Elements 12 (and music video editing advice)

    I have a section of video I'm editing that won't render. I've read some similar threads but still have a question about how I can edit the clips to 'force' a render. I'm running PE 12 on a Core i3 laptop running Windows 8, so not a huge amount of pro

  • Need help in module pool program

    help me to create dialog program for upload data into DDIC table.FOR EXAMPLE IN CREATING MATERIAL THROUGH MM01 DATA WHIH YOU ARE ENTRING INTO THE FIELD WILL BE STORED IN MARA TABLE. Message was edited by:         neela renganathan

  • Regarding Idoc triggering

    I want to trigger an idoc from EC1CLNT 800 to XI  through change pointer . please provide the steps for that along with the Tcodes

  • Need instructions to verify my e-mail for icloud

    When orig updating to ios5, I did not sign up for iCloud and now I don't have the email with info on verifying my acct for icloud.   How can I get this info?

  • (Persistance API) bo exception thrown from em.persist

    Hi, I am testing for various error conditions , and trying to write an entity which has column defined as unique, and there is already an instance with that value in table. Although the entity does not get persisted(because of the unique constraint)