<?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>fm &#8211; SAP EWM Help</title>
	<atom:link href="https://www.sapewmhelp.com/question-tag/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:13:39 +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>Types of RFC Function Modules</title>
		<link>https://www.sapewmhelp.com/question/types-of-rfc-function-modules/</link>
					<comments>https://www.sapewmhelp.com/question/types-of-rfc-function-modules/#respond</comments>
		
		<dc:creator><![CDATA[DPM125]]></dc:creator>
		<pubDate>Sun, 24 Aug 2025 11:13:39 +0000</pubDate>
				<guid isPermaLink="false">https://www.sapewmhelp.com/?question=types-of-rfc-function-modules</guid>

					<description><![CDATA[Synchronous RFC (sRFC) Default type when you call a function module via RFC. The caller program waits until the remote system has completed the function execution and returned the result. Example use: Real-time data retrieval (e.g., fetching stock from another SAP system). FM execution: CALL FUNCTION 'XYZ' DESTINATION 'SAP_R3'. 2. Asynchronous RFC (aRFC) Execution is [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>Synchronous RFC (sRFC)</strong></p>
<ul>
<li>
<p><strong>Default type</strong> when you call a function module via RFC.</p>
</li>
<li>
<p>The caller program waits until the remote system has completed the function execution and returned the result.</p>
</li>
<li>
<p><strong>Example use:</strong> Real-time data retrieval (e.g., fetching stock from another SAP system).</p>
</li>
<li>
<p><strong>FM execution:</strong> <code>CALL FUNCTION 'XYZ' DESTINATION 'SAP_R3'</code>.</p>
<p></p>
</li>
</ul>
<p><strong>2. Asynchronous RFC (aRFC)</strong></p>
<ul>
<li>
<p>Execution is <strong>non-blocking</strong> → Caller does not wait for immediate results.</p>
</li>
<li>
<p>You can trigger parallel processing by calling multiple aRFCs at the same time.</p>
</li>
<li>
<p><strong>Example use:</strong> Mass data processing, parallelizing jobs.</p>
</li>
<li>
<p><strong>FM execution:</strong></p>
</li>
</ul>
<p>CALL FUNCTION &#8216;XYZ&#8217; STARTING NEW TASK &#8216;TASKNAME&#8217;<br />DESTINATION &#8216;SAP_R3&#8217;<br />PERFORMING callback_form ON END OF TASK.</p>
<p>&nbsp;</p>
<p><strong>3. Transactional RFC (tRFC)</strong></p>
<ul>
<li>
<p>Similar to aRFC, but with <strong>transactional reliability</strong>.</p>
</li>
<li>
<p>Each call is executed <strong>exactly once</strong> in the target system (using LUWs – Logical Units of Work).</p>
</li>
<li>
<p>Stored in <strong>SM58</strong> until delivered successfully.</p>
</li>
<li>
<p><strong>Example use:</strong> Posting documents, ALE/IDoc communication.</p>
</li>
<li>
<p><strong>FM execution:</strong></p>
</li>
</ul>
<p>CALL FUNCTION &#8216;XYZ&#8217; IN BACKGROUND TASK<br />DESTINATION &#8216;SAP_R3&#8217;.<br />COMMIT WORK.</p>
<p></p>
<p><strong>4. Queued RFC (qRFC)</strong></p>
<ul>
<li>
<p>Extension of tRFC, but ensures <strong>sequence/order of execution</strong> using queues.</p>
</li>
<li>
<p>Uses <strong>inbound and outbound queues</strong> (transactions <strong>SMQ1/SMQ2</strong>).</p>
</li>
<li>
<p><strong>Example use:</strong> When sequence matters (e.g., stock transfer must happen before goods issue).</p>
</li>
<li>
<p><strong>FM execution:</strong> Similar to tRFC, but with queue configuration.</p>
</li>
</ul>
<p>&nbsp;</p>
<p>Summary :</p>
<table>
<thead>
<tr>
<th>Type</th>
<th>Waits for Response?</th>
<th>Reliability</th>
<th>Order Guaranteed?</th>
<th>Use Case</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>sRFC</strong></td>
<td>Yes</td>
<td>Once</td>
<td>No</td>
<td>Real-time queries</td>
</tr>
<tr>
<td><strong>aRFC</strong></td>
<td>No</td>
<td>Once</td>
<td>No</td>
<td>Parallel processing</td>
</tr>
<tr>
<td><strong>tRFC</strong></td>
<td>No</td>
<td>Exactly Once</td>
<td>No</td>
<td>Data transfer, ALE/IDoc</td>
</tr>
<tr>
<td><strong>qRFC</strong></td>
<td>No</td>
<td>Exactly Once</td>
<td>Yes</td>
<td>Sequential processing</td>
</tr>
</tbody>
</table>
<p>So, depending on your scenario:</p>
<ul>
<li>
<p>Use <strong>sRFC</strong> for synchronous real-time calls.</p>
</li>
<li>
<p>Use <strong>aRFC</strong> for parallel jobs.</p>
</li>
<li>
<p>Use <strong>tRFC</strong> for reliable background communication.</p>
</li>
<li>
<p>Use <strong>qRFC</strong> when sequence matters.</p>
</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sapewmhelp.com/question/types-of-rfc-function-modules/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>FM for Help Request</title>
		<link>https://www.sapewmhelp.com/question/fm-for-help-request/</link>
					<comments>https://www.sapewmhelp.com/question/fm-for-help-request/#respond</comments>
		
		<dc:creator><![CDATA[DPM125]]></dc:creator>
		<pubDate>Wed, 30 Jul 2025 12:29:27 +0000</pubDate>
				<guid isPermaLink="false">https://www.sapewmhelp.com/?question=fm-for-help-request</guid>

					<description><![CDATA[Help Request (triggered by F1 key) provides field-level documentation to help users understand the purpose or use of a field. Types of Help Request: Automatic Help (F1) from Data Element Comes from documentation maintained in the data element. No coding needed — just maintain the documentation in SE11. Custom Help Request (Manual) In module pool [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>Help Request</strong> (triggered by F1 key) provides <strong>field-level documentation</strong> to help users understand the purpose or use of a field.</p>
<h3 data-start="246" data-end="275">Types of Help Request:</h3>
<ol>
<li>
<p><strong>Automatic Help (F1) from Data Element</strong></p>
<ul>
<li>
<p>Comes from documentation maintained in the <strong>data element</strong>.</p>
</li>
<li>
<p>No coding needed — just maintain the documentation in SE11.</p>
</li>
</ul>
</li>
<li>
<p><strong>Custom Help Request (Manual)</strong></p>
<ul>
<li>
<p>In module pool programs, you can write custom F1 help logic using <code>PROCESS ON HELP-REQUEST</code>.</p>
</li>
</ul>
</li>
</ol>
<p>Code :</p>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-python" data-lang="Python"><code><!--StartFragment --><span><span>*&amp;---------------------------------------------------------------------*</span>
<span>*&amp;---------------------------------------------------------------------*</span>
<span>*&amp; Report ZPRG_TEST</span>
<span>*&amp;---------------------------------------------------------------------*</span>

<span>REPORT </span>zprg_test_ecc<span>.</span>

<span>DATA </span><span>:  </span>it_help <span>TYPE </span><span>STANDARD </span><span>TABLE </span><span>OF </span>helpval <span>WITH </span><span>HEADER </span><span>LINE</span><span>.</span>

<span>PARAMETERS </span><span>: </span>s_id <span>TYPE </span>ZAR_STUDENT_ID<span>.</span>

<span>AT </span><span>SELECTION-SCREEN </span><span>ON </span>s_id<span>.</span>
  <span>SELECT </span><span>SINGLE </span>student_id <span>FROM </span>zar_student_data <span>INTO </span>@DATA<span>(</span><span>id</span><span>)</span><span>.</span>
  <span>IF </span><span>id </span><span>IS </span><span>INITIAL</span><span>.</span>
    <span>MESSAGE </span><span>'Student ID not found' </span><span>TYPE </span><span>'E'</span><span>.</span>
  <span>ENDIF</span><span>.</span>

<span>AT </span><span>SELECTION-SCREEN </span><span>ON </span><span>HELP-REQUEST </span><span>FOR </span>s_id<span>.</span>
  <span>CLEAR </span>it_help[]<span>.</span>

  it_help<span>-</span>tabname <span>= </span><span>'bkid'</span><span>.</span>
  it_help<span>-</span>fieldname <span>= </span><span>'Student_ID'</span><span>.</span>
  it_help<span>-</span>keyword <span>= </span><span>'Description'</span><span>.</span>
  it_help<span>-</span>length <span>= </span><span>150</span><span>.</span>
  it_help<span>-</span><span>value </span><span>= </span><span>'Enter a student id or refer table ZAR_STUDENT_DATA to find student id'</span><span>.</span>

  <span>APPEND </span>it_help<span>.</span>

  <span>CALL </span><span>FUNCTION </span><span>'HELP_GET_VALUES'</span>
    <span>EXPORTING</span>
      popup_title <span>= </span><span>'About s-id'</span>
    <span>TABLES</span>
      <span>fields      </span><span>= </span>it_help
    <span>EXCEPTIONS</span>
      no_entries  <span>= </span><span>1</span>
      <span>OTHERS      </span><span>= </span><span>2</span><span>.</span>

  <span>IF </span>sy<span>-</span>subrc &lt;&gt; <span>0</span><span>.</span>
<span>* Implement suitable error handling here</span>
  <span>ENDIF</span><span>.</span>

<span>START-OF-SELECTION</span><span>.</span>

  <span>SELECT </span>* <span>FROM </span>zar_student_data <span>INTO </span><span>TABLE </span>@DATA<span>(</span>lc_it_zlib<span>) </span><span>WHERE </span>STUDENT_ID <span>= </span>@s_id<span>.</span>

  <span>LOOP </span><span>AT </span>lc_it_zlib <span>INTO </span><span>DATA</span><span>(</span>wa_zlib<span>)</span><span>.</span>
    <span>WRITE </span><span>(</span><span>22</span><span>) </span><span>: </span>wa_zlib<span>-</span>student_id<span>, </span>wa_zlib<span>-</span>student_fname<span>.</span>
    <span>SKIP</span><span>.</span>
  <span>ENDLOOP</span><span>.</span></span> 
</code></pre>
<p>Output :<br />
Execute and Press F1.<br />
<img decoding="async" class="content-img" src="https://www.sapewmhelp.com/wp-content/uploads/2025/07/help-req.png" /></p>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sapewmhelp.com/question/fm-for-help-request/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
