<?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: VA42 User Exit Help Please in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969933#M69438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want only certain few fields to be open for editing then put your if condition accordingly ( screen-input = 1 ) and for all other screen elements make screen-input = 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Sep 2005 01:04:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-15T01:04:22Z</dc:date>
    <item>
      <title>VA42 User Exit Help Please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969923#M69428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to modify the behaviour of VA42 (Contract Change) as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If field VBAK-MAHDT is not initial and doc types are Z020-Z022, do not allow any changes to any fields except to field VBAK-MAHDT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that field is initial, VA42 should work as normal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried making this coding change in form userexit_field_modification in MV45AFZZ.  However it does not perform as desired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-tcode = 'VA42'.&lt;/P&gt;&lt;P&gt;    if ( ( vbak-auart = 'Z020' )&lt;/P&gt;&lt;P&gt;    or ( vbak-auart = 'Z021' )&lt;/P&gt;&lt;P&gt;    or ( vbak-auart = 'Z022' ) ).&lt;/P&gt;&lt;P&gt;      if vbak-mahdt is initial.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        message W899 with 'Change not allowed'.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions are welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 16:36:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969923#M69428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T16:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: VA42 User Exit Help Please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969924#M69429</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;This subroutine userexit_field_modification is called in PBO. Please try subroutine USEREXIT_SAVE_DOCUMENT_PREPARE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 16:44:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969924#M69429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T16:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: VA42 User Exit Help Please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969925#M69430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are doing validation checking, you will want to put this code in the PAI include MV45AIZZ.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 16:44:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969925#M69430</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-09-14T16:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: VA42 User Exit Help Please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969926#M69431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whenever I've become confused by to many nested 'if' statements, I try to rewrite it as a 'case' structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case vbak-auart . &lt;/P&gt;&lt;P&gt;  when 'Z020'.&lt;/P&gt;&lt;P&gt;    ....&lt;/P&gt;&lt;P&gt;  when 'Z021'.&lt;/P&gt;&lt;P&gt;    ...&lt;/P&gt;&lt;P&gt;  when space .&lt;/P&gt;&lt;P&gt;    ...&lt;/P&gt;&lt;P&gt;  when others .&lt;/P&gt;&lt;P&gt;endcase. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That makes each inspection point isolated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 16:47:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969926#M69431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T16:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: VA42 User Exit Help Please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969927#M69432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are doing validation checking, you will want to put this code in the PAI include MV45AIZZ.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 16:52:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969927#M69432</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-09-14T16:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: VA42 User Exit Help Please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969928#M69433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried to use USEREXIT_CHECK_VBAK and&lt;/P&gt;&lt;P&gt;USEREXIT_CHECK_VBAP in MV45AFZB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 16:58:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969928#M69433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T16:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: VA42 User Exit Help Please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969929#M69434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for their reply.  I am still checking out some of the suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I've modified the code as such and am very close to a solution.  The problem with the below code is that not all fields are being protected from input, e.g. Contract Dates, and I can also add a line item.  I guess what I am aiming for is for it to look and behave like VA43 where ALL fields are protected EXCEPT the one the user is allowed to change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-tcode = 'VA42'.&lt;/P&gt;&lt;P&gt;    if ( ( vbak-auart = 'Z020' )&lt;/P&gt;&lt;P&gt;    or ( vbak-auart = 'Z021' )&lt;/P&gt;&lt;P&gt;    or ( vbak-auart = 'Z022' ) ).&lt;/P&gt;&lt;P&gt;      if vbak-mahdt is initial.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        if screen-name = 'VBAK-MAHDT'.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;        screen-input = 0.  &lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 17:02:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969929#M69434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T17:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: VA42 User Exit Help Please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969930#M69435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To change screen attributes you will have to loop in screen table in PAI user exit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try program MV45AFZZ_USEREXIT_FIELD_MODIFI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 17:09:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969930#M69435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T17:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: VA42 User Exit Help Please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969931#M69436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your response seems to be working better for me than the others at the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with this section is that it's not called on any screen VEDA screen fields.  Therefore they are all staying unprotected.  Furthermore, the text field on the Text tabs are unprotected as well as any fields where there are multiple lines of input.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to make a modification to the form USEREXIT_FIELD_MODIFICATION in include LV45WFZZ.  I have access to the VEDA fields here.  However I have no access to the contents of VBAK which are critical to my logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you or anyone else have other suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bottom line under certain conditions of VBAK, I want VA42 to operate just like VA43 except ONE field is unprotected and modifiable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 22:25:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969931#M69436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T22:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: VA42 User Exit Help Please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969932#M69437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've resolved the screen protect problem on any VEDA related fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my only problem is that repeatable fields, such as line item, etc are still updateable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other recommendations are welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wardell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 23:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969932#M69437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T23:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: VA42 User Exit Help Please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969933#M69438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want only certain few fields to be open for editing then put your if condition accordingly ( screen-input = 1 ) and for all other screen elements make screen-input = 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2005 01:04:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va42-user-exit-help-please/m-p/969933#M69438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-15T01:04:22Z</dc:date>
    </item>
  </channel>
</rss>

