<?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 Validate entries in maintenance view : Error message creating problems in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-entries-in-maintenance-view-error-message-creating-problems/m-p/6271611#M1386699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to validate the data entered in a view for any update or for a new entry created. The validation is if FIELD1 is filled FIELD 2 should be filled as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The maintenance is in two steps. Overview screen and Detail screen for new entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used 2 methods &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Form routine for Table maintenance generator event 01-Before saving data in the database &lt;/P&gt;&lt;P&gt;The Issue with this method was that on encountering this error, it comes out of the list view and shows the error on the          previous page status bar. Which basically prevents the user from doing any edit and the data is lost!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Added a new module in the PAI of the maintenace source code&lt;/P&gt;&lt;P&gt;The error message is displayed in the list screen in DISPALY mode. The screen has only CANCEL and CONTINUE.&lt;/P&gt;&lt;P&gt;If an ENTER or CONTINUE is done it stays on that page in display mode. &lt;/P&gt;&lt;P&gt;If the CANCEL is pressed, the popup asking for confirmation comes and once confirmed, the screen opens for EDIT!!!!!!!!&lt;/P&gt;&lt;P&gt;Again if the CANCEL is pressed, the popup for SAVE comes and if required the control allows to save the data in a TR. Thus no validation is happening, because it evens allows to save wrong data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with a method where I get an error message on the same list screen and it is possible to Change and SAVE. With that I mean like the standard SAP works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Oct 2009 09:06:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-26T09:06:16Z</dc:date>
    <item>
      <title>Validate entries in maintenance view : Error message creating problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-entries-in-maintenance-view-error-message-creating-problems/m-p/6271611#M1386699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to validate the data entered in a view for any update or for a new entry created. The validation is if FIELD1 is filled FIELD 2 should be filled as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The maintenance is in two steps. Overview screen and Detail screen for new entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used 2 methods &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Form routine for Table maintenance generator event 01-Before saving data in the database &lt;/P&gt;&lt;P&gt;The Issue with this method was that on encountering this error, it comes out of the list view and shows the error on the          previous page status bar. Which basically prevents the user from doing any edit and the data is lost!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Added a new module in the PAI of the maintenace source code&lt;/P&gt;&lt;P&gt;The error message is displayed in the list screen in DISPALY mode. The screen has only CANCEL and CONTINUE.&lt;/P&gt;&lt;P&gt;If an ENTER or CONTINUE is done it stays on that page in display mode. &lt;/P&gt;&lt;P&gt;If the CANCEL is pressed, the popup asking for confirmation comes and once confirmed, the screen opens for EDIT!!!!!!!!&lt;/P&gt;&lt;P&gt;Again if the CANCEL is pressed, the popup for SAVE comes and if required the control allows to save the data in a TR. Thus no validation is happening, because it evens allows to save wrong data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with a method where I get an error message on the same list screen and it is possible to Change and SAVE. With that I mean like the standard SAP works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 09:06:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-entries-in-maintenance-view-error-message-creating-problems/m-p/6271611#M1386699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-26T09:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Validate entries in maintenance view : Error message creating problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-entries-in-maintenance-view-error-message-creating-problems/m-p/6271612#M1386700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi you can make use of table maintenance events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose the appropriate event and code it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;link:[https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/8129f164-0a01-0010-2a8e-]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 09:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-entries-in-maintenance-view-error-message-creating-problems/m-p/6271612#M1386700</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-10-26T09:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Validate entries in maintenance view : Error message creating problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-entries-in-maintenance-view-error-message-creating-problems/m-p/6271613#M1386701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you read my query, I have mentioned that I used the event 01. The issue is post using it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you suggest a different effective approach than what I used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Anoop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 10:41:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-entries-in-maintenance-view-error-message-creating-problems/m-p/6271613#M1386701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-26T10:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Validate entries in maintenance view : Error message creating problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-entries-in-maintenance-view-error-message-creating-problems/m-p/6271614#M1386702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the wrong reply,&lt;/P&gt;&lt;P&gt;Do provide the code you have written in PAI for validation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 11:10:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-entries-in-maintenance-view-error-message-creating-problems/m-p/6271614#M1386702</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-10-26T11:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Validate entries in maintenance view : Error message creating problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-entries-in-maintenance-view-error-message-creating-problems/m-p/6271615#M1386703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need two events for this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;05: F_CHECK_NEW_ENTRY&lt;/P&gt;&lt;P&gt;AA: F_CHECK_FIELD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at 05: you give an error message if the table structure is filled with wrong data. (This is for new entry)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at AA: F_CHECK_FIELD&lt;/P&gt;&lt;P&gt;You need to select data and restrict them to allowed data here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF user cant select wrong data and cant create wrong data then you dont need to worry about them changing wrong data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 12:50:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-entries-in-maintenance-view-error-message-creating-problems/m-p/6271615#M1386703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-26T12:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Validate entries in maintenance view : Error message creating problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-entries-in-maintenance-view-error-message-creating-problems/m-p/6271616#M1386704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the effort guys..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made the changes to the PAI code of the maintenance screens using the CHAIN ENDCHAIN approach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 11:02:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-entries-in-maintenance-view-error-message-creating-problems/m-p/6271616#M1386704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T11:02:17Z</dc:date>
    </item>
  </channel>
</rss>

