<?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: OO replacement for FM SO_NEW_DOCUMENT_SEND_API1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-replacement-for-fm-so-new-document-send-api1/m-p/3500963#M842091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Graham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code that I used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        DATA: w_ad_symbdst TYPE ad_symbdst.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;       w_ad_symbdst = sy-sysid.&lt;/P&gt;&lt;P&gt;       recipient = cl_cam_address_bcs=&amp;gt;create_rml_address(&lt;/P&gt;&lt;P&gt;                                           i_syst     = w_ad_symbdst&lt;/P&gt;&lt;P&gt;                                           i_client   = sy-mandt&lt;/P&gt;&lt;P&gt;                                           i_username = sy-uname ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, I had to set up a new RML node in transaction SCOT.   Thomas Jung helped me resolve my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Mar 2008 22:00:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-21T22:00:10Z</dc:date>
    <item>
      <title>OO replacement for FM SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-replacement-for-fm-so-new-document-send-api1/m-p/3500959#M842087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module will send an e-mail or a SAP office message depending upon the value of the rec_type field in the receivers internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; call function 'SO_NEW_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     document_data  = email_data&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     document_type  = 'RAW'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     put_in_outbox  = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     object_content = data_tab&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     receivers      = email_send.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We recently found out that after we converted our 4.7 system to Unicode, about a year ago, the function module was no longer creating a non-deliverable e-mail message if the recipient did not exist.  So I'm in the process of replacing the function module in our custom programs.  I'm using a function module that Thomas Jung described in a blog with this title "Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface".  So far so good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I found that one of our programs is using this function module to send a SAP Office message.  Does anybody have an example using any of the BCS classes to send a SAP office message?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2008 23:01:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-replacement-for-fm-so-new-document-send-api1/m-p/3500959#M842087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-13T23:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: OO replacement for FM SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-replacement-for-fm-so-new-document-send-api1/m-p/3500960#M842088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruce,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is exactly what the function module you built from Thomas' blog does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just look through the code for the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2008 23:59:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-replacement-for-fm-so-new-document-send-api1/m-p/3500960#M842088</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2008-03-13T23:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: OO replacement for FM SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-replacement-for-fm-so-new-document-send-api1/m-p/3500961#M842089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Graham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the recipient table that is passed to Thomas's function module:&lt;/P&gt;&lt;P&gt;-  if the recipient-c_address is populated it sends an e-mail to that address,&lt;/P&gt;&lt;P&gt;-  if the recipient-uname field is populated it gets the e-mail address from the user master  and sends an e-mail.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not found a way to send an SAP Office message using Thomas's function module.  &lt;/P&gt;&lt;P&gt;Here's the code from Thomas's function module that is creating the recipients.  I don't see anything in the code that would allow anything other than an e-mail to be created.  Am I missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Following the sender, we can add our recipients to the e-mail. If&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;requested by the calling program we will lookup the recipients e-mail&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;address from their SAP User Master using the BAPI,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BAPI_USER_GET_DETAIL.  If an e-mail address isn't maintained there,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;we will try and create one by concatenating their user id together&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;with our default company domain name.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;      data: recipients_line like line of recipients.&lt;/P&gt;&lt;P&gt;      loop at recipients into recipients_line.&lt;/P&gt;&lt;P&gt;        if recipients_line-c_address is initial.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create recipient&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          clear iaddsmtp.&lt;/P&gt;&lt;P&gt;          refresh iaddsmtp.&lt;/P&gt;&lt;P&gt;          clear bapiadsmtp.&lt;/P&gt;&lt;P&gt;          clear recipient.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read the E-Mail address for the user&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          call function 'BAPI_USER_GET_DETAIL'&lt;/P&gt;&lt;P&gt;            exporting&lt;/P&gt;&lt;P&gt;              username = recipients_line-uname&lt;/P&gt;&lt;P&gt;            tables&lt;/P&gt;&lt;P&gt;              return   = ireturn&lt;/P&gt;&lt;P&gt;              addsmtp  = iaddsmtp.&lt;/P&gt;&lt;P&gt;          loop at iaddsmtp where std_no = 'X'.&lt;/P&gt;&lt;P&gt;            clear bapiadsmtp.&lt;/P&gt;&lt;P&gt;            move iaddsmtp to bapiadsmtp.&lt;/P&gt;&lt;P&gt;          endloop.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If no E-mail address was found, create one.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          if bapiadsmtp-e_mail = ''.&lt;/P&gt;&lt;P&gt;            concatenate recipients_line-uname local_domain&lt;/P&gt;&lt;P&gt;                      into recipients_line-c_address.&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;            move bapiadsmtp-e_mail to recipients_line-c_address.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        recipient = cl_cam_address_bcs=&amp;gt;create_internet_address(&lt;/P&gt;&lt;P&gt;                                           recipients_line-c_address ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add recipient with its respective attributes to send request&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        call method send_request-&amp;gt;add_recipient&lt;/P&gt;&lt;P&gt;          exporting&lt;/P&gt;&lt;P&gt;            i_recipient  = recipient&lt;/P&gt;&lt;P&gt;            i_express    = recipients_line-i_express&lt;/P&gt;&lt;P&gt;            i_copy       = recipients_line-i_copy&lt;/P&gt;&lt;P&gt;            i_blind_copy = recipients_line-i_blind_copy&lt;/P&gt;&lt;P&gt;            i_no_forward = recipients_line-i_no_forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 01:11:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-replacement-for-fm-so-new-document-send-api1/m-p/3500961#M842089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-14T01:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: OO replacement for FM SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-replacement-for-fm-so-new-document-send-api1/m-p/3500962#M842090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruce,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunately I am unable to connect to a system at the moment to look closer at this, so I am sort of guessing what the anser might be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I seem to remember there is a different method for creating each communication path ( CREATE_INTERNET_ADDRESS, CREATE_FAX_ADDRESS, etc.) and a generic method where you pass the username and the communication type required. I think the communication type for SAPOffice addresses is 'RML'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So replace this code..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
        recipient = cl_cam_address_bcs=&amp;gt;create_internet_address(
                                           recipients_line-c_address ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with something like this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
        recipient = cl_cam_address_bcs=&amp;gt;create_generic_address(
                                           exporting i_user = user i_commtype = 'RML' ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to look at the class CL_CAM_ADDRESS_BCS to find the actual method name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2008 03:02:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-replacement-for-fm-so-new-document-send-api1/m-p/3500962#M842090</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2008-03-14T03:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: OO replacement for FM SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-replacement-for-fm-so-new-document-send-api1/m-p/3500963#M842091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Graham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code that I used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        DATA: w_ad_symbdst TYPE ad_symbdst.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;       w_ad_symbdst = sy-sysid.&lt;/P&gt;&lt;P&gt;       recipient = cl_cam_address_bcs=&amp;gt;create_rml_address(&lt;/P&gt;&lt;P&gt;                                           i_syst     = w_ad_symbdst&lt;/P&gt;&lt;P&gt;                                           i_client   = sy-mandt&lt;/P&gt;&lt;P&gt;                                           i_username = sy-uname ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, I had to set up a new RML node in transaction SCOT.   Thomas Jung helped me resolve my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2008 22:00:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-replacement-for-fm-so-new-document-send-api1/m-p/3500963#M842091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-21T22:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: OO replacement for FM SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-replacement-for-fm-so-new-document-send-api1/m-p/3500964#M842092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bruce,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a bit surprised a new RML node had to be setup. I would have expected it to work "out of the box". Anyway I'm happy you have solved the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That Thomas Jung is a handy guy to know isn't he? &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2008 23:38:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-replacement-for-fm-so-new-document-send-api1/m-p/3500964#M842092</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2008-03-21T23:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: OO replacement for FM SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-replacement-for-fm-so-new-document-send-api1/m-p/3500965#M842093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  , anyone  can u explain me how to set up the rml note&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 07:56:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-replacement-for-fm-so-new-document-send-api1/m-p/3500965#M842093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-07T07:56:54Z</dc:date>
    </item>
  </channel>
</rss>

