<?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: SO user exit problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230289#M139146</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;Is table xkonv not working ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Jacek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Apr 2006 06:19:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-12T06:19:24Z</dc:date>
    <item>
      <title>SO user exit problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230279#M139136</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;In VA01 at Item level, condition tab i want to check price&lt;/P&gt;&lt;P&gt;limit.If it is more than 500 i want to through the message.So i have written the following code using  FORM USEREXIT_SAVE_DOCUMENT in MV45AFZZ program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: v_total like vbap-netwr.

check sy-tcode = 'VA01' or sy-tcode = 'VA02'.
check sy-dynno = '5003'.

check vbak-auart = 'ZR01' or
      vbak-auart = 'ZR02'.
 
loop at xvbap where abgru = 'ZC'.
     v_total = v_total + &amp;lt;b&amp;gt;xvbap-netwr&amp;lt;/b&amp;gt;.
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;Now everything is fine.But,if iam creating SO with VA01, &amp;lt;b&amp;gt;xvbap-netwr not picking the value&amp;lt;/b&amp;gt;.If in VA02 (change mode)it is picking the value and program is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me what might be the reason?&lt;/P&gt;&lt;P&gt;Do this program is storing &amp;lt;b&amp;gt;NETWR&amp;lt;/b&amp;gt; value in other TABLE insead of XVBAP in VA01 mode?&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>Tue, 11 Apr 2006 12:31:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230279#M139136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-11T12:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: SO user exit problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230280#M139137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check xtkomv table for field kbetr&lt;/P&gt;&lt;P&gt;with key KAPPL = position  and kschl = NETP. That is a table for pricing.&lt;/P&gt;&lt;P&gt;But the situation is strnage - in my system tha field netwr is filled correctly in xvbap when saving document. Areu ju sure thaht jou pricing procedure is correctly set ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Jacek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2006 13:17:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230280#M139137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-11T13:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: SO user exit problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230281#M139138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jacek S³owikowski,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my system, in VA02 mode is working.But in creation (VA01) it is not working. xvbap-netwr value picking as 0.&lt;/P&gt;&lt;P&gt;But value is there in my condition tab.&lt;/P&gt;&lt;P&gt;I wll try with your table.&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>Tue, 11 Apr 2006 13:22:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230281#M139138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-11T13:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: SO user exit problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230282#M139139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Va02 is workin becouse it already has pricings.&lt;/P&gt;&lt;P&gt;Pricings must be made to have coorect value of netwr.&lt;/P&gt;&lt;P&gt;In normal way they are made after confirming new position (by clicking enter, after filling SO position). so thay are done before saving document.&lt;/P&gt;&lt;P&gt;So is my questin, are you sure yor pricing procedure is ok ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Jacek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2006 13:58:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230282#M139139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-11T13:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: SO user exit problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230283#M139140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jacek S³owikowski,&lt;/P&gt;&lt;P&gt;Atlast i got it using by your table xkomv.Thanks a lot.&lt;/P&gt;&lt;P&gt;Since iam using &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;ERROR&lt;/P&gt; message in document saving subroutine, iam getting the error.&lt;BR /&gt;&lt;BR /&gt; if v_total &amp;gt; v_value.&lt;BR /&gt; message &lt;B&gt;&lt;P&gt;E398(00)&lt;/P&gt;&lt;/B&gt; with&lt;P&gt;&lt;/P&gt;&lt;P&gt;             'FOC sales order limit exceeded!'.&lt;/P&gt;&lt;P&gt;          exit.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to rectify it?My intension is, if price limit is more than 500, i want to through error message and user should not move further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot,&lt;/P&gt;&lt;P&gt;I wll allot full point for u.&lt;/P&gt;&lt;P&gt;Kaki&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2006 14:17:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230283#M139140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-11T14:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: SO user exit problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230284#M139141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try that way&lt;/P&gt;&lt;P&gt;if....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MESSAGE w398(00) WITH&lt;/P&gt;&lt;P&gt;  'FOC sales order limit exceeded!'.&lt;/P&gt;&lt;P&gt;  LEAVE TO SCREEN 4001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2006 14:35:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230284#M139141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-11T14:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: SO user exit problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230285#M139142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Still iam getting errors.&lt;/P&gt;&lt;P&gt;Is there anyway to stop exiting from screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;kaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 01:46:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230285#M139142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T01:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: SO user exit problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230286#M139143</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;Use a Status Message or try using SET SCREEN.&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>Wed, 12 Apr 2006 02:12:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230286#M139143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T02:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: SO user exit problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230287#M139144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi YJR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if v_total &amp;gt; v_value.&lt;/P&gt;&lt;P&gt;        message &amp;lt;b&amp;gt;E398(00)&amp;lt;/b&amp;gt; with&lt;/P&gt;&lt;P&gt;        'FOC sales order limit exceeded!'.      &lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i press enter first time, it is showing message.If i press enter second time, it is showing the popup window that  "Item 000001 does not exit". If i click on Tick button on this window, enitre screen is closing down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i keep always in the same screen(condition tab screen)after showing the error message?&lt;/P&gt;&lt;P&gt;If i give Warning message(message &amp;lt;b&amp;gt;W398(00)&amp;lt;/b&amp;gt;) also iam getting same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewared guranteed&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>Wed, 12 Apr 2006 02:36:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230287#M139144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T02:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: SO user exit problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230288#M139145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if v_total &amp;gt; v_value.&lt;/P&gt;&lt;P&gt;message E398(00) with&lt;/P&gt;&lt;P&gt;'FOC sales order limit exceeded!'. &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;LEAVE TO SCREEN SY-DYNNR.&amp;lt;/b&amp;gt;&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;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shashank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 03:42:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230288#M139145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T03:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: SO user exit problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230289#M139146</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;Is table xkonv not working ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Jacek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 06:19:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-user-exit-problem/m-p/1230289#M139146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T06:19:24Z</dc:date>
    </item>
  </channel>
</rss>

