<?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: Problems with SO_DOCUMENT_SEND_API1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-so-document-send-api1/m-p/2007744#M409408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thk for your post but it didnt work out.. :s, probably did something wrong.&lt;/P&gt;&lt;P&gt;I'll just post my code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 CLEAR t_packing_list.
  REFRESH t_packing_list.
  t_packing_list-transf_bin = space.
  t_packing_list-head_start = 1.
  t_packing_list-head_num = 1.
  t_packing_list-body_start = 1.
  describe table it_message lines t_packing_list-body_num. " This is the table with the message body ??
  describe table i_tab lines lv_cntl. " This is the table with the data
 t_packing_list-body_num = t_packing_list-body_num + lv_cntl .

*  DESCRIBE TABLE i_tab LINES t_packing_list-body_num.
*  linha = t_packing_list-body_num.
  t_packing_list-doc_type = 'RAW'.
  APPEND t_packing_list.



* Create attachment notification
 * This is where i want to write all the lines from the i_tab to the attach

  t_packing_list-transf_bin = 'X'.
  t_packing_list-head_start = 1.
  t_packing_list-head_num   = 20.
  t_packing_list-body_start = 3.
  describe table it_message lines t_packing_list-body_num.
  describe table i_tab lines lv_cntl.
 t_packing_list-body_num = t_packing_list-body_num + lv_cntl .

*  DESCRIBE TABLE t_packing_list LINES t_packing_list-body_num.
  t_packing_list-doc_type   =  'TXT'.
  t_packing_list-doc_size   =  t_packing_list-body_num * 255.
  t_packing_list-obj_descr  =  'Exemplo de Teste'.
*  t_packing_list-doc_type = 'RAW'.
  t_packing_list-obj_langu  = sy-langu.
  t_packing_list-obj_name   = 'Teste'.
  APPEND t_packing_list.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i must did something wrong that is not working, any help would be apreciated&lt;/P&gt;&lt;P&gt;Thk, &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2007 11:23:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-20T11:23:53Z</dc:date>
    <item>
      <title>Problems with SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-so-document-send-api1/m-p/2007742#M409406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, First Post &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; . Im using the FM SO_DOCUMENT_SEND_API1 to send emails, and i manage to get it work, kind of..., with a litlle bug...&lt;/P&gt;&lt;P&gt;I actually manage to send the mail with the attach but my problem its when im creating and filling the attach, the attach that i receive has only one line of the itab, not all...&lt;/P&gt;&lt;P&gt;Can someone help me on this subject?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CLEAR t_packing_list.
  REFRESH t_packing_list.

*********This is the body message
  t_packing_list-transf_bin = space.
  t_packing_list-head_start = 1.
  t_packing_list-head_num = 1.
  t_packing_list-body_start = 1.
  t_packing_list-body_num = 2.
  t_packing_list-doc_type = 'RAW'.
  APPEND t_packing_list.

* Create attachment notification
  t_packing_list-transf_bin = 'X'.
  t_packing_list-head_start = 1.
  t_packing_list-head_num   = 20.
  t_packing_list-body_start = 3.
  t_packing_list-body_num = 20.
  t_packing_list-doc_type   =  'TXT'.
  t_packing_list-doc_size   =  t_packing_list-body_num * 255.
  t_packing_list-obj_descr  =  'Exemplo de Teste'.
  t_packing_list-obj_langu  = sy-langu.
  t_packing_list-obj_name   = 'Teste'.
  APPEND t_packing_list.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is kind a hardcoded , but the itab that im using has got 20 lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance, &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 18:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-so-document-send-api1/m-p/2007742#M409406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T18:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-so-document-send-api1/m-p/2007743#M409407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Please change the size of the body.. use a logic like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********This is the body message&lt;/P&gt;&lt;P&gt;  t_packing_list-transf_bin = space.&lt;/P&gt;&lt;P&gt;  t_packing_list-head_start = 1.&lt;/P&gt;&lt;P&gt;  t_packing_list-head_num = 1.&lt;/P&gt;&lt;P&gt;  t_packing_list-body_start = 1.&lt;/P&gt;&lt;P&gt;  t_packing_list-body_num = 2.&lt;/P&gt;&lt;P&gt;*insert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  describe table it_message lines t_packing_list-body_num.&lt;/P&gt;&lt;P&gt;  describe table it_body lines lv_cntl.&lt;/P&gt;&lt;P&gt;  t_packing_list-body_num = t_packing_list-body_num + lv_cntl .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;  t_packing_list-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;  APPEND t_packing_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if there is anything further..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Please close this thread if your question in answered..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 18:41:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-so-document-send-api1/m-p/2007743#M409407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T18:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-so-document-send-api1/m-p/2007744#M409408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thk for your post but it didnt work out.. :s, probably did something wrong.&lt;/P&gt;&lt;P&gt;I'll just post my code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 CLEAR t_packing_list.
  REFRESH t_packing_list.
  t_packing_list-transf_bin = space.
  t_packing_list-head_start = 1.
  t_packing_list-head_num = 1.
  t_packing_list-body_start = 1.
  describe table it_message lines t_packing_list-body_num. " This is the table with the message body ??
  describe table i_tab lines lv_cntl. " This is the table with the data
 t_packing_list-body_num = t_packing_list-body_num + lv_cntl .

*  DESCRIBE TABLE i_tab LINES t_packing_list-body_num.
*  linha = t_packing_list-body_num.
  t_packing_list-doc_type = 'RAW'.
  APPEND t_packing_list.



* Create attachment notification
 * This is where i want to write all the lines from the i_tab to the attach

  t_packing_list-transf_bin = 'X'.
  t_packing_list-head_start = 1.
  t_packing_list-head_num   = 20.
  t_packing_list-body_start = 3.
  describe table it_message lines t_packing_list-body_num.
  describe table i_tab lines lv_cntl.
 t_packing_list-body_num = t_packing_list-body_num + lv_cntl .

*  DESCRIBE TABLE t_packing_list LINES t_packing_list-body_num.
  t_packing_list-doc_type   =  'TXT'.
  t_packing_list-doc_size   =  t_packing_list-body_num * 255.
  t_packing_list-obj_descr  =  'Exemplo de Teste'.
*  t_packing_list-doc_type = 'RAW'.
  t_packing_list-obj_langu  = sy-langu.
  t_packing_list-obj_name   = 'Teste'.
  APPEND t_packing_list.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i must did something wrong that is not working, any help would be apreciated&lt;/P&gt;&lt;P&gt;Thk, &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 11:23:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-so-document-send-api1/m-p/2007744#M409408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T11:23:53Z</dc:date>
    </item>
  </channel>
</rss>

