<?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: user exit doubt in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279691#M152491</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be written in MV45AFZZ as if you see the routine it is present in this one but not the one which you have given MV45AFZB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The name of the Modification Modules should start with 'ZZ'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;YJR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Apr 2006 03:02:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-10T03:02:53Z</dc:date>
    <item>
      <title>user exit doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279689#M152489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;Iam trying to write userexit using MV45AFZB.&lt;/P&gt;&lt;P&gt;If AUART eq ZR01 &amp;amp; ZR02 and price limit(NETWR) is greater than 500,I want to raise the messgae.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: v_total like vbap-netwr.

check xvbak-auart = 'ZR01' or
      xvbak-auart = 'ZR02'.

loop at xvbap where abgru = 'ZC'.
     v_total = v_total + xvbap-netwr.
endloop.

if v_total gt 500.
      message e000(zmsg) with
         'FOC sales order limit exceeded!'.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written this code in FORM USEREXIT_SAVE_DOCUMENT_PREPARE(MV45AFZB) subroutine.&lt;/P&gt;&lt;P&gt;It is not triggering when Amount is more that 500.What might be the reason? Where i need to write this program?&lt;/P&gt;&lt;P&gt;MV45AFZB or MV45AFZZ?And also let me know the subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i press enter, i want display message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward guaranteed&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;kaki&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 02:54:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279689#M152489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T02:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: user exit doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279690#M152490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the same code in&lt;/P&gt;&lt;P&gt;FORM userexit_check_vbap USING us_dialog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Wenceslaus.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 03:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279690#M152490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T03:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: user exit doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279691#M152491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be written in MV45AFZZ as if you see the routine it is present in this one but not the one which you have given MV45AFZB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The name of the Modification Modules should start with 'ZZ'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;YJR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 03:02:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279691#M152491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T03:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: user exit doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279692#M152492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code looks right, are you sure you have written in the right User exit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 03:03:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279692#M152492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T03:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: user exit doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279693#M152493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to place your logic in program &amp;lt;b&amp;gt;MV45AFZZ&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;FORM USEREXIT_MOVE_FIELD_TO_VBAP&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;Use &amp;lt;b&amp;gt;VBAK&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;VBAP&amp;lt;/b&amp;gt; instead of XVBAK and XVBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can place the code in program &amp;lt;b&amp;gt;MV45AFZB&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;FORM USEREXIT_CHECK_VBAP USING US_DIALOG&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 03:05:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279693#M152493</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-04-10T03:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: user exit doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279694#M152494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried in both the programs...&lt;/P&gt;&lt;P&gt;MV45AFZZ and FORM USEREXIT_MOVE_FIELD_TO_VBAP &amp;amp;&lt;/P&gt;&lt;P&gt;MV45AFZB and FORM USEREXIT_CHECK_VBAP USING US_DIALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not working...And also if i give VBAP insetead of XVBAP iam getting error that "VERSION....expected after VBAP".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What might be the reason?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;kaki&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 03:45:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279694#M152494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T03:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: user exit doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279695#M152495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can code something like this and please debug it (if needed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: v_total like vbap-netwr,
      v_gtotal type i.
 
check xvbak-auart = 'ZR01' or
      xvbak-auart = 'ZR02'.
 
loop at xvbap where abgru = 'ZC'.
     v_total = v_total + xvbap-netwr.
endloop.

move v_total to v_gtotal.
 
if v_gtotal &amp;gt; '500'.
  message e000(zmsg) with 
          FOC sales order limit exceeded!'.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 04:00:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279695#M152495</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-04-10T04:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: user exit doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279696#M152496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Please try by declaring the variable v_total as static. &lt;/P&gt;&lt;P&gt;Instead of looping xvbap, just check for abgru and add the net value (NETWR) to the static variable. &lt;/P&gt;&lt;P&gt;Then raise the message as usual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Rashmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 04:56:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279696#M152496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T04:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: user exit doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279697#M152497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;Still i could not find where the problem is.&lt;/P&gt;&lt;P&gt;If iam in the Conditions tab in the VA02,if i give value more than 500 and press enter,  i want to through the message.&lt;/P&gt;&lt;P&gt;Iam writing this code in FORM USEREXIT_CHECK_VBAP USING US_DIALOG(MV45AFZB).Why it is not getting triggered?&lt;/P&gt;&lt;P&gt;Is there any other way to achieve this???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;kaki&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 09:31:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279697#M152497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T09:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: user exit doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279698#M152498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to place your logic &amp;lt;b&amp;gt;FORM USEREXIT_SAVE_DOCUMENT&amp;lt;/b&amp;gt; in program &amp;lt;b&amp;gt;MV45AFZZ&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not put in FORM USEREXIT_CHECK_VBAP USING US_DIALOG(MV45AFZB) because this routine is used to check item level (looping). If you ONLY have one item with price $501, your logic will work. But if you have more than one item with price less than $501, it will not work when you try to accumulate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 14:23:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279698#M152498</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-04-10T14:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: user exit doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279699#M152499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its the right formname. Try both programs MV45AFZZ and MV45AFZB. Put a break point on the code. Its what you should try first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 14:27:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279699#M152499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T14:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: user exit doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279700#M152500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are on the conditions tab:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.  USEREXIT_CHECK_VBAP will not get triggered on enter.  This only gets triggered on an item tab for an item that you have added or changed&lt;/P&gt;&lt;P&gt;2.  USEREXIT_SAVE_DOCUMENT_PREPARE will not get triggered.  It will not get triggered until you attempt to save the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The conditions tab is controlled by program SAPLV69A (function group V69A).  Go to SE80 for this function group and look at the USEREXIT* subroutines to see if any of these will meet your needs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 19:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279700#M152500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T19:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: user exit doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279701#M152501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Program SAPMV45A (Sales order processing) has "fixed point arithmetic" option turned off (program attributes). That being the case, try moving your validation check to another location (maybe a function module or a subroutine pool where this attribute "fixed point arithmetic" is turned on) and I hope the validation should work fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2006 07:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-doubt/m-p/1279701#M152501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-11T07:17:56Z</dc:date>
    </item>
  </channel>
</rss>

