<?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: CREATE_INTERNET_ADDRESS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589741#M2010095</link>
    <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;ryan.crosby2&lt;/SPAN&gt; Like this? Is it still sending one send request instead of multiple&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2022 16:49:52 GMT</pubDate>
    <dc:creator>walkerist79</dc:creator>
    <dc:date>2022-08-18T16:49:52Z</dc:date>
    <item>
      <title>CREATE_INTERNET_ADDRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589739#M2010093</link>
      <description>&lt;P&gt;FOR REVISION&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 11:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589739#M2010093</guid>
      <dc:creator>walkerist79</dc:creator>
      <dc:date>2022-08-18T11:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE_INTERNET_ADDRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589740#M2010094</link>
      <description>&lt;P&gt;Your create_internet_address method call should be inside the loop.  In it's current form you would only have a recipient for the last LOOP iteration.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 11:55:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589740#M2010094</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2022-08-18T11:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE_INTERNET_ADDRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589741#M2010095</link>
      <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;ryan.crosby2&lt;/SPAN&gt; Like this? Is it still sending one send request instead of multiple&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 16:49:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589741#M2010095</guid>
      <dc:creator>walkerist79</dc:creator>
      <dc:date>2022-08-18T16:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE_INTERNET_ADDRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589742#M2010096</link>
      <description>&lt;P&gt;If you want multiple send requests then you wouldn't LOOP at recipients, but rather one level higher and assign the recipient to the corresponding send request.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 17:13:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589742#M2010096</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2022-08-18T17:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE_INTERNET_ADDRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589743#M2010097</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;ryan.crosby2&lt;/SPAN&gt; I'm sorry I didn't catch it&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 02:02:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589743#M2010097</guid>
      <dc:creator>walkerist79</dc:creator>
      <dc:date>2022-08-19T02:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE_INTERNET_ADDRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589744#M2010098</link>
      <description>&lt;P&gt;All your questions miss information. Why don't you just ask one question containing the whole program that we may test for you? (that would be a 30-lines program)&lt;/P&gt;&lt;P&gt;You don't explain if you use BCS or one of the old SO function modules.&lt;/P&gt;&lt;P&gt;If you use BCS, then you should use cl_cam_address_bcs=&amp;gt;create_internet_address + method add_recipient, and LT_REC is useless.&lt;/P&gt;&lt;P&gt;If you use one of the old SO function modules, then you should NEITHER use cl_cam_address_bcs=&amp;gt;create_internet_address NOR the method add_recipient, as you use the parameter RECEIVERS = LT_REC. &lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 08:50:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589744#M2010098</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-08-19T08:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE_INTERNET_ADDRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589745#M2010099</link>
      <description>&lt;P&gt;Where/How did you add those recipients to the mail, post part of your your code similar to &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    lo_recipient = cl_cam_address_bcs=&amp;gt;create_internet_address( lv_recept_addr ).
    lo_bcs-&amp;gt;add_recipient( lo_recipient ).&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;NB: If user can input list of users within a select-options, you could/should resolve this list with a SELECT or a call of BAPI_USER_GETLIST, as soon as you don't insure user can only input some individual values (no range, no wildcard, using SELECT_OPTIONS_RESTRICT)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 11:51:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589745#M2010099</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2022-08-19T11:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE_INTERNET_ADDRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589746#M2010100</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; Apologies as I was just maintaining this old program and new into ABAP. My goal was just to send multiple send requests.&lt;/P&gt;&lt;P&gt;In this code: the s_email is from a select-option parameter where in users will input multiple SAP IDs and the code below will check its internet address. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN BEGIN OF BLOCK bl2 WITH FRAME TITLE text-010.&lt;BR /&gt;  SELECT-OPTIONS:&lt;BR /&gt;   s_inbox FOR bname NO INTERVALS,     "SAP ID &lt;BR /&gt;   s_email FOR bname NO INTERVALS.     "External Email(HOWEVER SAP USER ID IS INPUTTED HERE)&lt;BR /&gt;SELECTION-SCREEN END OF BLOCK bl2.&lt;BR /&gt;DATA: LT_DEST TYPE TABLE OF solmrecil,&lt;BR /&gt;      LX_DEST LIKE LINE OF LT_DEST,&lt;BR /&gt;      lx_bapiaddr3  TYPE bapiaddr3,&lt;BR /&gt;      lt_bapiret2   TYPE STANDARD TABLE OF bapiret2,&lt;BR /&gt;      lo_send_request    TYPE REF TO cl_bcs,&lt;BR /&gt;      lo_sender          TYPE REF TO cl_sapuser_bcs,&lt;BR /&gt;      l_recipient        TYPE REF TO if_recipient_bcs,&lt;BR /&gt;      lo_recipient       TYPE ad_smtpadr.&lt;BR /&gt;  LOOP AT s_inbox ASSIGNING FIELD-SYMBOL(&amp;lt;lfs_inbox&amp;gt;).&lt;BR /&gt;    IF &amp;lt;lfs_inbox&amp;gt; IS ASSIGNED.&lt;BR /&gt;      lx_dest-receiver = &amp;lt;lfs_inbox&amp;gt;-low.&lt;BR /&gt;      lx_dest-rec_type = lc_b.&lt;BR /&gt;      APPEND lx_dest TO lt_dest.&lt;BR /&gt;      CLEAR: lx_dest.&lt;BR /&gt;    ENDIF.&lt;BR /&gt;  ENDLOOP.&lt;BR /&gt;LOOP AT s_email.&lt;BR /&gt;    CALL FUNCTION 'BAPI_USER_GET_DETAIL'&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        username  = s_email-low&lt;BR /&gt;      IMPORTING&lt;BR /&gt;        address   = lx_bapiaddr3&lt;BR /&gt;      TABLES&lt;BR /&gt;        return    = lt_bapiret2.&lt;BR /&gt;    IF line_exists( lt_bapiret2[ type = 'E' ] ).&lt;BR /&gt;      CONTINUE.&lt;BR /&gt;    ENDIF.&lt;BR /&gt;    CHECK lx_bapiaddr3-e_mail IS NOT INITIAL.&lt;BR /&gt;    lt_dest = VALUE #( BASE lt_dest[]&lt;BR /&gt;                     ( rec_type = 'U'&lt;BR /&gt;                       receiver = lx_bapiaddr3-e_mail&lt;BR /&gt;                       express = abap_false ) ).&lt;BR /&gt;  ENDLOOP.&lt;BR /&gt;"THIS CODE SENDS ONE EMAIL TO MULTIPLE RECIPIENTS&lt;BR /&gt;      LOOP AT s_inbox[] ASSIGNING FIELD-SYMBOL(&amp;lt;s_inbox&amp;gt;).&lt;BR /&gt;        lo_sender = cl_sapuser_bcs=&amp;gt;create( &amp;lt;s_inbox&amp;gt;-low ).&lt;BR /&gt;      ENDLOOP.&lt;BR /&gt;        lo_send_request-&amp;gt;add_recipient( lo_sender ).&lt;BR /&gt;&lt;STRONG&gt;"THIS CODE SENDS ONE SEND REQUEST TO ONE EMAIL INSTEAD OF MULTIPLE EMAILS&lt;/STRONG&gt;&lt;BR /&gt;        l_recipient = cl_cam_address_bcs=&amp;gt;create_internet_address(&lt;BR /&gt;                                            lx_bapiaddr3-e_mail ).      CALL METHOD lo_send_request-&amp;gt;add_recipient&lt;BR /&gt;        EXPORTING&lt;BR /&gt;          i_recipient = l_recipient.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Aug 2022 11:59:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589746#M2010100</guid>
      <dc:creator>walkerist79</dc:creator>
      <dc:date>2022-08-19T11:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE_INTERNET_ADDRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589747#M2010101</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN BEGIN OF BLOCK bl2 WITH FRAME TITLE text-010.&lt;BR /&gt;  SELECT-OPTIONS:&lt;BR /&gt;   s_inbox FOR bname NO INTERVALS,     "SAP ID &lt;BR /&gt;   s_email FOR bname NO INTERVALS.     "External Email(HOWEVER SAP USER ID IS INPUTTED HERE)&lt;BR /&gt;SELECTION-SCREEN END OF BLOCK bl2.&lt;BR /&gt;DATA: LT_DEST TYPE TABLE OF solmrecil,&lt;BR /&gt;      LX_DEST LIKE LINE OF LT_DEST,&lt;BR /&gt;      lx_bapiaddr3  TYPE bapiaddr3,&lt;BR /&gt;      lt_bapiret2   TYPE STANDARD TABLE OF bapiret2,&lt;BR /&gt;      lo_send_request    TYPE REF TO cl_bcs,&lt;BR /&gt;      lo_sender          TYPE REF TO cl_sapuser_bcs,&lt;BR /&gt;      l_recipient        TYPE REF TO if_recipient_bcs,&lt;BR /&gt;      lo_recipient       TYPE ad_smtpadr.&lt;BR /&gt;  LOOP AT s_inbox ASSIGNING FIELD-SYMBOL(&amp;lt;lfs_inbox&amp;gt;).&lt;BR /&gt;    IF &amp;lt;lfs_inbox&amp;gt; IS ASSIGNED.&lt;BR /&gt;      lx_dest-receiver = &amp;lt;lfs_inbox&amp;gt;-low.&lt;BR /&gt;      lx_dest-rec_type = lc_b.&lt;BR /&gt;      APPEND lx_dest TO lt_dest.&lt;BR /&gt;      CLEAR: lx_dest.&lt;BR /&gt;    ENDIF.&lt;BR /&gt;  ENDLOOP.&lt;BR /&gt;LOOP AT s_email.&lt;BR /&gt;    CALL FUNCTION 'BAPI_USER_GET_DETAIL'&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        username  = s_email-low&lt;BR /&gt;      IMPORTING&lt;BR /&gt;        address   = lx_bapiaddr3&lt;BR /&gt;      TABLES&lt;BR /&gt;        return    = lt_bapiret2.&lt;BR /&gt;    IF line_exists( lt_bapiret2[ type = 'E' ] ).&lt;BR /&gt;      CONTINUE.&lt;BR /&gt;    ENDIF.&lt;BR /&gt;    CHECK lx_bapiaddr3-e_mail IS NOT INITIAL.&lt;BR /&gt;    lt_dest = VALUE #( BASE lt_dest[]&lt;BR /&gt;                     ( rec_type = 'U'&lt;BR /&gt;                       receiver = lx_bapiaddr3-e_mail&lt;BR /&gt;                       express = abap_false ) ).&lt;BR /&gt;  ENDLOOP.&lt;BR /&gt;"THIS CODE SENDS ONE EMAIL TO MULTIPLE RECIPIENTS&lt;BR /&gt;      LOOP AT s_inbox[] ASSIGNING FIELD-SYMBOL(&amp;lt;s_inbox&amp;gt;).&lt;BR /&gt;        lo_sender = cl_sapuser_bcs=&amp;gt;create( &amp;lt;s_inbox&amp;gt;-low ).&lt;BR /&gt;      ENDLOOP.&lt;BR /&gt;        lo_send_request-&amp;gt;add_recipient( lo_sender ).&lt;BR /&gt;&lt;STRONG&gt;"THIS CODE SENDS ONE SEND REQUEST TO ONE EMAIL INSTEAD OF MULTIPLE EMAILS&lt;/STRONG&gt;&lt;BR /&gt;        l_recipient = cl_cam_address_bcs=&amp;gt;create_internet_address(&lt;BR /&gt;                                            lx_bapiaddr3-e_mail ).   &lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;  CALL METHOD lo_send_request-&amp;gt;add_recipient&lt;BR /&gt;    EXPORTING        &lt;BR /&gt;      i_recipient = l_recipient.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Aug 2022 12:27:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589747#M2010101</guid>
      <dc:creator>walkerist79</dc:creator>
      <dc:date>2022-08-19T12:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE_INTERNET_ADDRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589748#M2010102</link>
      <description>&lt;P&gt;This program is incorrect. I have just explained why.&lt;/P&gt;&lt;P&gt;You'd better create a small program, activate it, test it, then share it with your question.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 12:50:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589748#M2010102</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-08-19T12:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE_INTERNET_ADDRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589749#M2010103</link>
      <description>&lt;P&gt;What do you expect from your code, just debug it once&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;What should you do for user-id of s_inbox (add their internal sap mail to recipient list?)&lt;/LI&gt;&lt;LI&gt;What shoudl you do for user-id of s_email (add their external mail to recipient list?)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Do you intend to use CL_BCS or obsolete FM, seems you are lost in the middle of a conversion?&lt;/P&gt;&lt;P&gt;Suggestion:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;Move the add_recipient in the corresponding loops&lt;/LI&gt;&lt;LI&gt;Dont use lo_sender as the variable name for a recipient&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 19 Aug 2022 14:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internet-address/m-p/12589749#M2010103</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2022-08-19T14:32:23Z</dc:date>
    </item>
  </channel>
</rss>

