<?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>lock object &#8211; SAP EWM Help</title>
	<atom:link href="https://www.sapewmhelp.com/question-tag/lock-object/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, 31 Jul 2025 15:19:34 +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>Concurrency Control: eTag ( Optimistic )</title>
		<link>https://www.sapewmhelp.com/question/concurrency-control-etag-optimistic/</link>
					<comments>https://www.sapewmhelp.com/question/concurrency-control-etag-optimistic/#respond</comments>
		
		<dc:creator><![CDATA[DPM125]]></dc:creator>
		<pubDate>Thu, 31 Jul 2025 15:19:34 +0000</pubDate>
				<guid isPermaLink="false">https://www.sapewmhelp.com/?question=concurrency-control-etag-optimistic</guid>

					<description><![CDATA[Concurrency in SAP RAP (RESTful ABAP Programming Model) refers to handling situations where multiple users try to modify the same data simultaneously — a classic case of the &#8220;lost update problem.&#8221; SAP RAP provides built-in mechanisms to ensure data consistency, conflict detection, and safe updates, especially in Fiori apps or other UI/front-end scenarios. We need [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>Concurrency </strong>in SAP RAP (RESTful ABAP Programming Model) refers to handling situations where multiple users try to modify the same data simultaneously — a classic case of the <em>&#8220;lost update problem.&#8221;</em></p>
<p>SAP RAP provides built-in mechanisms to ensure data consistency, conflict detection, and safe updates, especially in Fiori apps or other UI/front-end scenarios.</p>
<p>We need to add the fields like timestamp in the database table.</p>
<p>Book table &#8211;&gt;  changedat<br />
<img decoding="async" class="content-img" src="https://www.sapewmhelp.com/wp-content/uploads/2025/07/Etag-table.png" /></p>
<p>Then add the annotation in the CDS view Entity &#8211;&gt; interface</p>
<p><img decoding="async" class="content-img" src="https://www.sapewmhelp.com/wp-content/uploads/2025/07/etag-entity.png" /></p>
<p>Now add eTag in the Behavior Definition<br />
<img decoding="async" class="content-img" src="https://www.sapewmhelp.com/wp-content/uploads/2025/07/etag-bdef.png" /></p>
<p>And use the eTag in the Behavior projection</p>
<p><img decoding="async" class="content-img" src="https://www.sapewmhelp.com/wp-content/uploads/2025/07/etag-bdef-pr.png" /></p>
<p>Output : when 2 users try to modify the same data fields at same time.</p>
<p><img decoding="async" class="content-img" src="https://www.sapewmhelp.com/wp-content/uploads/2025/07/etag-output.png" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sapewmhelp.com/question/concurrency-control-etag-optimistic/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
