<?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: regarding validating blank fields in custom table maintainance screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-validating-blank-fields-in-custom-table-maintainance-screen/m-p/5015597#M1167192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Go to SM30 transaction and enter the table name. In the second screen where u will enter the data, go to sytem-&amp;gt;status in the menu bar and get the program name and screen number. Go to se51(Screen Painter) and  write code in the PAI module for field which u want to validate.&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;Chinna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Jan 2009 03:56:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-09T03:56:48Z</dc:date>
    <item>
      <title>regarding validating blank fields in custom table maintainance screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-validating-blank-fields-in-custom-table-maintainance-screen/m-p/5015595#M1167190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can any one tell me how to validate blank fields in custom table maintainance screen&lt;/P&gt;&lt;P&gt;for ex: when i click new entries and without entering any values if i click on save button it is showing values saved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here actually it should show errors as ' blank values not allowed'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried with event unfortunately once  error message is displayed &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save button is not shown it became grey button &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any solution please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 20:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-validating-blank-fields-in-custom-table-maintainance-screen/m-p/5015595#M1167190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T20:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: regarding validating blank fields in custom table maintainance screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-validating-blank-fields-in-custom-table-maintainance-screen/m-p/5015596#M1167191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No need to use the Events to validate only mandatory entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can set it in the field's properties in the Screen.&lt;/P&gt;&lt;P&gt;Open your Table Maintenance in SE11&lt;/P&gt;&lt;P&gt;Environment&amp;gt; Modification &amp;gt; Maintenance Screens&lt;/P&gt;&lt;P&gt;Select Your Screen&lt;/P&gt;&lt;P&gt;Open Screen Painter&lt;/P&gt;&lt;P&gt;Select your field and make it required.&lt;/P&gt;&lt;P&gt;Save and Activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: This change will go away if you regenerate your table maintenance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 21:01:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-validating-blank-fields-in-custom-table-maintainance-screen/m-p/5015596#M1167191</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-01-08T21:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: regarding validating blank fields in custom table maintainance screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-validating-blank-fields-in-custom-table-maintainance-screen/m-p/5015597#M1167192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Go to SM30 transaction and enter the table name. In the second screen where u will enter the data, go to sytem-&amp;gt;status in the menu bar and get the program name and screen number. Go to se51(Screen Painter) and  write code in the PAI module for field which u want to validate.&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;Chinna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 03:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-validating-blank-fields-in-custom-table-maintainance-screen/m-p/5015597#M1167192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-09T03:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: regarding validating blank fields in custom table maintainance screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-validating-blank-fields-in-custom-table-maintainance-screen/m-p/5015598#M1167193</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 avoid saving blank entries, go to the view maintenance screen layout. &lt;/P&gt;&lt;P&gt;Go to the screen painter properties of the field where you do not want blank entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the attributes section, goto "Program". Set the "input" property to "required".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will throw an error message if the blank is entered in the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varsha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 08:02:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-validating-blank-fields-in-custom-table-maintainance-screen/m-p/5015598#M1167193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T08:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: regarding validating blank fields in custom table maintainance screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-validating-blank-fields-in-custom-table-maintainance-screen/m-p/5015599#M1167194</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;There are two ways to validate entries in a field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. through code.&lt;/P&gt;&lt;P&gt;2.through attributes for the field in the screen painter&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;in code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; if screen 1 has two buttons "save"  and "new entry" ,&lt;/P&gt;&lt;P&gt;-&amp;gt; when new entry is clicked u initialize all the text fields(id ,name,branch).if its numeric field initialise it to 0 else  simply '  ' .&lt;/P&gt;&lt;P&gt;-&amp;gt; when save is  clicked ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ID = 0.&lt;/P&gt;&lt;P&gt;   display message "enter id".&lt;/P&gt;&lt;P&gt;elseif NAME = ' '.&lt;/P&gt;&lt;P&gt;   display message  'enter name  '.  // display such message for all fields.&lt;/P&gt;&lt;P&gt; else.&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;      store screen values into itab.&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;       INSERT INTO &amp;lt;table name&amp;gt; VALUES ITAB.&lt;/P&gt;&lt;P&gt;         if SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;                    display message "successfully updated"&lt;/P&gt;&lt;P&gt;         else.&lt;/P&gt;&lt;P&gt;                   display message " user already exists"&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;      intialize the text fields in the screen .&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Set the attribute "  input " for the text field in screen painter to "required".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope the content is usefull..Please close the thread if its resolved&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rajeshwari padmanaban on Jan 16, 2009 11:26 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rajeshwari P on Jan 20, 2009 12:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 12:35:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-validating-blank-fields-in-custom-table-maintainance-screen/m-p/5015599#M1167194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T12:35:49Z</dc:date>
    </item>
  </channel>
</rss>

