<?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: Re: distribution list in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-distribution-list/m-p/1529047#M241956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would have to see how you implemented the funciton module call.  Can you post the relevant code around it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, please do not modify the original post when replying back you can reply to the end of the post.  Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Aug 2006 18:59:00 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-08-09T18:59:00Z</dc:date>
    <item>
      <title>Re: distribution list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-distribution-list/m-p/1529044#M241953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all,&lt;/P&gt;&lt;P&gt; i developed a report for sending mails to the corresponding email ids.in this i wrote&lt;/P&gt;&lt;P&gt;select-options: s_manif for sood-objnam no intervals. &lt;/P&gt;&lt;P&gt;if we did not enter any distribution list name it will automatically go to the consignee.&lt;/P&gt;&lt;P&gt;my requirement is while it going to the consignee it should ask a pop up regarding "Manifest will be emailed to Consignee" with ok and cancel buttons. if we click ok button then mail will go to consignee and if we click cancel button it will remain in the transcation&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;thanks helman for giving the help.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;but while i click cancel button it is not remain into the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: answer type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*LOOP AT S_DLINAM.&lt;/P&gt;&lt;P&gt;LOOP AT S_MANIF.&lt;/P&gt;&lt;P&gt; CLEAR DLI_NAME1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DLI_NAME1 = S_DLINAM-LOW.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DLI_NAME1 = S_MANIF-LOW.&lt;/P&gt;&lt;P&gt;*IF S_DLINAM IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;IF S_MANIF IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SO_DLI_READ_API1'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   DLI_NAME                         = DLI_NAME1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DLI_ID                           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   SHARED_DLI                       = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; DLI_DATA                         = IDLIENT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;  DLI_ENTRIES                      = IDLIENT.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   LOOP AT IDLIENT.&lt;/P&gt;&lt;P&gt;     IT_EMAIL-EMAIL = IDLIENT-MEMBER_ADR.&lt;/P&gt;&lt;P&gt;     APPEND IT_EMAIL.&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   REFRESH IDLIENT.&lt;/P&gt;&lt;P&gt;   CLEAR IDLIENT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CLEAR S_DLINAM.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLEAR S_MANIF.&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;*end of insert of tcs_kun.&lt;/P&gt;&lt;P&gt;  CLEAR t_email_objtxt[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Text in the email.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  t_email_objtxt = 'PDF is included as attachment.'.&lt;/P&gt;&lt;P&gt;  APPEND t_email_objtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill the OTF table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  t_email_otf[]    = h_sf-otfdata-otfdata[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the address number&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  READ TABLE t_partners&lt;/P&gt;&lt;P&gt;       WITH KEY parvw = 'ZC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID 'ZSH' TYPE 'E' NUMBER 999&lt;/P&gt;&lt;P&gt;            WITH text-006.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  h_email-addr_receiver = t_partners-adrnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Some general settings.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  h_email-name_of_object = 'Freight'.&lt;/P&gt;&lt;P&gt;  h_email-descr_of_obj   = 'FREIGHT/CARGO MANIFEST'.&lt;/P&gt;&lt;P&gt;  h_email-descr_attachem = 'FREIGHT.PDF'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZSH_SEND_PDF_PER_EMAIL2'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    name_of_object             = h_email-name_of_object&lt;/P&gt;&lt;P&gt;    descript_of_object         = h_email-descr_of_obj&lt;/P&gt;&lt;P&gt;    descript_attachement       = h_email-descr_attachem&lt;/P&gt;&lt;P&gt;    address_no_recipient       = h_email-addr_receiver&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    OTF                              = t_email_otf&lt;/P&gt;&lt;P&gt;    TEXT_IN_MAIL                     = t_email_objtxt&lt;/P&gt;&lt;P&gt;    ITAB                             = IT_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;   OPERATION_NO_AUTHORIZATION       = 3&lt;/P&gt;&lt;P&gt;   ADDRESS_NOT_EXIST                = 4&lt;/P&gt;&lt;P&gt;   CONV_NOT_POSSIBLE                = 5&lt;/P&gt;&lt;P&gt;   ERR_OTF_MC_NOENDMARKER           = 6&lt;/P&gt;&lt;P&gt;   OTHERS                           = 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'POPUP_TO_CONFIRM'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TITLEBAR                    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DIAGNOSE_OBJECT             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    text_question              = 'Manifest will be emailed to Consignee'&lt;/P&gt;&lt;P&gt;    text_button_1               = 'Continue'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ICON_BUTTON_1               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    text_button_2               = 'Cancel'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ICON_BUTTON_2               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DEFAULT_BUTTON              = '1'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    DISPLAY_CANCEL_BUTTON       = ' '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USERDEFINED_F1_HELP         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  START_COLUMN                = 25&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  START_ROW                   = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POPUP_TYPE                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  importing&lt;/P&gt;&lt;P&gt;    answer                      = answer&lt;/P&gt;&lt;UL&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;  PARAMETER                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TEXT_NOT_FOUND              = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                      = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'ZSH_POPUP_MESSAGE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        is_error     = 'I'&lt;/P&gt;&lt;P&gt;        popup_title  = text-007&lt;/P&gt;&lt;P&gt;        message_text = text-008.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'ZSH_POPUP_MESSAGE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        is_error     = 'E'&lt;/P&gt;&lt;P&gt;        popup_title  = text-015&lt;/P&gt;&lt;P&gt;        message_text = text-016.&lt;/P&gt;&lt;P&gt;  ENDIF.&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;Message was edited by: sun deep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: sun deep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: sun deep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2006 18:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-distribution-list/m-p/1529044#M241953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-09T18:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re: distribution list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-distribution-list/m-p/1529045#M241954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YOu can use the function module POPUP_TO_CONFIRM in your Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~SUresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2006 18:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-distribution-list/m-p/1529045#M241954</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-08-09T18:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Re: distribution list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-distribution-list/m-p/1529046#M241955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

