<?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: help for using FM SO_NEW_DOCUMENT_ATT_SEND_API1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-using-fm-so-new-document-att-send-api1/m-p/1556980#M252152</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;Check internal table objtxt .It contains data .You can add new line by appending in the same internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Mark points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Oct 2006 14:22:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-16T14:22:38Z</dc:date>
    <item>
      <title>help for using FM SO_NEW_DOCUMENT_ATT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-using-fm-so-new-document-att-send-api1/m-p/1556978#M252150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,... &lt;/P&gt;&lt;P&gt;i need help in putting a new line in the attachment which can be sent by using the FM SO_NEW_DOCUMENT_ATT_SEND_API1. &lt;/P&gt;&lt;P&gt;for a quick reference please check out program:RSSOAPIS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and let me know as to how can i add a new line in the attach file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2006 14:18:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-using-fm-so-new-document-att-send-api1/m-p/1556978#M252150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-16T14:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: help for using FM SO_NEW_DOCUMENT_ATT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-using-fm-so-new-document-att-send-api1/m-p/1556979#M252151</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;chk this sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk 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;&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 f_send_mail&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt; p1 text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;-- p2 text&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;FORM f_send_mail .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*store the vendor name, vendor email id , employee name and employee&lt;/P&gt;&lt;P&gt;*email id in the internal table int_crb&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Creation of the document to be sent&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR doc_chng.&lt;/P&gt;&lt;P&gt;REFRESH objpack.&lt;/P&gt;&lt;P&gt;REFRESH objhead.&lt;/P&gt;&lt;P&gt;REFRESH reclist.&lt;/P&gt;&lt;P&gt;REFRESH objtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&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;&lt;/P&gt;&lt;P&gt;doc_chng-obj_name = 'SHIPMENT'.&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;&lt;/P&gt;&lt;P&gt;CONCATENATE 'Shipment Document No.' int_crb_mail-shipdocnum&lt;/P&gt;&lt;P&gt;'Cleared.'&lt;/P&gt;&lt;P&gt;INTO doc_chng-obj_descr SEPARATED BY ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* Mail Contents&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objtxt-line = 'Hi,'.&lt;/P&gt;&lt;P&gt;APPEND objtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objtxt-line = ' '.&lt;/P&gt;&lt;P&gt;APPEND objtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'Shipment Document Number ' int_crb_mail-shipdocnum&lt;/P&gt;&lt;P&gt;' cleared for move.' INTO objtxt-line SEPARATED BY ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND objtxt.&lt;/P&gt;&lt;P&gt;objtxt-line = ' '.&lt;/P&gt;&lt;P&gt;APPEND objtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR objtxt.&lt;/P&gt;&lt;P&gt;objtxt-line = 'Regards '.&lt;/P&gt;&lt;P&gt;APPEND objtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objtxt-line = ' '.&lt;/P&gt;&lt;P&gt;APPEND objtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objtxt-line = 'SAP '.&lt;/P&gt;&lt;P&gt;APPEND objtxt.&lt;/P&gt;&lt;P&gt;CLEAR objtxt.&lt;/P&gt;&lt;P&gt;APPEND objtxt.&lt;/P&gt;&lt;P&gt;&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(&lt;/P&gt;&lt;P&gt;objtxt ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Creation of the entry for the compressed document&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&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.&amp;lt;/b&amp;gt;&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;&lt;/P&gt;&lt;P&gt;CLEAR reclist.&lt;/P&gt;&lt;P&gt;reclist-receiver = int_crb_mail-empperid. "employee email ID&lt;/P&gt;&lt;P&gt;"wf_empperid.&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 = int_crb_mail-smtp_addr."vendor email id&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;contents_bin = objbin&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;COMMIT WORK.&lt;/P&gt;&lt;P&gt;SUBMIT rsconn01&lt;/P&gt;&lt;P&gt;WITH mode = 'INT'&lt;/P&gt;&lt;P&gt;WITH output = ' '&lt;/P&gt;&lt;P&gt;AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " f_send_mail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anversha.&lt;/P&gt;&lt;P&gt;if hlped mark points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2006 14:22:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-using-fm-so-new-document-att-send-api1/m-p/1556979#M252151</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-10-16T14:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: help for using FM SO_NEW_DOCUMENT_ATT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-using-fm-so-new-document-att-send-api1/m-p/1556980#M252152</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;Check internal table objtxt .It contains data .You can add new line by appending in the same internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Mark points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2006 14:22:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-using-fm-so-new-document-att-send-api1/m-p/1556980#M252152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-16T14:22:38Z</dc:date>
    </item>
  </channel>
</rss>

