<?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 MAIL with attachmetn in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/mail-with-attachmetn/m-p/1346663#M174472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;I have the content in my internal table.I want to send this content as text file to specified single user.&lt;/P&gt;&lt;P&gt;Please tell me as how to send the the internal table as mail content as txt file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code will be very useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 May 2006 10:36:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-15T10:36:01Z</dc:date>
    <item>
      <title>MAIL with attachmetn</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mail-with-attachmetn/m-p/1346663#M174472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;I have the content in my internal table.I want to send this content as text file to specified single user.&lt;/P&gt;&lt;P&gt;Please tell me as how to send the the internal table as mail content as txt file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code will be very useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2006 10:36:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mail-with-attachmetn/m-p/1346663#M174472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-15T10:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: MAIL with attachmetn</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mail-with-attachmetn/m-p/1346664#M174473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/sending-email-with-attachment.htm" target="test_blank"&gt;http://www.sap-img.com/abap/sending-email-with-attachment.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2006 10:39:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mail-with-attachmetn/m-p/1346664#M174473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-15T10:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: MAIL with attachmetn</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mail-with-attachmetn/m-p/1346665#M174474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuvaraj,&lt;/P&gt;&lt;P&gt;you got to use the following function modules&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SO_DOCUMENT_SEND_API1 &amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SO_NEW_DOCUMENT_ATT_SEND_API1&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following links,You will get approriate code in them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/sending-email-with-attachment.htm" target="test_blank"&gt;http://www.sap-img.com/abap/sending-email-with-attachment.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/email/email_mbody.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/email/email_mbody.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/abap011.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/abap011.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/code/abap15.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/code/abap15.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/code/abap31.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/code/abap31.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check the following Thread on sdn&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="129657"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably your problem will be solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Pawan P. Khilari&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*Mark Useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2006 10:54:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mail-with-attachmetn/m-p/1346665#M174474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-15T10:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: MAIL with attachmetn</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mail-with-attachmetn/m-p/1346666#M174475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   refer this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: OBJPACK   LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA: OBJHEAD   LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA: OBJBIN    LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA: OBJTXT    LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA: RECLIST   LIKE SOMLRECI1 OCCURS 5 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_NUM(3).&lt;/P&gt;&lt;P&gt;&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;LI level="1" type="ul"&gt;&lt;P&gt;File Name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DOC_CHNG-OBJ_NAME = 'SENDFILE'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Mail Subject&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DOC_CHNG-OBJ_DESCR = 'Delivered Mail'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Mail Contents&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  OBJTXT = 'Object text'.&lt;/P&gt;&lt;P&gt;  APPEND OBJTXT.&lt;/P&gt;&lt;P&gt;&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;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-TRANSF_BIN.&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 ITAB_DATA.&lt;/P&gt;&lt;P&gt;    CONCATENATE ITAB_DATA-PRODUCTOR&lt;/P&gt;&lt;P&gt;                ITAB_DATA-VBELN&lt;/P&gt;&lt;P&gt;                ITAB_DATA-POSNR&lt;/P&gt;&lt;P&gt;                ITAB_DATA-MATNR INTO OBJBIN.&lt;/P&gt;&lt;P&gt;    APPEND OBJBIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE OBJBIN LINES TAB_LINES.&lt;/P&gt;&lt;P&gt;  OBJHEAD = 'ORDERS'.&lt;/P&gt;&lt;P&gt;  APPEND OBJHEAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Creation of the entry for the compressed attachment&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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   = 'TXT'.&lt;/P&gt;&lt;P&gt;  OBJPACK-OBJ_NAME   = 'WEBSITE'.&lt;/P&gt;&lt;P&gt;  OBJPACK-OBJ_DESCR  = 'ORDERS.TXT'.&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;LI level="1" type="ul"&gt;&lt;P&gt;target recipent&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear RECLIST.&lt;/P&gt;&lt;P&gt;  RECLIST-RECEIVER = 'test@here.com'.&lt;/P&gt;&lt;P&gt;  RECLIST-EXPRESS  = 'X'.&lt;/P&gt;&lt;P&gt;  RECLIST-REC_TYPE = 'U'.&lt;/P&gt;&lt;P&gt;  APPEND RECLIST.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;copy recipents&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear RECLIST.&lt;/P&gt;&lt;P&gt;  RECLIST-RECEIVER = 'secondtest@here.com'.&lt;/P&gt;&lt;P&gt;  RECLIST-EXPRESS  = 'X'.&lt;/P&gt;&lt;P&gt;  RECLIST-REC_TYPE = 'U'.&lt;/P&gt;&lt;P&gt;  RECLIST-COPY     = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND RECLIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Sending the document&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;       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;            OPERATION_NO_AUTHORIZATION = 4&lt;/P&gt;&lt;P&gt;            OTHERS                     = 99.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " SEND_MAIL &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;latheesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2006 11:07:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mail-with-attachmetn/m-p/1346666#M174475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-15T11:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: MAIL with attachmetn</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mail-with-attachmetn/m-p/1346667#M174476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this url too&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;a href="http://www.sapdevelopment.co.uk/reporting/email/attachhome.htm"&amp;gt;http://www.sapdevelopment.co.uk/reporting/email/attachhome.htm&amp;lt;/a&amp;gt;&amp;lt;/b&amp;gt;check out this code&lt;/P&gt;&lt;P&gt;just copy and paste it..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report z_mail. 

