<?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 field in a table while creating new entries. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-field-in-a-table-while-creating-new-entries/m-p/2809962#M656844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issuing an "E" type message is the correct way to proceed, I reckon... look at one of the SAP events that does a similar validation e.g. view V_WOSCR_GRP_003 has an event '05' called "validate_account" in (include LWOST_CR_IMG01FNG)... it issues "E" messages (with some amusing comments too).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An "E" message in a table control would normally lock all the rows other than the current one... but if fields on the current (exception) row are getting locked, have a look at the screen flow - in the PAI there should be a " LOOP AT EXTRACT." followed by a "CHAIN." and then all the fields to keep open on the row in case of error and "module set_update_flag"... check the ones you want are there, as I think that's where your event will be called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Sep 2007 03:53:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-21T03:53:23Z</dc:date>
    <item>
      <title>Validating field in a table while creating new entries.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-field-in-a-table-while-creating-new-entries/m-p/2809959#M656841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to validate the 'Todate' field in ztable. Validation is Todate should be greater than 'Fromdate'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this i have written some code in maintainance event (05-New entries).It is working fine.See the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***INCLUDE LZKM0007F01 .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM AT_NEWENTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF ZKM0007-ZTO_DATE LT ZKM0007-ZFROM_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   MESSAGE E001(ZKM) WITH 'ENTER TODATE GREATER THAN FROMDATE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i enter the 'Todate' less than 'fromdate' it is showing an error massege. After showing the error message these two fields are greyed out(disabled). But it should not happened. I want error message and i want to change (or correct) the 'Todate' here itself instead of cancelling and re entering the record line totally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards to all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 05:23:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-field-in-a-table-while-creating-new-entries/m-p/2809959#M656841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T05:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Validating field in a table while creating new entries.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-field-in-a-table-while-creating-new-entries/m-p/2809960#M656842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anupama,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do the following,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM AT_NEWENTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ZKM0007-ZTO_DATE LT ZKM0007-ZFROM_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE&amp;lt;b&amp;gt; I001&amp;lt;/b&amp;gt;(ZKM) WITH 'ENTER TODATE GREATER THAN FROMDATE'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;EXIT.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change error to information message and write..exit after that..which will bring you back to the same screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check and revert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 05:29:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-field-in-a-table-while-creating-new-entries/m-p/2809960#M656842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T05:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Validating field in a table while creating new entries.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-field-in-a-table-while-creating-new-entries/m-p/2809961#M656843</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;I have already tried this. It shows only information.If we forgot to change the date, then it saves in database. It allow to save. so i want to display error message.&lt;/P&gt;&lt;P&gt;Is it possible with error message?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 08:27:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-field-in-a-table-while-creating-new-entries/m-p/2809961#M656843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T08:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Validating field in a table while creating new entries.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-field-in-a-table-while-creating-new-entries/m-p/2809962#M656844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issuing an "E" type message is the correct way to proceed, I reckon... look at one of the SAP events that does a similar validation e.g. view V_WOSCR_GRP_003 has an event '05' called "validate_account" in (include LWOST_CR_IMG01FNG)... it issues "E" messages (with some amusing comments too).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An "E" message in a table control would normally lock all the rows other than the current one... but if fields on the current (exception) row are getting locked, have a look at the screen flow - in the PAI there should be a " LOOP AT EXTRACT." followed by a "CHAIN." and then all the fields to keep open on the row in case of error and "module set_update_flag"... check the ones you want are there, as I think that's where your event will be called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2007 03:53:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-field-in-a-table-while-creating-new-entries/m-p/2809962#M656844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-21T03:53:23Z</dc:date>
    </item>
  </channel>
</rss>

