<?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: Validating data using events in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data-using-events/m-p/5474253#M1253509</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;Change the message type to S and set this parameter . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vim_abort_saving = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Apr 2009 11:12:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-30T11:12:12Z</dc:date>
    <item>
      <title>Validating data using events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data-using-events/m-p/5474246#M1253502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have added the below code to event 01 (before save).  But if I output an error message then I am taken out of the table maintenace.  I just want to stop the data from being saved and allow the user to correct the data.  I have tried an information message, but then the data is saved..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lit_notif[] = EXTRACT[].

* Loop around the Modifed entries only.
  LOOP AT lit_notif INTO ls_notif.
*                          WHERE ENTRY = 'M'. "M not always left Aligned
*   Ensure entry is left aligned
    CONDENSE ls_notif-ENTRY.
*   If the entry has been modified(delete) and is a 'C' reason code
    IF ( ls_notif-ENTRY = 'U' OR ls_notif-ENTRY = 'N' ) AND
         ls_notif-TAGEN &amp;gt; 0   AND
         ls_notif-LTRUR &amp;gt; 0.
*     Not allowed to populate both hours and days
      MESSAGE E007(Z1) with ls_notif-KUNUM.
    ELSEIF ( ls_notif-ENTRY = 'U' OR ls_notif-ENTRY = 'N' ) AND
             ls_notif-TAGEN = 0   AND
             ls_notif-LTRUR = 0.
*     Must populate hours or days
      MESSAGE E008(Z1) with ls_notif-KUNUM.
    ENDIF.

    MOVE-CORRESPONDING ls_notif TO ls_prior.
    APPEND ls_prior TO lit_prior.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 14:52:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data-using-events/m-p/5474246#M1253502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T14:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Validating data using events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data-using-events/m-p/5474247#M1253503</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;Use message type 'S'&lt;/P&gt;&lt;P&gt;and write 'EXIT' immediately after the message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 14:57:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data-using-events/m-p/5474247#M1253503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T14:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Validating data using events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data-using-events/m-p/5474248#M1253504</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;change the message type E to S and after message write exit command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put the flag when ever message is triggeres and capture the message in one text..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the flag and if it is not intial.&lt;/P&gt;&lt;P&gt;again show the message with s and exit.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;prabhduas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 14:57:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data-using-events/m-p/5474248#M1253504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T14:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Validating data using events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data-using-events/m-p/5474249#M1253505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have treid the mnessage S and EXIT, but the message doesn't appear now, and the data saves...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 15:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data-using-events/m-p/5474249#M1253505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T15:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Validating data using events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data-using-events/m-p/5474250#M1253506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes it happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because you kept the exit inside the loop so it comes from the loop and  it does not comes from the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so catch the message in the loop and put in some text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and outside the loop check the message if it is not initial then again write exit command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it will works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 15:25:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data-using-events/m-p/5474250#M1253506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T15:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Validating data using events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data-using-events/m-p/5474251#M1253507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've treid at at the end of the subroutine too, and still no joy???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 15:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data-using-events/m-p/5474251#M1253507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T15:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Validating data using events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data-using-events/m-p/5474252#M1253508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use &lt;STRONG&gt;warning Message&lt;/STRONG&gt; 'W' instead of Error or any other message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or :&lt;/P&gt;&lt;P&gt;Use Information message and After that Use Check statement the later half of the code will not be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2009 04:17:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data-using-events/m-p/5474252#M1253508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-30T04:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Validating data using events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data-using-events/m-p/5474253#M1253509</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;Change the message type to S and set this parameter . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vim_abort_saving = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2009 11:12:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data-using-events/m-p/5474253#M1253509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-30T11:12:12Z</dc:date>
    </item>
  </channel>
</rss>