data method1 like sy-ucomm. 
data g_user like soudnamei1. 
data g_user_data like soudatai1. 
data g_owner like soud-usrnam. 
data g_receipients like soos1 occurs 0 with header line. 
data g_document like sood4 . 
data g_header like sood2. 
data g_folmam like sofm2. 
data g_objcnt like soli occurs 0 with header line. 
data g_objhead like soli occurs 0 with header line. 
data g_objpara  like selc occurs 0 with header line. 
data g_objparb  like soop1 occurs 0 with header line. 
data g_attachments like sood5 occurs 0 with header line. 
data g_references like soxrl occurs 0 with header line. 

data g_authority like sofa-usracc. 
data g_ref_document like sood4. 
data g_new_parent like soodk. 
data: begin of g_files occurs 10 , 
  text(4096) type c, 
   end of g_files. 

data : fold_number(12) type c, 
       fold_yr(2) type c, 
       fold_type(3) type c. 

parameters ws_file(4096) type c default 'c:debugger.txt'. 
* Can me any file fromyour pc ....either xls or word or ppt etc ... 
g_user-sapname = sy-uname. 
call function 'SO_USER_READ_API1' 
exporting 
   user                            = g_user 
*    PREPARE_FOR_FOLDER_ACCESS       = ' ' 
importing 
   user_data                       = g_user_data 
*  EXCEPTIONS 
*    USER_NOT_EXIST                  = 1 
*    PARAMETER_ERROR                 = 2 
*    X_ERROR                         = 3 
*    OTHERS                          = 4 
          . 
if sy-subrc &amp;lt;&amp;gt; 0. 
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO 
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. 
endif. 

fold_type = g_user_data-outboxfol+0(3). 
fold_yr = g_user_data-outboxfol+3(2). 
fold_number =  g_user_data-outboxfol+5(12). 
clear g_files. 

refresh : g_objcnt, 
  g_objhead, 
  g_objpara, 
  g_objparb, 
  g_receipients, 
  g_attachments, 
  g_references, 
  g_files. 

method1 = 'SAVE'. 
g_document-foltp  = fold_type. 
g_document-folyr   = fold_yr. 
g_document-folno   = fold_number. 
g_document-objtp   = g_user_data-object_typ. 
*g_document-OBJYR   = '27'. 
*g_document-OBJNO   = '000000002365'. 
*g_document-OBJNAM = 'MESSAGE'. 
g_document-objdes   = 'sap-img.com testing by program'. 
g_document-folrg   = 'O'. 
*g_document-okcode   = 'CHNG'. 
g_document-objlen = '0'. 
g_document-file_ext = 'TXT'. 

g_header-objdes =  'sap-img.com testing by program'. 
g_header-file_ext = 'TXT'. 

call function 'SO_DOCUMENT_REPOSITORY_MANAGER' 
  exporting 
    method             = method1 
   office_user        = sy-uname 
   ref_document       = g_ref_document 
   new_parent         =  g_new_parent 
importing 
   authority          =  g_authority 
tables 
   objcont            = g_objcnt 
   objhead            = g_objhead 
   objpara            = g_objpara 
   objparb            = g_objparb 
   recipients         = g_receipients 
   attachments        = g_attachments 
   references         = g_references 
   files              = g_files 
  changing 
    document           = g_document 
   header_data        = g_header 
*   FOLMEM_DATA        = 
*   RECEIVE_DATA       = 
          . 

* File from the pc to send... 
method1 = 'ATTCREATEFROMPC'. 

g_files-text = ws_file. 
append g_files. 

call function 'SO_DOCUMENT_REPOSITORY_MANAGER' 
  exporting 
    method             = method1 
   office_user        = g_owner 
   ref_document       = g_ref_document 
   new_parent         =  g_new_parent 
importing 
   authority          =  g_authority 
tables 
   objcont            = g_objcnt 
   objhead            = g_objhead 
   objpara            = g_objpara 
   objparb            = g_objparb 
   recipients         = g_receipients 
   attachments        = g_attachments 
   references         = g_references 
   files              = g_files 
  changing 
    document           = g_document 
   header_data        = g_header 
          . 

method1 = 'SEND'. 

g_receipients-recnam = 'MK085'. 
g_receipients-recesc = 'B'. 
g_receipients-sndex = 'X'. 
append  g_receipients. 
  

call function 'SO_DOCUMENT_REPOSITORY_MANAGER' 
  exporting 
    method             = method1 
   office_user        = g_owner 
   ref_document       = g_ref_document 
   new_parent         =  g_new_parent 
importing 
   authority          =  g_authority 
tables 
   objcont            = g_objcnt 
   objhead            = g_objhead 
   objpara            = g_objpara 
   objparb            = g_objparb 
   recipients         = g_receipients 
   attachments        = g_attachments 
   references         = g_references 
   files              = g_files 
  changing 
    document           = g_document 
   header_data        = g_header. 

