<?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: Putting restriction on Table fields while saving in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/putting-restriction-on-table-fields-while-saving/m-p/2442862#M546936</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;To make all the fields mandatory :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can restrict the fields in table maintainence generator-&amp;gt;Modification -&amp;gt; Maintainence Screen, select any of the screen under element list tab in that special attribute make all the field as required in input column. For field to accept ' * ' check the *entry column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To validate the fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to create a validation module under the PAI block as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module validation &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   if table_name-field1 eq '*'.&lt;/P&gt;&lt;P&gt;        if table_name-field2 eq '*'.&lt;/P&gt;&lt;P&gt;              if table_name-field3 eq '*'.&lt;/P&gt;&lt;P&gt;                   if table_name-field4 ne '*'.&lt;/P&gt;&lt;P&gt;                         message "enter valid value".&lt;/P&gt;&lt;P&gt;                   endif.&lt;/P&gt;&lt;P&gt;              else.&lt;/P&gt;&lt;P&gt;                  message "enter valid value".&lt;/P&gt;&lt;P&gt;              endif.&lt;/P&gt;&lt;P&gt;         else.&lt;/P&gt;&lt;P&gt;              message "enter valid value".&lt;/P&gt;&lt;P&gt;         endif.&lt;/P&gt;&lt;P&gt;   else.&lt;/P&gt;&lt;P&gt;          message "enter valid value".&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Muthu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2007 13:30:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-27T13:30:28Z</dc:date>
    <item>
      <title>Putting restriction on Table fields while saving</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/putting-restriction-on-table-fields-while-saving/m-p/2442861#M546935</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 a table z_tab1 with  4 fields as:&lt;/P&gt;&lt;P&gt; Field1 Field2 Field3 Field4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to put the restriction as &lt;/P&gt;&lt;P&gt;(1)No space value is allowed in table .Either user has to enter a value or ' * '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2)If a user enter a ' * ' in Field2 then he can only enter ' * ' in Feild3 and Field4.&lt;/P&gt;&lt;P&gt;(3)if a user enter a ' * ' in Field3 then he can only enter a ' * ' in Field4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do anybody knows how to create such table with all these restriction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the helps are welcome !..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nazir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 09:09:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/putting-restriction-on-table-fields-while-saving/m-p/2442861#M546935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T09:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Putting restriction on Table fields while saving</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/putting-restriction-on-table-fields-while-saving/m-p/2442862#M546936</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;To make all the fields mandatory :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can restrict the fields in table maintainence generator-&amp;gt;Modification -&amp;gt; Maintainence Screen, select any of the screen under element list tab in that special attribute make all the field as required in input column. For field to accept ' * ' check the *entry column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To validate the fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to create a validation module under the PAI block as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module validation &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   if table_name-field1 eq '*'.&lt;/P&gt;&lt;P&gt;        if table_name-field2 eq '*'.&lt;/P&gt;&lt;P&gt;              if table_name-field3 eq '*'.&lt;/P&gt;&lt;P&gt;                   if table_name-field4 ne '*'.&lt;/P&gt;&lt;P&gt;                         message "enter valid value".&lt;/P&gt;&lt;P&gt;                   endif.&lt;/P&gt;&lt;P&gt;              else.&lt;/P&gt;&lt;P&gt;                  message "enter valid value".&lt;/P&gt;&lt;P&gt;              endif.&lt;/P&gt;&lt;P&gt;         else.&lt;/P&gt;&lt;P&gt;              message "enter valid value".&lt;/P&gt;&lt;P&gt;         endif.&lt;/P&gt;&lt;P&gt;   else.&lt;/P&gt;&lt;P&gt;          message "enter valid value".&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Muthu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 13:30:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/putting-restriction-on-table-fields-while-saving/m-p/2442862#M546936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T13:30:28Z</dc:date>
    </item>
  </channel>
</rss>

