<?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: Data validation in maintenance view in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-validation-in-maintenance-view/m-p/10420936#M1844584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, actually I have set vim_abort_saving = 'X'. It can prevent saving data into DB.&lt;/P&gt;&lt;P&gt;However, on UI user cannot continue to edit that entry which is checked as invalid, because the framework continue execute and gray out that entry. So it is a usability problem. I was wondering if there is any flag variable like vim_abort_saving to control the UI behavior, but failed to get any idea after some investigation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jul 2014 11:27:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-07-17T11:27:16Z</dc:date>
    <item>
      <title>Data validation in maintenance view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-validation-in-maintenance-view/m-p/10420933#M1844581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a maintenance view which is just simply a projection of a database table.&lt;/P&gt;&lt;P&gt;I'm trying to add a validation before user save the data, what I have done is add a standard event by using 'Table Maintenance Generator', there is an event 'Before saving the data in the database' which I think is proper place to do the validation.&lt;/P&gt;&lt;P&gt;Now the problem is if the user input is invalid, after validation and message displayed on the screen, the entry user is editing will be locked, and cannot be back to editable even you click 'Change&amp;lt;-&amp;gt;Display' button, user have to back to SM30 screen and re-enter again.&lt;/P&gt;&lt;P&gt;The idea behavior is the screen stays and the entry is editable, user can correct his input immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So someone can provide any advice regard this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 12:21:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-validation-in-maintenance-view/m-p/10420933#M1844581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-15T12:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Data validation in maintenance view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-validation-in-maintenance-view/m-p/10420934#M1844582</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;You can set the flag VIM_ABORT_SAVING in order to abort the saving process and back to maintenance screen without to go out from SM30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found a my old code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN class="L0S31"&gt;* Check entries with same sorting key&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;loop &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;at &lt;/SPAN&gt;t_sort_key_count&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;check &lt;/SPAN&gt;t_sort_key_count&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;tot &amp;gt; &lt;SPAN class="L0S32"&gt;1&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;message &lt;/SPAN&gt;i398&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;00&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;with &amp;lt;...............&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vim_abort_saving &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'X'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;exit&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;endloop&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use e message tyoe I instead of E, in order not to lock the process and back to imain screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 08:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-validation-in-maintenance-view/m-p/10420934#M1844582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-17T08:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Data validation in maintenance view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-validation-in-maintenance-view/m-p/10420935#M1844583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Max says, you can use VIM_ABORT_SAVING condition&amp;nbsp; and please try to event 05 for new entry enent for validation .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;05 Event will be help during entry creation check .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasenjit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 09:48:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-validation-in-maintenance-view/m-p/10420935#M1844583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-17T09:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Data validation in maintenance view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-validation-in-maintenance-view/m-p/10420936#M1844584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, actually I have set vim_abort_saving = 'X'. It can prevent saving data into DB.&lt;/P&gt;&lt;P&gt;However, on UI user cannot continue to edit that entry which is checked as invalid, because the framework continue execute and gray out that entry. So it is a usability problem. I was wondering if there is any flag variable like vim_abort_saving to control the UI behavior, but failed to get any idea after some investigation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 11:27:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-validation-in-maintenance-view/m-p/10420936#M1844584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-17T11:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Data validation in maintenance view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-validation-in-maintenance-view/m-p/10420937#M1844585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasenjit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, actually I have tried event 05, seems it still doesn't work due to some other problems(Sometimes it is not called?). I'll try to investigate event 05 further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 11:32:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-validation-in-maintenance-view/m-p/10420937#M1844585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-17T11:32:36Z</dc:date>
    </item>
  </channel>
</rss>

