<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: sending email in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email/m-p/4060104#M970516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam getting records from spool&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jun 2008 10:49:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-30T10:49:25Z</dc:date>
    <item>
      <title>sending email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email/m-p/4060098#M970510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I have to send the output of my prg(some records) as email to clients.The spool  contains more than 2 lakh records.Am doing this by using the FM "ZSENDEMAIL".If there r huge amt of records the mail is not sent.How can i overcome this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help me on this.Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 10:16:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email/m-p/4060098#M970510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T10:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: sending email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email/m-p/4060099#M970511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jyothi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this requirement there is prerequisite is that you have SMTP enable first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;than follow in report output screen in LIST&amp;gt;SEND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 10:21:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email/m-p/4060099#M970511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T10:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: sending email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email/m-p/4060100#M970512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot send mails that are huge in size.. ask your &lt;/P&gt;&lt;P&gt;technical service team (not related to SAP)  to increase the&lt;/P&gt;&lt;P&gt;outgoing email size ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 10:23:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email/m-p/4060100#M970512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T10:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: sending email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email/m-p/4060101#M970513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jyothi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to send the records as an attachment.Pls check the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creation of the document attachment &lt;/P&gt;&lt;P&gt;LOOP AT IT_ATTACHMENT.&lt;/P&gt;&lt;P&gt;OBJBIN = IT_ATTACHMENT-EMAIL.&lt;/P&gt;&lt;P&gt;APPEND OBJBIN.&lt;/P&gt;&lt;P&gt;CLEAR OBJBIN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE OBJBIN LINES TAB_LINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJHEAD = 'Material details'.&lt;/P&gt;&lt;P&gt;APPEND OBJHEAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creation of the entry for the compressed attachment &lt;/P&gt;&lt;P&gt;OBJPACK-TRANSF_BIN = 'X'.&lt;/P&gt;&lt;P&gt;OBJPACK-HEAD_START = 1.&lt;/P&gt;&lt;P&gt;OBJPACK-HEAD_NUM = 1.&lt;/P&gt;&lt;P&gt;OBJPACK-BODY_START = 1.&lt;/P&gt;&lt;P&gt;OBJPACK-BODY_NUM = TAB_LINES.&lt;/P&gt;&lt;P&gt;OBJPACK-DOC_TYPE = 'RAW'.&lt;/P&gt;&lt;P&gt;OBJPACK-OBJ_NAME = 'ANLAGE'.&lt;/P&gt;&lt;P&gt;OBJPACK-OBJ_DESCR = 'Representation of object 138'.&lt;/P&gt;&lt;P&gt;OBJPACK-DOC_SIZE = TAB_LINES * 255.&lt;/P&gt;&lt;P&gt;APPEND OBJPACK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above is body and below is the complete code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt; DATA: OBJHEAD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt; DATA: OBJBIN LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt; DATA: OBJTXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt; DATA: RECLIST LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt; DATA: DOC_CHNG LIKE SODOCCHGI1.&lt;/P&gt;&lt;P&gt; DATA: TAB_LINES LIKE SY-TABIX.&lt;/P&gt;&lt;P&gt; DATA: L_MSG(100) TYPE C.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Creation of the document to be sent&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DOC_CHNG-OBJ_NAME = 'Z2318S1B01'.&lt;/P&gt;&lt;P&gt;DOC_CHNG-OBJ_DESCR = EMSUBJ .&lt;/P&gt;&lt;P&gt;*OBJTXT = 'The details are attached.&lt;/P&gt;&lt;P&gt;OBJTXT = 'Pls check the document in the  ATTACHMENT'.&lt;/P&gt;&lt;P&gt;APPEND OBJTXT.&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE OBJTXT LINES TAB_LINES.&lt;/P&gt;&lt;P&gt;READ TABLE OBJTXT INDEX TAB_LINES.&lt;/P&gt;&lt;P&gt;DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Creation of the entry for the compressed document&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLEAR OBJPACK.&lt;/P&gt;&lt;P&gt;OBJPACK-HEAD_START = 1.&lt;/P&gt;&lt;P&gt;OBJPACK-HEAD_NUM = 0.&lt;/P&gt;&lt;P&gt;OBJPACK-BODY_START = 1.&lt;/P&gt;&lt;P&gt;OBJPACK-BODY_NUM = TAB_LINES.&lt;/P&gt;&lt;P&gt;OBJPACK-DOC_TYPE = 'RAW'.&lt;/P&gt;&lt;P&gt;APPEND OBJPACK.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Creation of the document attachment&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT IT_ATTACHMENT.&lt;/P&gt;&lt;P&gt;OBJBIN = IT_ATTACHMENT-EMAIL.&lt;/P&gt;&lt;P&gt;APPEND OBJBIN.&lt;/P&gt;&lt;P&gt;CLEAR OBJBIN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE OBJBIN LINES TAB_LINES.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;OBJHEAD = 'Material details'.&lt;/P&gt;&lt;P&gt;APPEND OBJHEAD.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Creation of the entry for the compressed attachment&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;OBJPACK-TRANSF_BIN = 'X'.&lt;/P&gt;&lt;P&gt;OBJPACK-HEAD_START = 1.&lt;/P&gt;&lt;P&gt;OBJPACK-HEAD_NUM = 1.&lt;/P&gt;&lt;P&gt;OBJPACK-BODY_START = 1.&lt;/P&gt;&lt;P&gt;OBJPACK-BODY_NUM = TAB_LINES.&lt;/P&gt;&lt;P&gt;OBJPACK-DOC_TYPE = 'RAW'.&lt;/P&gt;&lt;P&gt;OBJPACK-OBJ_NAME = 'ANLAGE'.&lt;/P&gt;&lt;P&gt;OBJPACK-OBJ_DESCR = 'Representation of object 138'.&lt;/P&gt;&lt;P&gt;OBJPACK-DOC_SIZE = TAB_LINES * 255.&lt;/P&gt;&lt;P&gt;APPEND OBJPACK.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Completing the recipient list&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLEAR EMAILID.&lt;/P&gt;&lt;P&gt;LOOP AT EMAILID.&lt;/P&gt;&lt;P&gt;TRANSLATE EMAILID-LOW TO LOWER CASE.&lt;/P&gt;&lt;P&gt;RECLIST-RECEIVER = EMAILID-LOW.&lt;/P&gt;&lt;P&gt;RECLIST-REC_TYPE = 'U'.&lt;/P&gt;&lt;P&gt;APPEND RECLIST.&lt;/P&gt;&lt;P&gt;CLEAR RECLIST.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          DOCUMENT_DATA             = DOC_CHNG&lt;/P&gt;&lt;P&gt;         PUT_IN_OUTBOX              = 'X'&lt;/P&gt;&lt;P&gt;         COMMIT_WORK                = 'X'&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          PACKING_LIST              = OBJPACK&lt;/P&gt;&lt;P&gt;         OBJECT_HEADER              = OBJHEAD&lt;/P&gt;&lt;P&gt;         CONTENTS_BIN               = OBJBIN&lt;/P&gt;&lt;P&gt;         CONTENTS_TXT               = OBJTXT&lt;/P&gt;&lt;P&gt;          RECEIVERS                 = RECLIST&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;         TOO_MANY_RECEIVERS         = 1&lt;/P&gt;&lt;P&gt;         DOCUMENT_NOT_SENT          = 2&lt;/P&gt;&lt;P&gt;         DOCUMENT_TYPE_NOT_EXIST    = 3&lt;/P&gt;&lt;P&gt;         OPERATION_NO_AUTHORIZATION = 4&lt;/P&gt;&lt;P&gt;         PARAMETER_ERROR            = 5&lt;/P&gt;&lt;P&gt;         X_ERROR                    = 6&lt;/P&gt;&lt;P&gt;         ENQUEUE_ERROR              = 7&lt;/P&gt;&lt;P&gt;         OTHERS                     = 8.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  LOOP AT RECLIST.&lt;/P&gt;&lt;P&gt;    IF RECLIST-RETRN_CODE = 0.&lt;/P&gt;&lt;P&gt;        CONCATENATE RECLIST-RECEIVER ':'&lt;/P&gt;&lt;P&gt;                    'The document was sent' INTO L_MSG.&lt;/P&gt;&lt;P&gt;   MESSAGE S656 WITH L_MSG.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;    CONCATENATE RECLIST-RECEIVER ':'&lt;/P&gt;&lt;P&gt;                   'The document was sent' INTO L_MSG.&lt;/P&gt;&lt;P&gt;       MESSAGE E656 WITH L_MSG.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt; ELSE.&lt;/P&gt;&lt;P&gt;        CONCATENATE RECLIST-RECEIVER ':'&lt;/P&gt;&lt;P&gt;        'error occurred in sending mail' INTO L_MSG.&lt;/P&gt;&lt;P&gt;       MESSAGE S656 WITH L_MSG.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward if helpfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 10:26:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email/m-p/4060101#M970513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T10:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: sending email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email/m-p/4060102#M970514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jyothi,&lt;/P&gt;&lt;P&gt;go for report LIST&amp;gt;SEND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;srii.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 10:28:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email/m-p/4060102#M970514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T10:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: sending email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email/m-p/4060103#M970515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi J , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think , in this case u need to split the Spool Job into smaller parts then u need to process further for Emails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are u getting data from spool or ABAP List ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 10:43:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email/m-p/4060103#M970515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T10:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: sending email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email/m-p/4060104#M970516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam getting records from spool&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 10:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email/m-p/4060104#M970516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T10:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: sending email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email/m-p/4060105#M970517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try it by another FM called SO_DOCUMENT_SEND_API1.&lt;/P&gt;&lt;P&gt;Content of the mail stored in I_CONTENT. I_RECWIVERS is to store receivers ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SO_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;     document_data                    = l_doc_chng&lt;/P&gt;&lt;P&gt;     put_in_outbox                       = c_check&lt;/P&gt;&lt;P&gt;     sender_address                    = c_sender&lt;/P&gt;&lt;P&gt;     sender_address_type            = 'INT'&lt;/P&gt;&lt;P&gt;     commit_work                         = space&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    packing_list                            = i_packlist&lt;/P&gt;&lt;P&gt;    contents_txt                            = i_content&lt;/P&gt;&lt;P&gt;    receivers                                 = i_receivers&lt;/P&gt;&lt;P&gt; exceptions&lt;/P&gt;&lt;P&gt;    too_many_receivers               = 1&lt;/P&gt;&lt;P&gt;    document_not_sent                = 2&lt;/P&gt;&lt;P&gt;    document_type_not_exist       = 3&lt;/P&gt;&lt;P&gt;    operation_no_authorization    = 4&lt;/P&gt;&lt;P&gt;    parameter_error                      = 5&lt;/P&gt;&lt;P&gt;    x_error                                    = 6&lt;/P&gt;&lt;P&gt;    enqueue_error                        = 7&lt;/P&gt;&lt;P&gt;    others                                      = 8.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 11:24:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email/m-p/4060105#M970517</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2008-06-30T11:24:05Z</dc:date>
    </item>
  </channel>
</rss>

