<?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: error in fm  using SO_DOCUMENT_SEND_API1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-using-so-document-send-api1/m-p/6099803#M1360169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What is the return value in subrc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR Jaideep,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Sep 2009 12:46:51 GMT</pubDate>
    <dc:creator>jaideepsharma</dc:creator>
    <dc:date>2009-09-09T12:46:51Z</dc:date>
    <item>
      <title>error in fm  using SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-using-so-document-send-api1/m-p/6099802#M1360168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL FUNCTION 'SO_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        document_data              = gwa_doc_data&lt;/P&gt;&lt;P&gt;        put_in_outbox              = 'X'&lt;/P&gt;&lt;P&gt;        commit_work                = 'X'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        packing_list               = git_packing_list&lt;/P&gt;&lt;P&gt;        contents_bin               = git_contents_bin&lt;/P&gt;&lt;P&gt;        contents_txt               = git_body&lt;/P&gt;&lt;P&gt;        receivers                  = git_send_email&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;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE e018(z_mm_prox).&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;git_send_email has email address,git_body has text,&lt;/P&gt;&lt;P&gt;git_contents_bin is empty&lt;/P&gt;&lt;P&gt; git_packing_list-transf_bin = space.&lt;/P&gt;&lt;P&gt; git_packing_list-head_start = 1.&lt;/P&gt;&lt;P&gt; git_packing_list-head_num   = 0.&lt;/P&gt;&lt;P&gt; git_packing_list-body_start = 1.&lt;/P&gt;&lt;P&gt; git_packing_list-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but sy-subrc is not equal to zero.pls help me in solving&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 12:45:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-using-so-document-send-api1/m-p/6099802#M1360168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T12:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: error in fm  using SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-using-so-document-send-api1/m-p/6099803#M1360169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What is the return value in subrc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR Jaideep,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 12:46:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-using-so-document-send-api1/m-p/6099803#M1360169</guid>
      <dc:creator>jaideepsharma</dc:creator>
      <dc:date>2009-09-09T12:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: error in fm  using SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-using-so-document-send-api1/m-p/6099804#M1360170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sy-subrc is 2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 12:50:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-using-so-document-send-api1/m-p/6099804#M1360170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T12:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: error in fm  using SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-using-so-document-send-api1/m-p/6099805#M1360171</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 in SCOT or SOST transaction ? Can you see the mail there ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR Jaideep,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 13:38:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-using-so-document-send-api1/m-p/6099805#M1360171</guid>
      <dc:creator>jaideepsharma</dc:creator>
      <dc:date>2009-09-09T13:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: error in fm  using SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-using-so-document-send-api1/m-p/6099806#M1360172</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;Refer to the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To get the mail ids&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR: wa_message.&lt;/P&gt;&lt;P&gt;  REFRESH : gi_messages.&lt;/P&gt;&lt;P&gt;  wa_doc_data-priority = '1'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate the subject/generic message attributes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  wa_doc_data-obj_langu = sy-langu.&lt;/P&gt;&lt;P&gt;  wa_doc_data-obj_name = lc_obj_name.&lt;/P&gt;&lt;P&gt;  wa_doc_data-obj_descr = 'Find Inactive PU/DU'(001).&lt;/P&gt;&lt;P&gt;  wa_doc_data-sensitivty = lc_sensitivity.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Describe the body of the message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  wa_message = '&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;'.&lt;/P&gt;&lt;P&gt;  APPEND wa_message TO gi_messages.&lt;/P&gt;&lt;P&gt;    wa_packing_list-transf_bin = space.&lt;/P&gt;&lt;P&gt;  wa_packing_list-head_start = 1.&lt;/P&gt;&lt;P&gt;  wa_packing_list-head_num = 0.&lt;/P&gt;&lt;P&gt;  wa_packing_list-body_start = 1.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE gi_messages LINES lv_tab_lines.&lt;/P&gt;&lt;P&gt;  READ TABLE gi_messages INDEX lv_tab_lines INTO wa_message.&lt;/P&gt;&lt;P&gt;  wa_doc_data-doc_size = ( lv_tab_lines - 1 ) * 255 + STRLEN( wa_message ).&lt;/P&gt;&lt;P&gt;  APPEND wa_message TO gi_messages.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE gi_messages LINES wa_packing_list-body_num.&lt;/P&gt;&lt;P&gt;  wa_packing_list-doc_type = 'HTM'.&lt;/P&gt;&lt;P&gt;  wa_packing_list-doc_size = lv_tab_lines * 255.&lt;/P&gt;&lt;P&gt;  APPEND wa_packing_list TO gi_packing_list.&lt;/P&gt;&lt;P&gt;  CLEAR wa_packing_list.&lt;/P&gt;&lt;P&gt;  wa_receivers-receiver = so_malid-low.&lt;/P&gt;&lt;P&gt;    wa_receivers-rec_id = so_malid-low.&lt;/P&gt;&lt;P&gt;    wa_receivers-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;    wa_receivers-com_type = 'INT'.&lt;/P&gt;&lt;P&gt;    wa_receivers-notif_del = 'X'.&lt;/P&gt;&lt;P&gt;    wa_receivers-notif_ndel = 'X'.&lt;/P&gt;&lt;P&gt;    APPEND wa_receivers TO gi_receivers.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SO_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      document_data              = wa_doc_data&lt;/P&gt;&lt;P&gt;      sender_address             = gc_sender_address&lt;/P&gt;&lt;P&gt;      sender_address_type        = gc_sender_address_type&lt;/P&gt;&lt;P&gt;      commit_work                = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      packing_list               = gi_packing_list&lt;/P&gt;&lt;P&gt;      contents_txt               = gi_messages&lt;/P&gt;&lt;P&gt;      receivers                  = gi_receivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh Kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rajesh Kumar on Sep 9, 2009 3:50 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 13:44:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-using-so-document-send-api1/m-p/6099806#M1360172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T13:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: error in fm  using SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-using-so-document-send-api1/m-p/6099807#M1360173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 12:42:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-using-so-document-send-api1/m-p/6099807#M1360173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T12:42:27Z</dc:date>
    </item>
  </channel>
</rss>

