<?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: regarding SO_NEW_DOCUMENT_ATT_SEND_API1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1/m-p/2210124#M473263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;   This is the coding part related to : SO_NEW_DOCUMENT_ATT_SEND_API1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; TABLES : soli.&lt;/P&gt;&lt;P&gt;  TABLES : zpsdsalrep.&lt;/P&gt;&lt;P&gt;  DATA: v_email TYPE soli-line.&lt;/P&gt;&lt;P&gt;  DATA: v_email1 TYPE soli-line.&lt;/P&gt;&lt;P&gt;  DATA: l_adrnr LIKE kna1-adrnr.&lt;/P&gt;&lt;P&gt;  DATA: l_objky TYPE nast-objky.&lt;/P&gt;&lt;P&gt;  DATA: l_zzterrmg TYPE zpsdsalrep-zzterrmg.&lt;/P&gt;&lt;P&gt;  DATA: l_zsupervisor TYPE zpsdsalrep-zsupervisor.&lt;/P&gt;&lt;P&gt;  DATA: l_kunnr TYPE kna1-kunnr.&lt;/P&gt;&lt;P&gt;  DATA: l_kunnr1 TYPE vbak-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE kunnr FROM vbak INTO l_kunnr1&lt;/P&gt;&lt;P&gt;         WHERE vbeln = nast-objky.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE adrnr FROM kna1 INTO l_adrnr&lt;/P&gt;&lt;P&gt;         WHERE kunnr = l_kunnr1.&lt;/P&gt;&lt;P&gt;  CHECK sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE smtp_addr FROM adr6 INTO v_email&lt;/P&gt;&lt;P&gt;         WHERE addrnumber = l_adrnr.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE zzterrmg FROM zpsdsalrep INTO l_zzterrmg&lt;/P&gt;&lt;P&gt;         WHERE zzsalesrep = l_kunnr1.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE zsupervisor FROM zpsdsalrep INTO l_zsupervisor&lt;/P&gt;&lt;P&gt;      WHERE  zzterrmg = l_zzterrmg.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE kunnr FROM kna1 INTO l_kunnr&lt;/P&gt;&lt;P&gt;        WHERE sortl = l_zsupervisor.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE adrnr FROM kna1 INTO l_adrnr&lt;/P&gt;&lt;P&gt;         WHERE kunnr = l_kunnr.&lt;/P&gt;&lt;P&gt;  CHECK sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE smtp_addr FROM adr6 INTO v_email1&lt;/P&gt;&lt;P&gt;         WHERE addrnumber = l_adrnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: l_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA: l_objtxt    LIKE solisti1 OCCURS   0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA: l_objpack   LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA: l_doc_chng  LIKE sodocchgi1.&lt;/P&gt;&lt;P&gt;  DATA: l_objhead   LIKE solisti1 OCCURS   0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA: l_tab_lines LIKE sy-tabix.&lt;/P&gt;&lt;P&gt;  CONSTANTS: k_true TYPE boolean_flg VALUE 'X'.&lt;/P&gt;&lt;P&gt;  DATA: l_mail TYPE somlreci1-receiver.&lt;/P&gt;&lt;P&gt;  DATA: l_mail1 TYPE somlreci1-receiver.&lt;/P&gt;&lt;P&gt;  DATA: k_mail2 TYPE somlreci1-receiver.&lt;/P&gt;&lt;P&gt;  DATA: k_mail TYPE somlreci1-receiver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_mail = v_email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_mail1 = v_email1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  k_mail2 = text-006.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  k_mail = text-007.&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;  l_doc_chng-obj_name = 'SENDFILE'.&lt;/P&gt;&lt;P&gt;&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;  l_doc_chng-obj_descr = text-001.&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;  l_reclist-receiver = l_mail.&lt;/P&gt;&lt;P&gt;  l_reclist-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;  APPEND l_reclist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_reclist-receiver = l_mail1.&lt;/P&gt;&lt;P&gt;  l_reclist-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;  APPEND l_reclist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_reclist-receiver = k_mail.&lt;/P&gt;&lt;P&gt;  l_reclist-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;  APPEND l_reclist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_reclist-receiver = k_mail2.&lt;/P&gt;&lt;P&gt;  l_reclist-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;  APPEND l_reclist.&lt;/P&gt;&lt;P&gt;&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;  l_objtxt = text-002.&lt;/P&gt;&lt;P&gt;  APPEND l_objtxt.&lt;/P&gt;&lt;P&gt;  CLEAR l_objtxt.     " put in a blank line&lt;/P&gt;&lt;P&gt;  APPEND l_objtxt.&lt;/P&gt;&lt;P&gt;  l_objtxt = text-003.&lt;/P&gt;&lt;P&gt;  APPEND l_objtxt.&lt;/P&gt;&lt;P&gt;  l_objtxt = text-004 .&lt;/P&gt;&lt;P&gt;  APPEND l_objtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Calculate email size in bytes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DESCRIBE TABLE l_objtxt LINES l_tab_lines.&lt;/P&gt;&lt;P&gt;  READ TABLE l_objtxt INDEX l_tab_lines.&lt;/P&gt;&lt;P&gt;  l_doc_chng-doc_size = ( l_tab_lines - 1 ) * 255 + STRLEN( l_objtxt ).&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 entry for the compressed document&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;for the email text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR l_objpack-transf_bin.&lt;/P&gt;&lt;P&gt;  l_objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;  l_objpack-head_num = 0.&lt;/P&gt;&lt;P&gt;  l_objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;  l_objpack-body_num = l_tab_lines.&lt;/P&gt;&lt;P&gt;  l_objpack-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;  APPEND l_objpack.&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 attachment&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;(Assume that the data in OBJBIN is in BMP format)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DESCRIBE TABLE l_objbin LINES l_tab_lines.&lt;/P&gt;&lt;P&gt;  l_objhead = text-001  .&lt;/P&gt;&lt;P&gt;  APPEND l_objhead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR l_objpack.&lt;/P&gt;&lt;P&gt;**/ Creation of the entry for the compressed/attached document&lt;/P&gt;&lt;P&gt;  l_objpack-transf_bin = k_true.&lt;/P&gt;&lt;P&gt;  l_objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;  l_objpack-head_num = 1.&lt;/P&gt;&lt;P&gt;  l_objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;  l_objpack-body_num = l_tab_lines.&lt;/P&gt;&lt;P&gt;  l_objpack-doc_type = 'PDF'.&lt;/P&gt;&lt;P&gt;  l_objpack-obj_name = text-005.&lt;/P&gt;&lt;P&gt;  l_objpack-obj_descr = text-001.&lt;/P&gt;&lt;P&gt;  l_objpack-doc_size = l_tab_lines * 255.&lt;/P&gt;&lt;P&gt;  APPEND l_objpack. "/ .&lt;/P&gt;&lt;P&gt;&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;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              = l_doc_chng&lt;/P&gt;&lt;P&gt;      put_in_outbox              = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      packing_list               = l_objpack&lt;/P&gt;&lt;P&gt;      object_header              = l_objhead&lt;/P&gt;&lt;P&gt;      contents_bin               = l_objbin&lt;/P&gt;&lt;P&gt;      contents_txt               = l_objtxt&lt;/P&gt;&lt;P&gt;      receivers                  = l_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;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    WRITE: / 'unsuccessful', sy-subrc.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    WRITE:  / 'successful'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**/Take_note it is a requirement to do a commit work for the&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;email to go into transaction SOST.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  COMMIT WORK.   "/Take_note .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Apr 2007 05:20:14 GMT</pubDate>
    <dc:creator>sreeramkumar_madisetty</dc:creator>
    <dc:date>2007-04-23T05:20:14Z</dc:date>
    <item>
      <title>regarding SO_NEW_DOCUMENT_ATT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1/m-p/2210122#M473261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am trying 2 send a email with a attachment using the function module 'SO_NEW_DOCUMENT_ATT_SEND_API1' . if i send an attachment should i use the packing option in that function module ? wat is that for ?? can anybody tel me the mandatory parameters for this function modules&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 05:04:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1/m-p/2210122#M473261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T05:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: regarding SO_NEW_DOCUMENT_ATT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1/m-p/2210123#M473262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;See the sample code using this Fun module and use accordingly:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INCLUDE ZINCUSMAIL                                                 *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include &amp;lt;symbol&amp;gt;.&lt;/P&gt;&lt;P&gt;data : i_doc_data like sodocchgi1.&lt;/P&gt;&lt;P&gt;data : begin of i_pack_list occurs 0.&lt;/P&gt;&lt;P&gt;        include structure sopcklsti1.&lt;/P&gt;&lt;P&gt;data : end of i_pack_list.&lt;/P&gt;&lt;P&gt;data : begin of i_receivers occurs 0.&lt;/P&gt;&lt;P&gt;        include structure somlreci1.&lt;/P&gt;&lt;P&gt;data : end of i_receivers.&lt;/P&gt;&lt;P&gt;data : begin of i_contents occurs 0.&lt;/P&gt;&lt;P&gt;        include structure solisti1.&lt;/P&gt;&lt;P&gt;data : end of i_contents.&lt;/P&gt;&lt;P&gt;data : begin of i_header occurs 0.&lt;/P&gt;&lt;P&gt;        include structure solisti1.&lt;/P&gt;&lt;P&gt;data : end of i_header.&lt;/P&gt;&lt;P&gt;data : begin of i_att occurs 0.&lt;/P&gt;&lt;P&gt;        include structure solisti1.&lt;/P&gt;&lt;P&gt;data : end of i_att.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal Table for Internet address.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: begin of it_inad occurs 0,&lt;/P&gt;&lt;P&gt;        kunnr like kna1-kunnr,           " Customer Code&lt;/P&gt;&lt;P&gt;        name1 like kna1-name1,           " Customer Name&lt;/P&gt;&lt;P&gt;        ssobl like knkk-ssobl,           " Security Deposit&lt;/P&gt;&lt;P&gt;        klimk like knkk-klimk,           " Credit Limit&lt;/P&gt;&lt;P&gt;        opbal like bsid-wrbtr,           " Opening Balance&lt;/P&gt;&lt;P&gt;        clbal like bsid-wrbtr,           " Closing Balance&lt;/P&gt;&lt;P&gt;        smtp  like adr6-smtp_addr,       " Internet mail (SMTP) address&lt;/P&gt;&lt;P&gt;      end of it_inad.&lt;/P&gt;&lt;P&gt;data : pdf_line(134),&lt;/P&gt;&lt;P&gt;       asdf like pdf_line occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data : pdf_table like tline occurs 0 with header line,&lt;/P&gt;&lt;P&gt;       pdf_fsize type  i.&lt;/P&gt;&lt;P&gt;data : stuff(65000),&lt;/P&gt;&lt;P&gt;       len type i,&lt;/P&gt;&lt;P&gt;       pos type i,&lt;/P&gt;&lt;P&gt;       tab_lines like sy-tabix.&lt;/P&gt;&lt;P&gt;data:  spoolid    type tsp01-rqident,&lt;/P&gt;&lt;P&gt;       spdel      type tsp01sys.&lt;/P&gt;&lt;P&gt;data:  v_gjahrt like bsid-gjahr,&lt;/P&gt;&lt;P&gt;       fmondest(10),&lt;/P&gt;&lt;P&gt;       tmondest(10),&lt;/P&gt;&lt;P&gt;       kunnr1 like kna1-kunnr,&lt;/P&gt;&lt;P&gt;       gjah(4),&lt;/P&gt;&lt;P&gt;       fmon(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  hide_write&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form hide_write.&lt;/P&gt;&lt;P&gt;  new-page print on&lt;/P&gt;&lt;P&gt;    line-size 160&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   line-count 58&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    no-title&lt;/P&gt;&lt;P&gt;    no-heading&lt;/P&gt;&lt;P&gt;    destination 'LOCL'&lt;/P&gt;&lt;P&gt;    immediately ' '&lt;/P&gt;&lt;P&gt;    new list identification 'X'&lt;/P&gt;&lt;P&gt;    no dialog.&lt;/P&gt;&lt;P&gt;  set blank lines on.&lt;/P&gt;&lt;P&gt;endform.                    " hide_write&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  end_write&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form end_write using kunnr1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  set blank lines off.&lt;/P&gt;&lt;P&gt;  new-page print off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Using Spoolid we are getting PDF formated file&lt;/P&gt;&lt;P&gt;  spoolid = spdel-rqident = sy-spono.&lt;/P&gt;&lt;P&gt;  spdel-sys = sy-sysid.&lt;/P&gt;&lt;P&gt;  call function 'CONVERT_ABAPSPOOLJOB_2_PDF'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            src_spoolid   = spoolid&lt;/P&gt;&lt;P&gt;            no_dialog     = 'X'&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            pdf_bytecount = pdf_fsize&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            pdf           = pdf_table&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others        = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Delleting Spool request&lt;/P&gt;&lt;P&gt;  call function 'RSPO_IDELETE_SPOOLREQ'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            spoolreq = spdel&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others   = 2.&lt;/P&gt;&lt;P&gt;***Converting PDF table line size 134 into standard list size 255&lt;/P&gt;&lt;P&gt;  loop at pdf_table into pdf_line.&lt;/P&gt;&lt;P&gt;    if pos = 34170.&lt;/P&gt;&lt;P&gt;     perform attach.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    stuff+pos(134) = pdf_line.&lt;/P&gt;&lt;P&gt;    add 134 to pos.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;if not ( stuff is initial ).&lt;/P&gt;&lt;P&gt;  perform attach.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;clear pdf_line.&lt;/P&gt;&lt;P&gt;clear pdf_table[].&lt;/P&gt;&lt;P&gt;describe table i_att lines tab_lines.&lt;/P&gt;&lt;P&gt;i_pack_list-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt;i_pack_list-head_start = '1'.&lt;/P&gt;&lt;P&gt;i_pack_list-head_num = '1'.&lt;/P&gt;&lt;P&gt;i_pack_list-body_start = '1'.&lt;/P&gt;&lt;P&gt;i_pack_list-body_num = tab_lines.&lt;/P&gt;&lt;P&gt;i_pack_list-doc_type = 'PDF'.&lt;/P&gt;&lt;P&gt;i_pack_list-obj_name = 'LedgerMail'.&lt;/P&gt;&lt;P&gt;concatenate fmon '-' gjah into i_pack_list-obj_descr.&lt;/P&gt;&lt;P&gt;*i_pack_list-obj_descr = '2092-Oct03'.&lt;/P&gt;&lt;P&gt;i_pack_list-obj_langu = 'E'.&lt;/P&gt;&lt;P&gt;i_pack_list-doc_size = tab_lines * 255.&lt;/P&gt;&lt;P&gt;append i_pack_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Data for receivers list&lt;/P&gt;&lt;P&gt;loop at it_inad where kunnr eq kunnr1.&lt;/P&gt;&lt;P&gt;i_receivers-receiver = it_inad-smtp.&lt;/P&gt;&lt;P&gt;i_receivers-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;i_receivers-rec_date = sy-datum.&lt;/P&gt;&lt;P&gt;i_receivers-express = 'X'.&lt;/P&gt;&lt;P&gt;i_receivers-com_type = 'INT'.&lt;/P&gt;&lt;P&gt;i_receivers-notif_del = 'X'.&lt;/P&gt;&lt;P&gt;append i_receivers.&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                    = i_doc_data&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PUT_IN_OUTBOX                    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SENT_TO_ALL                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NEW_OBJECT_ID                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    packing_list                     = i_pack_list&lt;/P&gt;&lt;P&gt;    object_header                    = i_header&lt;/P&gt;&lt;P&gt;    contents_bin                     = i_att&lt;/P&gt;&lt;P&gt;    contents_txt                     = i_contents&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;P&gt;          .&lt;/P&gt;&lt;P&gt;refresh i_att. clear i_att.&lt;/P&gt;&lt;P&gt;refresh i_receivers. clear i_receivers.&lt;/P&gt;&lt;P&gt;delete i_pack_list where doc_type = 'PDF'.&lt;/P&gt;&lt;P&gt;*refresh i_header.&lt;/P&gt;&lt;P&gt;*refresh i_contents.&lt;/P&gt;&lt;P&gt;*clear i_doc_data.&lt;/P&gt;&lt;P&gt;endform.                    " end_write&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  doc_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form doc_data using fmondest v_gjahrt.&lt;/P&gt;&lt;P&gt;gjah = v_gjahrt.&lt;/P&gt;&lt;P&gt;fmon = fmondest.&lt;/P&gt;&lt;P&gt;***Data for Document Data&lt;/P&gt;&lt;P&gt;i_doc_data-obj_name = 'LedgerMail'.&lt;/P&gt;&lt;P&gt;concatenate 'Customer Ledger for : ' fmondest gjah&lt;/P&gt;&lt;P&gt;into i_doc_data-obj_descr separated by space.&lt;/P&gt;&lt;P&gt;i_doc_data-obj_langu = 'E'.&lt;/P&gt;&lt;P&gt;i_doc_data-obj_prio = '1'.&lt;/P&gt;&lt;P&gt;i_doc_data-no_change = 'X'.&lt;/P&gt;&lt;P&gt;i_doc_data-doc_size = '5101'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Data for Packing list&lt;/P&gt;&lt;P&gt;i_pack_list-head_start = '1'.&lt;/P&gt;&lt;P&gt;i_pack_list-head_num = '1'.&lt;/P&gt;&lt;P&gt;i_pack_list-body_start = '1'.&lt;/P&gt;&lt;P&gt;i_pack_list-body_num = '20'.&lt;/P&gt;&lt;P&gt;i_pack_list-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;i_pack_list-obj_langu = 'E'.&lt;/P&gt;&lt;P&gt;append i_pack_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Data for Header&lt;/P&gt;&lt;P&gt;i_header-line = 'Header'. append i_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Data for contents&lt;/P&gt;&lt;P&gt;i_contents-line = 'Dear Customer,'. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;concatenate 'Please find your enclosed Ledger for the month of : '&lt;/P&gt;&lt;P&gt;fmondest gjah into i_contents-line separated by space.&lt;/P&gt;&lt;P&gt;append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = 'This is a computer generated document and does not&lt;/P&gt;&lt;P&gt;require a signature.'. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = 'Note : If you do not have Acrobat Reader please click&lt;/P&gt;&lt;P&gt; on the below link.'. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = 'http://www.adobe.com/products/acrobat/readstep2.html'&lt;/P&gt;&lt;P&gt;. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;i_contents-line = ' '. append i_contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " doc_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  attach&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form attach.&lt;/P&gt;&lt;P&gt;  clear pos.&lt;/P&gt;&lt;P&gt;  len = strlen( stuff ).&lt;/P&gt;&lt;P&gt;  while len &amp;gt; 0.&lt;/P&gt;&lt;P&gt;    subtract 255 from len.&lt;/P&gt;&lt;P&gt;    i_att = stuff+pos(255).&lt;/P&gt;&lt;P&gt;    append i_att.&lt;/P&gt;&lt;P&gt;    add 255 to pos.&lt;/P&gt;&lt;P&gt;  endwhile.&lt;/P&gt;&lt;P&gt;  clear pos.&lt;/P&gt;&lt;P&gt;  clear stuff.&lt;/P&gt;&lt;P&gt;endform.                    " attach&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 05:07:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1/m-p/2210123#M473262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T05:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: regarding SO_NEW_DOCUMENT_ATT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1/m-p/2210124#M473263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;   This is the coding part related to : SO_NEW_DOCUMENT_ATT_SEND_API1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; TABLES : soli.&lt;/P&gt;&lt;P&gt;  TABLES : zpsdsalrep.&lt;/P&gt;&lt;P&gt;  DATA: v_email TYPE soli-line.&lt;/P&gt;&lt;P&gt;  DATA: v_email1 TYPE soli-line.&lt;/P&gt;&lt;P&gt;  DATA: l_adrnr LIKE kna1-adrnr.&lt;/P&gt;&lt;P&gt;  DATA: l_objky TYPE nast-objky.&lt;/P&gt;&lt;P&gt;  DATA: l_zzterrmg TYPE zpsdsalrep-zzterrmg.&lt;/P&gt;&lt;P&gt;  DATA: l_zsupervisor TYPE zpsdsalrep-zsupervisor.&lt;/P&gt;&lt;P&gt;  DATA: l_kunnr TYPE kna1-kunnr.&lt;/P&gt;&lt;P&gt;  DATA: l_kunnr1 TYPE vbak-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE kunnr FROM vbak INTO l_kunnr1&lt;/P&gt;&lt;P&gt;         WHERE vbeln = nast-objky.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE adrnr FROM kna1 INTO l_adrnr&lt;/P&gt;&lt;P&gt;         WHERE kunnr = l_kunnr1.&lt;/P&gt;&lt;P&gt;  CHECK sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE smtp_addr FROM adr6 INTO v_email&lt;/P&gt;&lt;P&gt;         WHERE addrnumber = l_adrnr.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE zzterrmg FROM zpsdsalrep INTO l_zzterrmg&lt;/P&gt;&lt;P&gt;         WHERE zzsalesrep = l_kunnr1.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE zsupervisor FROM zpsdsalrep INTO l_zsupervisor&lt;/P&gt;&lt;P&gt;      WHERE  zzterrmg = l_zzterrmg.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE kunnr FROM kna1 INTO l_kunnr&lt;/P&gt;&lt;P&gt;        WHERE sortl = l_zsupervisor.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE adrnr FROM kna1 INTO l_adrnr&lt;/P&gt;&lt;P&gt;         WHERE kunnr = l_kunnr.&lt;/P&gt;&lt;P&gt;  CHECK sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE smtp_addr FROM adr6 INTO v_email1&lt;/P&gt;&lt;P&gt;         WHERE addrnumber = l_adrnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: l_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA: l_objtxt    LIKE solisti1 OCCURS   0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA: l_objpack   LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA: l_doc_chng  LIKE sodocchgi1.&lt;/P&gt;&lt;P&gt;  DATA: l_objhead   LIKE solisti1 OCCURS   0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA: l_tab_lines LIKE sy-tabix.&lt;/P&gt;&lt;P&gt;  CONSTANTS: k_true TYPE boolean_flg VALUE 'X'.&lt;/P&gt;&lt;P&gt;  DATA: l_mail TYPE somlreci1-receiver.&lt;/P&gt;&lt;P&gt;  DATA: l_mail1 TYPE somlreci1-receiver.&lt;/P&gt;&lt;P&gt;  DATA: k_mail2 TYPE somlreci1-receiver.&lt;/P&gt;&lt;P&gt;  DATA: k_mail TYPE somlreci1-receiver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_mail = v_email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_mail1 = v_email1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  k_mail2 = text-006.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  k_mail = text-007.&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;  l_doc_chng-obj_name = 'SENDFILE'.&lt;/P&gt;&lt;P&gt;&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;  l_doc_chng-obj_descr = text-001.&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;  l_reclist-receiver = l_mail.&lt;/P&gt;&lt;P&gt;  l_reclist-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;  APPEND l_reclist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_reclist-receiver = l_mail1.&lt;/P&gt;&lt;P&gt;  l_reclist-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;  APPEND l_reclist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_reclist-receiver = k_mail.&lt;/P&gt;&lt;P&gt;  l_reclist-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;  APPEND l_reclist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_reclist-receiver = k_mail2.&lt;/P&gt;&lt;P&gt;  l_reclist-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;  APPEND l_reclist.&lt;/P&gt;&lt;P&gt;&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;  l_objtxt = text-002.&lt;/P&gt;&lt;P&gt;  APPEND l_objtxt.&lt;/P&gt;&lt;P&gt;  CLEAR l_objtxt.     " put in a blank line&lt;/P&gt;&lt;P&gt;  APPEND l_objtxt.&lt;/P&gt;&lt;P&gt;  l_objtxt = text-003.&lt;/P&gt;&lt;P&gt;  APPEND l_objtxt.&lt;/P&gt;&lt;P&gt;  l_objtxt = text-004 .&lt;/P&gt;&lt;P&gt;  APPEND l_objtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Calculate email size in bytes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DESCRIBE TABLE l_objtxt LINES l_tab_lines.&lt;/P&gt;&lt;P&gt;  READ TABLE l_objtxt INDEX l_tab_lines.&lt;/P&gt;&lt;P&gt;  l_doc_chng-doc_size = ( l_tab_lines - 1 ) * 255 + STRLEN( l_objtxt ).&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 entry for the compressed document&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;for the email text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR l_objpack-transf_bin.&lt;/P&gt;&lt;P&gt;  l_objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;  l_objpack-head_num = 0.&lt;/P&gt;&lt;P&gt;  l_objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;  l_objpack-body_num = l_tab_lines.&lt;/P&gt;&lt;P&gt;  l_objpack-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;  APPEND l_objpack.&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 attachment&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;(Assume that the data in OBJBIN is in BMP format)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DESCRIBE TABLE l_objbin LINES l_tab_lines.&lt;/P&gt;&lt;P&gt;  l_objhead = text-001  .&lt;/P&gt;&lt;P&gt;  APPEND l_objhead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR l_objpack.&lt;/P&gt;&lt;P&gt;**/ Creation of the entry for the compressed/attached document&lt;/P&gt;&lt;P&gt;  l_objpack-transf_bin = k_true.&lt;/P&gt;&lt;P&gt;  l_objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;  l_objpack-head_num = 1.&lt;/P&gt;&lt;P&gt;  l_objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;  l_objpack-body_num = l_tab_lines.&lt;/P&gt;&lt;P&gt;  l_objpack-doc_type = 'PDF'.&lt;/P&gt;&lt;P&gt;  l_objpack-obj_name = text-005.&lt;/P&gt;&lt;P&gt;  l_objpack-obj_descr = text-001.&lt;/P&gt;&lt;P&gt;  l_objpack-doc_size = l_tab_lines * 255.&lt;/P&gt;&lt;P&gt;  APPEND l_objpack. "/ .&lt;/P&gt;&lt;P&gt;&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;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              = l_doc_chng&lt;/P&gt;&lt;P&gt;      put_in_outbox              = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      packing_list               = l_objpack&lt;/P&gt;&lt;P&gt;      object_header              = l_objhead&lt;/P&gt;&lt;P&gt;      contents_bin               = l_objbin&lt;/P&gt;&lt;P&gt;      contents_txt               = l_objtxt&lt;/P&gt;&lt;P&gt;      receivers                  = l_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;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    WRITE: / 'unsuccessful', sy-subrc.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    WRITE:  / 'successful'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**/Take_note it is a requirement to do a commit work for the&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;email to go into transaction SOST.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  COMMIT WORK.   "/Take_note .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 05:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1/m-p/2210124#M473263</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-04-23T05:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: regarding SO_NEW_DOCUMENT_ATT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1/m-p/2210125#M473264</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;This ids the totla documetation of  this FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FU SO_NEW_DOCUMENT_ATT_SEND_API1&lt;/P&gt;&lt;P&gt;____________________________________________________&lt;/P&gt;&lt;P&gt;Short text&lt;/P&gt;&lt;P&gt;SAPoffice: Send new document with attachments via RFC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functionality&lt;/P&gt;&lt;P&gt;This function module enables you to send a new document including any existing attachments. The document and the attachments are transferred in the same table. They are created when sent and can also be placed in the sender's outbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is necessary to distinguish between the document and its folder entries. The document itself only exists in the database once. It is a template for the folder entries and can be addressed via its object ID. Any number of folder entries can belong to the document. The folder entries have the content and the attributes of the document as well as some additional attributes relating to the folder entry itself. (Send priority and expiry date of the entry, for example.) Folder entries are created when a document is resubmitted, referenced, or sent, as well as when a new document is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import Parameters&lt;/P&gt;&lt;P&gt;PUT_IN_OUTBOX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this flag is activated ('X'), the newly created document is also placed in the outbox of the active user when it is sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DOCUMENT_DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This structure must contain the attributes of the document to be sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJ_NAME&lt;/P&gt;&lt;P&gt;Name of document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJ_DESCR&lt;/P&gt;&lt;P&gt;Title (short description) of document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJ_LANGU&lt;/P&gt;&lt;P&gt;Language of document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJ_SORT&lt;/P&gt;&lt;P&gt;Sort field of document. You can search for this term using attribute search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJ_EXPDAT&lt;/P&gt;&lt;P&gt;Expiration date of document. The document itself cannot expire, but each time the document is entered in a folder, this date is used as the default for the expiration date of the entry (field EXPIRY_DAT).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SENSITIVTY&lt;/P&gt;&lt;P&gt;Document sensitivity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A personal document can have the following levels of sensitivity:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'O' : Standard, normal sensitivity&lt;/P&gt;&lt;P&gt;'F' : Functional, can be forwarded functionally&lt;/P&gt;&lt;P&gt;'P' : Confidential, not visible to substitutes&lt;/P&gt;&lt;P&gt;For documents in shared folders, only sensitivity level 'O' is permitted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJ_PRIO&lt;/P&gt;&lt;P&gt;Recipient priority. The document itself does not have a priority level, but each time the document is entered in a folder, this value is used as the default for recipient priority for the entry (field PRIORITY).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NO_CHANGE&lt;/P&gt;&lt;P&gt;If this flag is activated ('X'), documents in shared folders can only be changed by the author. The author can change documents in private folders after they have been sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRIORITY&lt;/P&gt;&lt;P&gt;Recipient priority for the folder entry. This value gives the priority, which was assigned to the document by the owner, after receipt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPIRY_DAT&lt;/P&gt;&lt;P&gt;Expiration date of the folder entry. When the expiration date has been reached or passed, the entry is placed in private trash and can be retrieved from there if needed, up until the next time the trash is emptied. A new folder entry is initially given the expiration date of the document from field OBJ_EXPDT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC_TYPE&lt;/P&gt;&lt;P&gt;If this field does not contain the default value (default is ' '), the document can be processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following entries are permitted:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'D' : Dialog module&lt;/P&gt;&lt;P&gt;'F' : Function module&lt;/P&gt;&lt;P&gt;'R' : Report&lt;/P&gt;&lt;P&gt;'S' : Report with transfer of values to global memory&lt;/P&gt;&lt;P&gt;'T' : Transaction&lt;/P&gt;&lt;P&gt;'U' : Transaction with transfer of values to global memory&lt;/P&gt;&lt;P&gt;PROC_NAME&lt;/P&gt;&lt;P&gt;Processing element. You must enter the name of the dialog module, function module, report or transaction in accordance with the entry in the field PROC_TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC_SYST&lt;/P&gt;&lt;P&gt;Name of system in which the document is to be processed. If no system is specified or '*' is entered, processing is possible in all systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC_CLINT&lt;/P&gt;&lt;P&gt;Client in which the document is to be processed. If no client is specified or '*' is entered, processing is possible in all clients.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SKIP_SCREN&lt;/P&gt;&lt;P&gt;If this flag is activated ('X'), the first screen is skipped during processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TO_DO_OUT&lt;/P&gt;&lt;P&gt;If this flag is activated ('X'), the document cannot be processed from the SAPoffice interface. You must use the API function module SO_DOCUMENT_SET_STATUS_API1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FREE_DEL&lt;/P&gt;&lt;P&gt;If this flag is activated ('X'), the document can be deleted by using the API, even in foreign folders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DOC_SIZE&lt;/P&gt;&lt;P&gt;Size of the document in bytes. For PC documents, the size of the relevant file should be entered, for RAW and SCR documents the size is the "length of the last line" + "number of other lines multiplied by 255".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export Parameters&lt;/P&gt;&lt;P&gt;NEW_OBJECT_ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Object ID of the document created during the send process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SENT_TO_ALL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this flag is activated ('X'), the document was sent to all specified recipients or, in the case of external forwarding, the corresponding send requests were delivered to a subsystem. If sending or delivery failed in one or more cases, the flag is not activated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table Parameters&lt;/P&gt;&lt;P&gt;PACKING_LIST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table requires information about how the data in the tables OBJECT_HEADER, CONTENTS_BIN, and CONTENTS_TXT is to be distributed to the documents and its attachments. The first row is for the document, the following rows are each for one attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSF_BIN&lt;/P&gt;&lt;P&gt;If this flag is activated ('X'), the table entry describes an object stored in binary format. The content of the object is in the table CONTENTS_BIN. If the flag is not activated, the object content is in the table CONTENTS_TXT in ASCII format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HEAD_START&lt;/P&gt;&lt;P&gt;Requires the start row of the table OBJECT_HEADER, as of which the specific header data of the object is stored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HEAD_NUM&lt;/P&gt;&lt;P&gt;Requires the number of rows in the table OBJECT_HEADER that contain specific header data for the object. The relevant rows are arranged in a block and defined uniquely together with the entry in HEAD_START.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BODY_START&lt;/P&gt;&lt;P&gt;Requires the start row of the table dependent on the TRANSF_BIN flag as of which the object content is stored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BODY_NUM&lt;/P&gt;&lt;P&gt;Requires the number of rows of the table dependent on the flag TRANSFER_BIN, which contain the object content. The relevant rows are arranged in a block and defined uniquely together with the entry in HEAD_START.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DOC_TYPE&lt;/P&gt;&lt;P&gt;Attachment type. In the first row of the table, this field is not used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJ_NAME&lt;/P&gt;&lt;P&gt;Attachment name. In the first row of the table, this field is not used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJ_DESCR&lt;/P&gt;&lt;P&gt;Attachment title (short description). In the first row of the table, this field is not used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJ_LANGU&lt;/P&gt;&lt;P&gt;Attachment language. In the first row of the table, this field is not used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DOC_SIZE&lt;/P&gt;&lt;P&gt;Attachment size in bytes. For PC objects, enter the size of the relevant file here. For RAW and SCR objects, the size is the "length of the last page" + "number of other rows multiplied by 255". In the first row of the table, this field is not used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESS_TYPE&lt;/P&gt;&lt;P&gt;This field is not used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECT_HEADER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table must contain the summarized data dependent on each object type. SAPscript objects store information here about forms and styles, for example. Excel list viewer objects store the number of rows and columns amongst other things, and PC objects store their original file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINE&lt;/P&gt;&lt;P&gt;Requires the type-specific data of the object line by line. The fields HEAD_START and HEAD_NUM in the table PACKING_LIST define which section belongs to which object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTENTS_BIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table must contain the summarized content of the objects identified as binary objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINE&lt;/P&gt;&lt;P&gt;Requires the object content line by line. The fields BODY_START and BODY_NUM in the table PACKING_LIST define which section belongs to which object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTENTS_TXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table must contain the summarized content of the objects identified as ASCII objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINE&lt;/P&gt;&lt;P&gt;Requires the object content line by line. The fields BODY_START and BODY_NUM in the table PACKING_LIST define which section belongs to which object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECT_PARA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table is only needed if the document to be sent is to be processed. The table must contain SET/GET parameters that are transferred to the processing element during processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not possible to transfer processing parameters to the document attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME&lt;/P&gt;&lt;P&gt;Name of SET/GET parameter. Only the first three characters are used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPTION&lt;/P&gt;&lt;P&gt;This field is not used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOW&lt;/P&gt;&lt;P&gt;Contains the value of the parameter in NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIGH&lt;/P&gt;&lt;P&gt;This field is not used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECT_PARB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table is used only if a particular processing type is assigned to the document to be sent. The meaning of the table depends on the processing type. If the processing element is a report, or transaction with transfer of values to the global memory, the table content is interpreted as the quantity of parameters with the relevant values and exported to the memory ID taken from the first row. If the processing element is a function module or a dialog module, the table is transferred to this as table parameter MSGDIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not possible to transfer processing parameters to the document attachments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME&lt;/P&gt;&lt;P&gt;If the processing element is a report or a transaction with transfer of values to the global memory, the field of the first row of the table must contain the name of the memory ID used for the export. The fields of the other rows accommodate the parameter names. If the processing element is a function module or a dialog module, the fields must contain values corresponding to the use of the module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VALUE&lt;/P&gt;&lt;P&gt;If the processing element is a report or a transaction with transfer of values to the global memory, the field for the first row of the table must remain empty. The fields for the other rows accommodate the values belonging to the parameters in NAME. If the processing element is a function or dialog module, the fields must contain values corresponding to the use of the modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RECEIVERS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table must contain the document recipients.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RECEIVER&lt;/P&gt;&lt;P&gt;Name of recipient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following entry types are possible:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP user name of the recipient&lt;/P&gt;&lt;P&gt;SAPoffice name of the recipient&lt;/P&gt;&lt;P&gt;Shared distribution list&lt;/P&gt;&lt;P&gt;Fax number in the form of structure SADRFD&lt;/P&gt;&lt;P&gt;Internet address in the form of structure SADRUD&lt;/P&gt;&lt;P&gt;Remote SAP name in the form of structure SADR7D&lt;/P&gt;&lt;P&gt;X.400 address in the form of structure SADR8D&lt;/P&gt;&lt;P&gt;ADR_TYPE&lt;/P&gt;&lt;P&gt;Type of RECEIVER entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following values are permitted:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'B' : SAP user name&lt;/P&gt;&lt;P&gt;' ' : SAPoffice name&lt;/P&gt;&lt;P&gt;'C' : Shared distribution list&lt;/P&gt;&lt;P&gt;'F' : Fax number&lt;/P&gt;&lt;P&gt;'U' : Internet address&lt;/P&gt;&lt;P&gt;'R ' : Remote SAP name&lt;/P&gt;&lt;P&gt;'X' : X.400 address&lt;/P&gt;&lt;P&gt;REC_ID&lt;/P&gt;&lt;P&gt;If the recipient is a SAPoffice user, you can enter the user ID in this field instead of entering the recipient name in RECEIVER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLY_DOC&lt;/P&gt;&lt;P&gt;If there is a value in this field, the document is a reply to the folder entry identified by the specified ID. A correspondence history is automatically created/continued.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REC_DATE&lt;/P&gt;&lt;P&gt;The date on which the document is to reach the recipient. This date cannot be guaranteed for external recipients, as it depends on connected products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROXY_ID&lt;/P&gt;&lt;P&gt;If automatic forwarding is active in the recipient's system, this field contains the SAP user ID or the address ID of the external address, to which the document was ultimately sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RETRN_CODE&lt;/P&gt;&lt;P&gt;When the recipient has received the document, the function module enters the value '0' in this field. If the document is not successfully received, a value other than '0' is entered in the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPRESS&lt;/P&gt;&lt;P&gt;If this flag is activated ('X'), the document is sent with the attribute 'express'. If the recipient is a logged-on SAPoffice user, he or she receives a message immediately, saying that he or she has received an express mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COPY&lt;/P&gt;&lt;P&gt;If this flag is activated ('X'), the document is sent with the attribute 'copy'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BLIND_COPY&lt;/P&gt;&lt;P&gt;If this flag is activated ('X'), the document is sent with the attribute 'secret copy'. If the recipient is a SAPoffice user, he or she can neither print nor forward the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NO_FORWARD&lt;/P&gt;&lt;P&gt;If this flag is activated ('X') and the recipient is a SAPoffice user, he or she cannot forward the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NO_PRINT&lt;/P&gt;&lt;P&gt;If this flag is activated ('X') and the recipient is a SAPoffice user, he or she cannot print the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TO_ANSWER&lt;/P&gt;&lt;P&gt;If this flag is activated ('X') and the recipient is a SAPoffice user, the user must reply to the document before he or she can delete it from his or her inbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TO_DO_EXPL&lt;/P&gt;&lt;P&gt;If this flag is activated ('X') and the recipient is a SAPoffice user, the user must process the document before he or she can delete it from his or her inbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TO_DO_GRP&lt;/P&gt;&lt;P&gt;If this field contains a value between '1' and '9', a SAPoffice user in the recipient group indicated by this number must process the document, before the recipients can delete it from their inboxes. If the value '0' is entered, the document does not need to be processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COM_TYPE&lt;/P&gt;&lt;P&gt;Communication type used to send the document. This field is only relevant if the recipient is an address number, that is, if the document is sent externally via address management. If the field is empty, the standard communication type specified in address management is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following values are permitted:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'INT' : Send by using the Internet&lt;/P&gt;&lt;P&gt;'FAX' : Send as a fax&lt;/P&gt;&lt;P&gt;'X40' : Send by using X.400&lt;/P&gt;&lt;P&gt;'RML' : Send to another SAP system&lt;/P&gt;&lt;P&gt;LFDNR&lt;/P&gt;&lt;P&gt;Current number from address management. This field is only relevant if the recipient is an address number, that is, if the document is sent via address management. If the field is empty, the default current number in address management is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FAX&lt;/P&gt;&lt;P&gt;This field is not used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNTRY&lt;/P&gt;&lt;P&gt;This field is not used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPOOL_ID&lt;/P&gt;&lt;P&gt;This field is not used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTIF_DEL&lt;/P&gt;&lt;P&gt;If this flag is activated ('X'), the sender receives confirmation when the recipient receives the document. He or she also receives a message if the document could not be delivered. This flag should only be activated for external sending, since internal sending is synchronous. Confirmation is only supported by a small number of mail systems, however. For example: X.400 and SAP SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTIF_READ&lt;/P&gt;&lt;P&gt;If this flag is activated ('X'), the sender is notified as soon as the recipient has read the document. This flag should only be activated for external sending, since internal sending is synchronous. Read notification is only supported by a small number of mail systems, however. For example: X.400 and SAP SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTIF_NDEL&lt;/P&gt;&lt;P&gt;If this flag is activated ('X'), the recipient receives a message if the document could not be delivered to the recipient. This flag should only be activated for external sending, since internal sending is synchronous. The message is only supported by a small number of mail systems, however. For example: X.400 and SAP SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP_BODY&lt;/P&gt;&lt;P&gt;If this flag is activated ('X'), SAP-specific data is transferred to the document in an external body part if the document is sent by means of X.400. This flag should only be activated if the target system is an SAP system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions&lt;/P&gt;&lt;P&gt;TOO_MANY_RECEIVERS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Too many recipients were specified. The active user does not have authorization to send to this number of recipients.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DOCUMENT_NOT_SENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The document could not be sent. It was not delivered to any of the specified recipients.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DOCUMENT_TYPE_NOT_EXIST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A document class assigned to the document or an attachment does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPERATION_NO_AUTHORIZATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The document was not allowed to be sent, because one of the required authorizations did not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER_ERROR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The combination of parameter values transferred to the function module was not a permitted combination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X_ERROR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An internal error or a database inconsistency has occurred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENQUEUE_ERROR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A lock required for the send process could not be set. It is probable that another user is currently processing the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;Sending a new RAW document with an ALI attachment to an Internet address and an internal recipient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report ZSSO_DOCUMENT_SEND_API1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Send document with OTF/ALI attachment from spool to external reci-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; pient. OTF/ALI document is converted to PDF/HTML format during the&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; SAPconnect send process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; This report serves as example documentation for the function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; modules SO_NEW_DOCUMENT_ATT_SEND_API1 and SO_DOCUMENT_SEND_API1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Following this example you should be able to develop your own&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; report to send documents with all kinds of attachments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZSSO_DOCUMENT_SEND_API1.&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;Data Declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: docdata like sodocchgi1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objpack like sopcklsti1 occurs 1 with header line,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objhead like solisti1 occurs 1 with header line,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objtxt like solisti1 occurs 10 with header line,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objbin like solisti1 occurs 10 with header line,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reclist like somlreci1 occurs 1 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: listobject like abaplist occurs 1 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: tab_lines type i,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;doc_size type i,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;att_type like SOODK-OBJTP.&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;NOTE: Create ALI/OTF Document in Spool&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ALI Document can be created by displaying a list and selecting&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;menue System -&amp;gt; List -&amp;gt; Print (only put to Spool).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OTF Document can be created running report SF_EXAMPLE_01 in system.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&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;Example used here:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create list in memory&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit SHOWCOLO exporting list to memory and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and read list from memory into table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'LIST_FROM_MEMORY'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;listobject = listobject&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OTHERS = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message ID '61' TYPE 'E' NUMBER '731'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with 'LIST_FROM_MEMORY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&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;Because listobject is of size RAW(1000)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and objbin is of size CHAR(255) we make this table copy&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'TABLE_COMPRESS'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;COMPRESSED_SIZE =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN = listobject&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUT = objbin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OTHERS = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message ID '61' TYPE 'E' NUMBER '731'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with 'TABLE_COMPRESS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&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;NOTE: Creation of attachment is finished yet.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For your report, the attachment should be placed into table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;objtxt for plain text or&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;objbin for binary content.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Now create the message and send the document.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;Create Message Body&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Title and Description&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;docdata-obj_name = 'TEST_ALI'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;docdata-obj_descr = 'Test including ALI/HTML Attachment'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Main Text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objtxt = 'Test Document.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append objtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objtxt = 'You will find an ALI/HTML attachment in this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append objtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objtxt = 'Have a nice day.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append objtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Write Packing List (Main)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table objtxt lines tab_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table objtxt index tab_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;docdata-doc_size = ( tab_lines - 1 ) * 255 + strlen( objtxt ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear objpack-transf_bin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objpack-head_num = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objpack-body_num = tab_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objpack-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append objpack.&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;Create Message Attachment&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Write Packing List (Attachment)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;att_type = 'ALI'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table objbin lines tab_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table objbin index tab_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objpack-doc_size = ( tab_lines - 1 ) * 255 + strlen( objbin ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objpack-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objpack-head_num = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objpack-body_num = tab_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objpack-doc_type = att_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objpack-obj_name = 'ATTACHMENT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objpack-obj_descr = 'Attached Document'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append objpack.&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;Create receiver list&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reclist-receiver = 'testuser@ COMPANY.COM'. "&amp;lt;-- change address&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reclist-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append reclist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reclist-receiver = sy-uname. "&amp;lt;-- change internal user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reclist-rec_type = 'B'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append reclist.&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;Send Message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;document_data = docdata&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PUT_IN_OUTBOX = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SENT_TO_ALL =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NEW_OBJECT_ID =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;packing_list = objpack&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECT_HEADER = objhead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTENTS_BIN = objbin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTENTS_TXT = objtxt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OBJECT_PARA =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OBJECT_PARB =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;receivers = reclist&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TOO_MANY_RECEIVERS = 1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DOCUMENT_NOT_SENT = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DOCUMENT_TYPE_NOT_EXIST = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OPERATION_NO_AUTHORIZATION = 4&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PARAMETER_ERROR = 5&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;X_ERROR = 6&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ENQUEUE_ERROR = 7&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OTHERS = 8&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message ID 'SO' TYPE 'S' NUMBER '023'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with docdata-obj_name.&lt;/P&gt;&lt;P&gt;&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;write: / 'End of Program'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter&lt;/P&gt;&lt;P&gt;DOCUMENT_DATA&lt;/P&gt;&lt;P&gt;PUT_IN_OUTBOX&lt;/P&gt;&lt;P&gt;SENT_TO_ALL&lt;/P&gt;&lt;P&gt;NEW_OBJECT_ID&lt;/P&gt;&lt;P&gt;PACKING_LIST&lt;/P&gt;&lt;P&gt;OBJECT_HEADER&lt;/P&gt;&lt;P&gt;CONTENTS_BIN&lt;/P&gt;&lt;P&gt;CONTENTS_TXT&lt;/P&gt;&lt;P&gt;CONTENTS_HEX&lt;/P&gt;&lt;P&gt;OBJECT_PARA&lt;/P&gt;&lt;P&gt;OBJECT_PARB&lt;/P&gt;&lt;P&gt;RECEIVERS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions&lt;/P&gt;&lt;P&gt;TOO_MANY_RECEIVERS&lt;/P&gt;&lt;P&gt;DOCUMENT_NOT_SENT&lt;/P&gt;&lt;P&gt;DOCUMENT_TYPE_NOT_EXIST&lt;/P&gt;&lt;P&gt;OPERATION_NO_AUTHORIZATION&lt;/P&gt;&lt;P&gt;PARAMETER_ERROR&lt;/P&gt;&lt;P&gt;X_ERROR&lt;/P&gt;&lt;P&gt;ENQUEUE_ERROR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function group&lt;/P&gt;&lt;P&gt;SOI1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 05:24:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-so-new-document-att-send-api1/m-p/2210125#M473264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T05:24:29Z</dc:date>
    </item>
  </channel>
</rss>

