<?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: email notification in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-notification/m-p/1843682#M358263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your thinking is correct. For a nice and clean solution you should create this flag as an addition to the contract data that can be handled using a BAPI (with extension).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your check program should run from time to time in background, set the flag via BAPI if the mail should be sent. This will lock the contract for a moment. If this is not possible, someone is just changing the contract - check again later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the contract handling itself you could populate a userexit to remove the flag if renewed is less than 90%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 Feb 2007 21:33:16 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2007-02-03T21:33:16Z</dc:date>
    <item>
      <title>email notification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-notification/m-p/1843679#M358260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My program is sorting to whom I have to send the mails that the contract is expiring or below 10% so sending mail is delt with functional people&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rt now my program , whenever it is run it is taking 90% reached contracts and is giving contract NO and details (to whom to send emails)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I want to do is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If 90% is reached and email is sent once No more emails are required This is the first condition..&lt;/P&gt;&lt;P&gt;And if the contract is renewed by the contract creator then it will be less than 90% so again when it reaches 90% I want the details to display in the output so that they can send email notification...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thinking is I'm trying to create a a flag and keep the flag when it receives an email and when renewed and is less than 90% it must remove the flag..so that when the program again reaches 90% the contract creator must be emailed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone suggest me whether my thinking is correct or not if so ca you guide me how to proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Feb 2007 05:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-notification/m-p/1843679#M358260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-03T05:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: email notification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-notification/m-p/1843680#M358261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Hema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can achieve this using multiple options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;option 1&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can write the logic as mentioned in your program to read the contract; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if contract &amp;gt;= 90%.
        contract_flag = 'X'. mail_flag = 'X'.
else.
       clear contract_flag.
endif.
if contract_flag = 'X' and mail_flag = 'X'. 
        perform send_mail. 
        clear mail_flag .
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;But in this case, your program should be scheduled to run periodically in background.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;Option2&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create change documents for the contract field.&lt;/P&gt;&lt;P&gt;trigger workflow -&amp;gt;with start condition contract &amp;gt;= 90%&lt;/P&gt;&lt;P&gt;send notification mail. (you can consult with a Workflow consultant on this).&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;Sajan Joseph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Feb 2007 07:16:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-notification/m-p/1843680#M358261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-03T07:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: email notification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-notification/m-p/1843681#M358262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        abap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Feb 2007 16:31:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-notification/m-p/1843681#M358262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-03T16:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: email notification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-notification/m-p/1843682#M358263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your thinking is correct. For a nice and clean solution you should create this flag as an addition to the contract data that can be handled using a BAPI (with extension).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your check program should run from time to time in background, set the flag via BAPI if the mail should be sent. This will lock the contract for a moment. If this is not possible, someone is just changing the contract - check again later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the contract handling itself you could populate a userexit to remove the flag if renewed is less than 90%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Feb 2007 21:33:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-notification/m-p/1843682#M358263</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-02-03T21:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: email notification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-notification/m-p/1843683#M358264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used a regular program no  bapi and userexit the first condition to send emails only once is achieved (emails in the sense the details to whom to send emails)but when renewed the email (details to whom to sent) are not displayed .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a field and made it as a flag if 90% reached and email is received flag is set if flag is set no emails &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now when renewed its not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you suggest me......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2007 14:17:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-notification/m-p/1843683#M358264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-04T14:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: email notification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-notification/m-p/1843684#M358265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abap,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both flags must be cleared in the renewal process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 16:55:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-notification/m-p/1843684#M358265</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-02-05T16:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: email notification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-notification/m-p/1843685#M358266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wrote the following code but it is not working can anyone correct my code....&lt;/P&gt;&lt;P&gt;**********************************************************&lt;/P&gt;&lt;P&gt;select single zlimit into l_zlimit from zcontractwflow&lt;/P&gt;&lt;P&gt;  where ebeln = tb_contract-ebeln.&lt;/P&gt;&lt;P&gt;if L_zlimit = 'x'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;update zcontractwflow&lt;/P&gt;&lt;P&gt;        set zlimit = 'x'&lt;/P&gt;&lt;P&gt;        where ebeln = tb_conhdr-ebeln  "(for header items)&lt;/P&gt;&lt;P&gt;        and ebeln = tb_conitm-ebeln.    "(for line items)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        perform f_create_event_for_workflow using x_objkey c_eventid&lt;/P&gt;&lt;P&gt;                                       changing x_eventid.&lt;/P&gt;&lt;P&gt;**********************************************************************************************&lt;/P&gt;&lt;P&gt;select single zlimit into l_zlimit from zcontractwflow&lt;/P&gt;&lt;P&gt;  where ebeln = tb_contract-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if l_menge eq p_conitm-ktmng and p_contype eq c_m&lt;/P&gt;&lt;P&gt;  and l_zlimit eq 'X'.&lt;/P&gt;&lt;P&gt;  update zcontractwflow set zlimit = ' '.&lt;/P&gt;&lt;P&gt;*********************************************************************************&lt;/P&gt;&lt;P&gt;select single zlimit into l_zlimit from zcontractwflow&lt;/P&gt;&lt;P&gt;           where ebeln = tb_conhdr-ebeln.&lt;/P&gt;&lt;P&gt;            if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      if g_netwr &amp;gt; tb_conhdr-ktwrt and l_contract eq c_w&lt;/P&gt;&lt;P&gt;     and l_zlimit eq space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update zcontractwflow set zlimit = 'X'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 22:09:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-notification/m-p/1843685#M358266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T22:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: email notification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-notification/m-p/1843686#M358267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use the where condition in the UPDATE stmts always. This is a best practice.&lt;/P&gt;&lt;P&gt;Check for ='X' (capitals) and not = 'x'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 23:43:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-notification/m-p/1843686#M358267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T23:43:53Z</dc:date>
    </item>
  </channel>
</rss>