*-- End of Program 


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards&lt;/P&gt;&lt;P&gt;naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2006 11:19:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mail-with-attachmetn/m-p/1346667#M174476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-15T11:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: MAIL with attachmetn</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mail-with-attachmetn/m-p/1346668#M174477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ALL,&lt;/P&gt;&lt;P&gt;While sending mail with attachment I am getting the message as mail sent but this mail is in queue.In transaction SOST it is showing "Wait for communications service".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me wht I am supposed to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2006 15:54:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mail-with-attachmetn/m-p/1346668#M174477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-15T15:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: MAIL with attachmetn</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mail-with-attachmetn/m-p/1346669#M174478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuvaraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;"Wait for communications service".&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;This probably means that the message was sent by the user and is in the queue. It will be sent with the next SAPconnect send process. Alternatively, it may have already been sent and an error occurred, causing the SAPconnect repeat mechanism to put the message back in the queue. In this case, it may only be sent after a certain time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further help Check the program documentation in transaction SOST(CNTRL F4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Pawan P. Khilari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 05:55:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mail-with-attachmetn/m-p/1346669#M174478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T05:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: MAIL with attachmetn</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mail-with-attachmetn/m-p/1346670#M174479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; in the function module call there is a paramter "COMMIT_WORK" , you populate 'X' to this field.&lt;/P&gt;&lt;P&gt;this will send the mail immediately once you execute your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alternatively manually also we can send the queued mails from SAP. go to transaction SCOT, there on the application tool bar (click on the last button,clock button)i think its labeled as "send .." click on this button &amp;amp; you will get a pop-up with showing all mails which were in queue. if you click OK. system will send them immediately. now if you check it in SOST,you can see the status "sent".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after this still you have problems, contact your basis people whether your sap connected any SMTP server or not.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Kidambi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 06:03:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mail-with-attachmetn/m-p/1346670#M174479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T06:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: MAIL with attachmetn</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mail-with-attachmetn/m-p/1346671#M174480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Yuvaraj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: OBJPACK   LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA: OBJHEAD   LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA: OBJBIN    LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA: OBJTXT    LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA: RECLIST   LIKE SOMLRECI1 OCCURS 5 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_NUM(3).&lt;/P&gt;&lt;P&gt;&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;LI level="1" type="ul"&gt;&lt;P&gt;File Name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DOC_CHNG-OBJ_NAME = 'SENDFILE'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Mail Subject&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DOC_CHNG-OBJ_DESCR = 'Delivered Mail'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Mail Contents&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  OBJTXT = 'Object text'.&lt;/P&gt;&lt;P&gt;  APPEND OBJTXT.&lt;/P&gt;&lt;P&gt;&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;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-TRANSF_BIN.&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 ITAB_DATA.&lt;/P&gt;&lt;P&gt;    CONCATENATE ITAB_DATA-PRODUCTOR&lt;/P&gt;&lt;P&gt;                ITAB_DATA-VBELN&lt;/P&gt;&lt;P&gt;                ITAB_DATA-POSNR&lt;/P&gt;&lt;P&gt;                ITAB_DATA-MATNR INTO OBJBIN.&lt;/P&gt;&lt;P&gt;    APPEND OBJBIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE OBJBIN LINES TAB_LINES.&lt;/P&gt;&lt;P&gt;  OBJHEAD = 'ORDERS'.&lt;/P&gt;&lt;P&gt;  APPEND OBJHEAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Creation of the entry for the compressed attachment&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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   = 'TXT'.&lt;/P&gt;&lt;P&gt;  OBJPACK-OBJ_NAME   = 'WEBSITE'.&lt;/P&gt;&lt;P&gt;  OBJPACK-OBJ_DESCR  = 'ORDERS.TXT'.&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;LI level="1" type="ul"&gt;&lt;P&gt;target recipent&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear RECLIST.&lt;/P&gt;&lt;P&gt;  RECLIST-RECEIVER = 'test@here.com'.&lt;/P&gt;&lt;P&gt;  RECLIST-EXPRESS  = 'X'.&lt;/P&gt;&lt;P&gt;  RECLIST-REC_TYPE = 'U'.&lt;/P&gt;&lt;P&gt;  APPEND RECLIST.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;copy recipents&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear RECLIST.&lt;/P&gt;&lt;P&gt;  RECLIST-RECEIVER = 'secondtest@here.com'.&lt;/P&gt;&lt;P&gt;  RECLIST-EXPRESS  = 'X'.&lt;/P&gt;&lt;P&gt;  RECLIST-REC_TYPE = 'U'.&lt;/P&gt;&lt;P&gt;  RECLIST-COPY     = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND RECLIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Sending the document&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;       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;            OPERATION_NO_AUTHORIZATION = 4&lt;/P&gt;&lt;P&gt;            OTHERS                     = 99.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Sreenivasulu P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 06:05:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mail-with-attachmetn/m-p/1346671#M174480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T06:05:15Z</dc:date>
    </item>
  </channel>
</rss>

