<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>user exit &#8211; SAP EWM Help</title>
	<atom:link href="https://www.sapewmhelp.com/question-tag/user-exit/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.sapewmhelp.com</link>
	<description>SAP EWM questions answered by experts — ABAP, S/4HANA, warehouse management</description>
	<lastBuildDate>Thu, 25 Sep 2025 19:47:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>
	<item>
		<title>User Exit &#8212; Check Quantity before creating and modifying the sales order</title>
		<link>https://www.sapewmhelp.com/question/user-exit-check-quantity-before-creating-and-modifying-the-sales-order/</link>
					<comments>https://www.sapewmhelp.com/question/user-exit-check-quantity-before-creating-and-modifying-the-sales-order/#respond</comments>
		
		<dc:creator><![CDATA[DPM125]]></dc:creator>
		<pubDate>Thu, 25 Sep 2025 19:47:11 +0000</pubDate>
				<guid isPermaLink="false">https://www.sapewmhelp.com/?question=user-exit-check-quantity-before-creating-and-modifying-the-sales-order</guid>

					<description><![CDATA[User enters Sales Order → goes to item screen. User enters Material + Quantity. SAP validates item → calls USEREXIT_CHECK_VBAP. Your enhancement runs. If xvbap-kwmeng &#60; 10, show error/warning. If OK → continue. User clicks Save. SAP calls USEREXIT_SAVE_DOCUMENT_PREPARE → do final checks. SAP calls USEREXIT_SAVE_DOCUMENT → write any custom data. Standard commit → sales [&#8230;]]]></description>
										<content:encoded><![CDATA[<ol>
<li>
<p>User enters Sales Order → goes to item screen.</p>
</li>
<li>
<p>User enters <strong>Material + Quantity</strong>.</p>
</li>
<li>
<p>SAP validates item → calls <strong><code>USEREXIT_CHECK_VBAP</code></strong>.</p>
<ul>
<li>
<p>Your enhancement runs.</p>
</li>
<li>
<p>If <code>xvbap-kwmeng &lt; 10</code>, show error/warning.</p>
</li>
<li>
<p>If OK → continue.</p>
</li>
</ul>
</li>
<li>
<p>User clicks <strong>Save</strong>.</p>
</li>
<li>
<p>SAP calls <code>USEREXIT_SAVE_DOCUMENT_PREPARE</code> → do final checks.</p>
</li>
<li>
<p>SAP calls <code>USEREXIT_SAVE_DOCUMENT</code> → write any custom data.</p>
</li>
<li>
<p>Standard commit → sales order saved in tables (VBAK, VBAP, VBEP, etc.).</p>
</li>
</ol>
<p>&nbsp;</p>
<p><!--StartFragment --><span><span>FORM </span>userexit_move_field_to_vbak<span>.</span></span></p>
<p>&nbsp;</p>
<p><!--StartFragment --><span><span>&#8220;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;$&#8221;$\SE:(4) Form USEREXIT_MOVE_FIELD_TO_VBAK, End                                                                                                             A</span><br /><span>*$*$-Start: (4)&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;$*$*</span><br /><span>ENHANCEMENT </span><span>1  </span>ZAUG_IMP_EN<span>.    </span><span>&#8220;active version</span><br /><span>*</span><br />  <span>if </span>sy<span>&#8211;</span>uname =&#8217;77USER67&#8242;<span>.</span><br />  <span>MESSAGE </span>&#8216;Enhancement trigger&#8217; <span>type </span>&#8216;I&#8217;<span>.</span><br />  <span>endif</span><span>.</span></p>
<p><span>ENDENHANCEMENT</span><span>.</span><br /><span>ENHANCEMENT </span><span>1  </span>ZSEP_IMP_ENH<span>.    </span><span>&#8220;active version</span></p>
<p><span>ENDENHANCEMENT</span><span>.</span><br /><span>*$*$-End:   (4)&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;$*$*</span><br /><span>ENDFORM</span><span>.</span></span></p>
<p>&nbsp;</p>
<p>once you implement this code logic in the explicit enhancement and try to do any create and modify operation you will get a message.</p>
<p><img decoding="async" class="content-img" src="https://www.sapewmhelp.com/wp-content/uploads/2025/09/en1.png" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sapewmhelp.com/question/user-exit-check-quantity-before-creating-and-modifying-the-sales-order/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
