<?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>update fm &#8211; SAP EWM Help</title>
	<atom:link href="https://www.sapewmhelp.com/question-tag/update-fm/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>Sun, 24 Aug 2025 11:16:26 +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>What is an Update Function Module?</title>
		<link>https://www.sapewmhelp.com/question/what-is-an-update-function-module/</link>
					<comments>https://www.sapewmhelp.com/question/what-is-an-update-function-module/#respond</comments>
		
		<dc:creator><![CDATA[DPM125]]></dc:creator>
		<pubDate>Sun, 24 Aug 2025 11:16:26 +0000</pubDate>
				<guid isPermaLink="false">https://www.sapewmhelp.com/?question=what-is-an-update-function-module</guid>

					<description><![CDATA[An Update Function Module is a special type of function module that executes update tasks (like DB changes, inserts, updates, deletes) asynchronously, after a COMMIT WORK. They are processed in update work processes (type UPD or UP2) instead of dialog work processes. Declared in SE37 with attribute &#8220;Update Module&#8221;.  Example: CALL FUNCTION 'Z_UPDATE_SALES_ORDER' IN UPDATE [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>An <strong>Update Function Module</strong> is a special type of function module that executes <strong>update tasks</strong> (like DB changes, inserts, updates, deletes) <strong>asynchronously</strong>, after a <code>COMMIT WORK</code>.</p>
<p>They are processed in <strong>update work processes</strong> (type <strong>UPD</strong> or <strong>UP2</strong>) instead of dialog work processes.</p>
<p>Declared in SE37 with attribute <strong>&#8220;Update Module&#8221;</strong>.</p>
<p> Example: <code>CALL FUNCTION 'Z_UPDATE_SALES_ORDER' IN UPDATE TASK</code>.</p>
</p>
<h5>Types of Update Function Modules</h5>
<p>There are <strong>two types</strong> of update function modules:</p>
<h3 data-start="666" data-end="703">1. <strong>V1 Update Function Modules</strong></h3>
<ul>
<li>
<p><strong>High-priority, synchronous updates</strong>.</p>
</li>
<li>
<p>Executed <strong>immediately after COMMIT WORK</strong> and must finish successfully.</p>
</li>
<li>
<p>Used for <strong>critical database updates</strong> (e.g., FI document posting, material stock changes).</p>
</li>
<li>
<p>If a V1 update fails → the LUW (Logical Unit of Work) is rolled back.</p>
</li>
<li>
<p>Processed in the <strong>V1 Update work process</strong>.</p>
</li>
</ul>
<h3 data-start="1048" data-end="1085">2. <strong>V2 Update Function Modules</strong></h3>
<ul>
<li>
<p><strong>Lower priority updates</strong>, executed <strong>after V1 updates</strong>.</p>
</li>
<li>
<p>Used for <strong>non-critical, statistical, or secondary updates</strong> (e.g., updating info structures, statistics, LIS, BW extraction).</p>
</li>
<li>
<p>If a V2 update fails → does <strong>not rollback V1 updates</strong>.</p>
</li>
<li>
<p>Processed in the <strong>V2 Update work process</strong>.</p>
</li>
</ul>
<p>&nbsp;</p>
<p><strong>Example :</strong></p>
<p>CALL FUNCTION &#8216;Z_UPDATE_MARA&#8217;<br />IN UPDATE TASK<br />EXPORTING matnr = &#8216;MAT001&#8217;.</p>
<p>COMMIT WORK. &#8221; &#8211;&gt; Triggers update task</p>
<p>&nbsp;</p>
<ul>
<li>
<p>If <code>Z_UPDATE_MARA</code> is defined as <strong>V1 update</strong> → executed immediately after commit in update work process.</p>
</li>
<li>
<p>If defined as <strong>V2 update</strong> → executed later, after all V1 updates.</p>
</li>
</ul>
<p>Summary :</p>
<table>
<thead>
<tr>
<th>Type</th>
<th>Priority</th>
<th>Rollback Effect</th>
<th>Usage</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>V1</strong></td>
<td>High</td>
<td>Rollback of LUW if fails</td>
<td>Critical DB changes (FI, MM, SD)</td>
</tr>
<tr>
<td><strong>V2</strong></td>
<td>Low</td>
<td>No rollback of V1 if fails</td>
<td>Statistics, logs, reporting updates</td>
</tr>
</tbody>
</table>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sapewmhelp.com/question/what-is-an-update-function-module/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
