<?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 Problem with validating a field in VA01/VA02 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-validating-a-field-in-va01-va02/m-p/7548159#M1563141</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 was required to add validation for Material Group 3 (VBAP-MVGR3) in 'Additional Data A' tab (VA01/VA02). The corresponding screen number in 4459. In the PAI section, there is a module called 'vbap_bearbeiten'. In this module, there is an enhancement point called 'VBAP_BEARBEITEN_10 '. I created an implementation of this enhancement point to call a validation subroutine which i put in user exit MV45AFZZ. My problem is whenever a wrong entry is entered for that field, the whole screen in the 'Additional Data A' tab turned grey and disabled for user entry. Re-entry for the correct Material Group 3 is not allowed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially, i used a different approach. I made a core change to screen 4459 by adding a statement like below in the PAI section :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD vbap-mvgr3 MODULE zsd_check_mvgr3 ON REQUEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, the validation worked without any issue. User was prompted for an error message and then was allowed to re-enter a correct entry for that field if a wrong entry was entered initially. However, since this approach involved a core change, it was not allowed by my superior and he demands for using the enhancement framework approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly please let me know if you have any idea of resolving this issue. Thanks much in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jan 2011 09:00:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-06T09:00:32Z</dc:date>
    <item>
      <title>Problem with validating a field in VA01/VA02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-validating-a-field-in-va01-va02/m-p/7548159#M1563141</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 was required to add validation for Material Group 3 (VBAP-MVGR3) in 'Additional Data A' tab (VA01/VA02). The corresponding screen number in 4459. In the PAI section, there is a module called 'vbap_bearbeiten'. In this module, there is an enhancement point called 'VBAP_BEARBEITEN_10 '. I created an implementation of this enhancement point to call a validation subroutine which i put in user exit MV45AFZZ. My problem is whenever a wrong entry is entered for that field, the whole screen in the 'Additional Data A' tab turned grey and disabled for user entry. Re-entry for the correct Material Group 3 is not allowed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially, i used a different approach. I made a core change to screen 4459 by adding a statement like below in the PAI section :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD vbap-mvgr3 MODULE zsd_check_mvgr3 ON REQUEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, the validation worked without any issue. User was prompted for an error message and then was allowed to re-enter a correct entry for that field if a wrong entry was entered initially. However, since this approach involved a core change, it was not allowed by my superior and he demands for using the enhancement framework approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly please let me know if you have any idea of resolving this issue. Thanks much in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 09:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-validating-a-field-in-va01-va02/m-p/7548159#M1563141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-06T09:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with validating a field in VA01/VA02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-validating-a-field-in-va01-va02/m-p/7548160#M1563142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this using user exit MV45AFZB, form-routine "USEREXIT_CHECK_VBAP".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 09:08:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-validating-a-field-in-va01-va02/m-p/7548160#M1563142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-06T09:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with validating a field in VA01/VA02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-validating-a-field-in-va01-va02/m-p/7548161#M1563143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try to write the logic in &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include MV45AFZZ in form routine USEREXIT_MOVE_FIELD_TO_VBAP and throw error message after the validation it will work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 09:09:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-validating-a-field-in-va01-va02/m-p/7548161#M1563143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-06T09:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with validating a field in VA01/VA02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-validating-a-field-in-va01-va02/m-p/7548162#M1563144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, thanks much for your feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to call my validation subroutine from USEREXIT_CHECK_VBAP (MV45AFZB). However, it did not work as well. Although the validation subroutine was successfully called in USEREXIT_CHECK_VBAP and error message dialog box was shown if entry was not correct, but when i clicked on the dialog box / pressed the 'enter' key, the 'Material Group 3' field was not opened for re-editing (it was still shown in grey and disallowed for user entry). In fact, through debugging, i found that USEREXIT_CHECK_VBAP was called again (after i pressed the 'enter' key) and it caused the program to enter an infinite loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand, i also tried to use USEREXIT_MOVE_FIELD_TO_VBKD (MV45ZFZZ). Unfortunately, i also met with the same issue as described above.  Kindly please let me know if there is a way to solve this issue. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 03:24:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-validating-a-field-in-va01-va02/m-p/7548162#M1563144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-07T03:24:59Z</dc:date>
    </item>
  </channel>
</rss>