data: answer type c.

call function 'POPUP_TO_CONFIRM'
  exporting
*   TITLEBAR                    = ' '
*   DIAGNOSE_OBJECT             = ' '
    text_question              = 'Manifest will be emailed to Consignee'
    text_button_1               = 'Continue'
*   ICON_BUTTON_1               = ' '
    text_button_2               = 'Cancel'
*   ICON_BUTTON_2               = ' '
*   DEFAULT_BUTTON              = '1'
    DISPLAY_CANCEL_BUTTON       = ' '
*   USERDEFINED_F1_HELP         = ' '
*   START_COLUMN                = 25
*   START_ROW                   = 6
*   POPUP_TYPE                  =
  importing
    answer                      = answer
* TABLES
*   PARAMETER                   =
* EXCEPTIONS
*   TEXT_NOT_FOUND              = 1
*   OTHERS                      = 2
          .

if answer = '1'.
  write:/ 'The answer is yes'.
elseif answer = '2'.
  write:/ 'This answer is no'.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2006 18:38:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-distribution-list/m-p/1529046#M241955</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-09T18:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Re: distribution list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-distribution-list/m-p/1529047#M241956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would have to see how you implemented the funciton module call.  Can you post the relevant code around it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, please do not modify the original post when replying back you can reply to the end of the post.  Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2006 18:59:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-distribution-list/m-p/1529047#M241956</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-09T18:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Re: distribution list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-distribution-list/m-p/1529048#M241957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does not appear that you are checking for the answer anywhere. Notice in the sample above,  I am check the ANSWER field which it is begin passed back from the POPUP_TO_CONFIRM function module.   If the user presses CONTINUE, the the answer is = 1, if they press cancel, then the answer is = 2.  You have to handle this in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2006 19:15:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-distribution-list/m-p/1529048#M241957</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-09T19:15:51Z</dc:date>
    </item>
  </channel>
</rss>

