<?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 records into a maintenance view in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-records-into-a-maintenance-view/m-p/2221208#M476975</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;  The difference between &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD ZTABLE-NUMBER MODULE NUMBER_CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD ZTABLE-NUMBER.&lt;/P&gt;&lt;P&gt;MODULE NUMBER_CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is if there is any error in the field..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second will block all the fields for input..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first will open the NUMBER field for input and block all the other fields..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2007 18:39:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-27T18:39:11Z</dc:date>
    <item>
      <title>Validating records into a maintenance view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-records-into-a-maintenance-view/m-p/2221205#M476972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple Z table (say ZTABLE) and a Z view based on it with some related description (say ZVIEW).  The ZTABLE has a DEC field (called COEF) with 2 decimals and it should have only numbers between 0 and 1.&lt;/P&gt;&lt;P&gt;I set the valid interval from 0 to 1 but, as help says, it's only checked for CHAR, NUMC, DEC, INT1, INT2 and INT4 data types.  Not for DEC.&lt;/P&gt;&lt;P&gt;Then I use an event on ZVIEW.  On SE11 I went to "Table maintenance generator" - Environment - Modification - Events.  So there I put the 05 event (Creating a new entry) and I programed the check.  It works fine for new entries, but if you have a record on table and you want to change the COEF field you can put there any number, even outside the 0-1 range.&lt;/P&gt;&lt;P&gt;I tried with the 01 event (Before saving the data in the database) but it seams to be called only for last record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anybody tell me what can I do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 15:55:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-records-into-a-maintenance-view/m-p/2221205#M476972</guid>
      <dc:creator>gastn_jareo</dc:creator>
      <dc:date>2007-04-24T15:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Validating records into a maintenance view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-records-into-a-maintenance-view/m-p/2221206#M476973</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;Since it is a Z TABLE..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can directly modify the flow logic in SE51.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to SE51&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the program name - SAPL + Function group name&lt;/P&gt;&lt;P&gt;Screen number &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press change..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the flow logic..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add a module after the FIELD ztable-number, in the PAI event..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD ZTABLE-NUMBER MODULE NUMBER_CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the module validate the number..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE NUMBER_CHECK INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF ZTABLE-NUMBER &amp;lt;&amp;gt; '0' OR&lt;/P&gt;&lt;P&gt;      ZTABLE-NUMBER &amp;lt;&amp;gt; '1'.&lt;/P&gt;&lt;P&gt;     MESSAGE E208(00) WITH 'Not a valid number'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 16:00:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-records-into-a-maintenance-view/m-p/2221206#M476973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T16:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Validating records into a maintenance view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-records-into-a-maintenance-view/m-p/2221207#M476974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked well!  Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have a little more question to understand exactly what I did:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On this example whats the difference between doing this?:&lt;/P&gt;&lt;P&gt;FIELD ZTABLE-NUMBER MODULE NUMBER_CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and doing this?:&lt;/P&gt;&lt;P&gt;FIELD ZTABLE-NUMBER.&lt;/P&gt;&lt;P&gt;MODULE NUMBER_CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MODULE should be on the last screen field or on the field I want to check?  On my example the last one is the field to check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 18:21:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-records-into-a-maintenance-view/m-p/2221207#M476974</guid>
      <dc:creator>gastn_jareo</dc:creator>
      <dc:date>2007-04-25T18:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Validating records into a maintenance view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-records-into-a-maintenance-view/m-p/2221208#M476975</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;  The difference between &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD ZTABLE-NUMBER MODULE NUMBER_CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD ZTABLE-NUMBER.&lt;/P&gt;&lt;P&gt;MODULE NUMBER_CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is if there is any error in the field..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second will block all the fields for input..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first will open the NUMBER field for input and block all the other fields..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 18:39:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-records-into-a-maintenance-view/m-p/2221208#M476975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T18:39:11Z</dc:date>
    </item>
  </channel>
</rss>

