<?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>programs &#8211; SAP EWM Help</title>
	<atom:link href="https://www.sapewmhelp.com/question-tag/programs/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, 07 Aug 2025 07:31:12 +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 Programs in SAP ABAP</title>
		<link>https://www.sapewmhelp.com/question/types-of-programs-in-sap-abap/</link>
					<comments>https://www.sapewmhelp.com/question/types-of-programs-in-sap-abap/#respond</comments>
		
		<dc:creator><![CDATA[DPM125]]></dc:creator>
		<pubDate>Thu, 07 Aug 2025 07:30:32 +0000</pubDate>
				<guid isPermaLink="false">https://www.sapewmhelp.com/?question=types-of-programs-in-sap-abap</guid>

					<description><![CDATA[Program Type Code Purpose Executable? Typical Usage Executable 1 Reports, standalone programs ✅ Yes Reports, jobs, selection screens Include I Reusable code ❌ No Shared FORM routines, definitions Module Pool M Dialog screens, GUI transactions ✅ Yes Custom SAP GUI apps Function Grp F Group of function modules ❌ No BAPIs, reusable logic Subroutine S [&#8230;]]]></description>
										<content:encoded><![CDATA[<table>
<thead>
<tr>
<th>Program Type</th>
<th>Code</th>
<th>Purpose</th>
<th>Executable?</th>
<th>Typical Usage</th>
</tr>
</thead>
<tbody>
<tr>
<td>Executable</td>
<td><code>1</code></td>
<td>Reports, standalone programs</td>
<td>✅ Yes</td>
<td>Reports, jobs, selection screens</td>
</tr>
<tr>
<td>Include</td>
<td><code>I</code></td>
<td>Reusable code</td>
<td>❌ No</td>
<td>Shared FORM routines, definitions</td>
</tr>
<tr>
<td>Module Pool</td>
<td><code>M</code></td>
<td>Dialog screens, GUI transactions</td>
<td>✅ Yes</td>
<td>Custom SAP GUI apps</td>
</tr>
<tr>
<td>Function Grp</td>
<td><code>F</code></td>
<td>Group of function modules</td>
<td>❌ No</td>
<td>BAPIs, reusable logic</td>
</tr>
<tr>
<td>Subroutine</td>
<td><code>S</code></td>
<td>Collection of FORM routines</td>
<td>❌ No</td>
<td>Old-style code reuse</td>
</tr>
<tr>
<td>Class Pool</td>
<td><code>K</code></td>
<td>Global class definitions</td>
<td>❌ No</td>
<td>OO programming, utility classes</td>
</tr>
<tr>
<td>Interface</td>
<td><code>J</code></td>
<td>Global interface definitions</td>
<td>❌ No</td>
<td>Interface inheritance in OO classes</td>
</tr>
</tbody>
</table>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sapewmhelp.com/question/types-of-programs-in-sap-abap/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Includes in SAP ABAP</title>
		<link>https://www.sapewmhelp.com/question/includes-in-sap-abap/</link>
					<comments>https://www.sapewmhelp.com/question/includes-in-sap-abap/#respond</comments>
		
		<dc:creator><![CDATA[DPM125]]></dc:creator>
		<pubDate>Fri, 01 Aug 2025 13:50:52 +0000</pubDate>
				<guid isPermaLink="false">https://www.sapewmhelp.com/?question=includes-in-sap-abap</guid>

					<description><![CDATA[An include is a code fragment stored separately and inserted into a program using the INCLUDE statement. It&#8217;s mainly used to split a large program into manageable blocks.  When to use: To split large programs into smaller reusable blocks. Often used for reusable FORM routines or declarations. " Data decelarttion INCLUDE ZSHVIMA_12_1.   " zshivam_12_TOP. * *" declare screen element. " Zshivam_12_SCR. include zshivam_12_SCR. *" declare you subroutine  " ZSHIVAM_12_FRM. include zshivam_12_from. * [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>An <strong>include</strong> is a code fragment stored separately and inserted into a program using the INCLUDE statement. It&#8217;s mainly used to <strong>split a large program</strong> into manageable blocks.</p>
<h3><strong> When to use:</strong></h3>
<ul>
<li>To split large programs into smaller reusable blocks.</li>
<li>Often used for reusable FORM routines or declarations.</li>
</ul>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-python" data-lang="Python"><code><!--StartFragment --><span><span>" Data decelarttion</span>
<span>INCLUDE </span>ZSHVIMA_12_1<span>.   </span><span>" zshivam_12_TOP.</span>
<span>*</span>
<span>*" declare screen element. " Zshivam_12_SCR.</span>
<span>include </span>zshivam_12_SCR<span>.</span>


<span>*" declare you subroutine  " ZSHIVAM_12_FRM.</span>
<span>include </span>zshivam_12_from<span>.</span>
<span>*</span>

<span>*" in which report event we will be write or executing our logical code.</span>
<span>START-OF-SELECTION</span><span>.</span>
<span>" call subroutine</span>
  <span>perform </span>addition<span>.</span>

<span>" subtract numbers  -- reference</span>
  <span>PERFORM </span><span>subtract </span><span>using </span>p_num1 p_num2
                   <span>CHANGING </span>gv_total<span>.</span>

<span>" BODMAS</span>
    <span>perform </span>BODMAS<span>.</span></span> </code></pre>
<p>Include Program:</p>
<p>Subroutines in Include.</p>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-python" data-lang="Python"><code><!--StartFragment --><span><span>*&amp;---------------------------------------------------------------------*</span>
<span>*&amp;  Include           ZSHIVAM_12_FROM</span>
<span>*&amp;---------------------------------------------------------------------*</span>

<span>" subcroutine for addition.</span>
<span>Form </span>addition<span>.</span>
  gv_total <span>= </span>p_num1 + p_num2<span>.</span>
  <span>WRITE </span><span>: </span>gv_total<span>.</span>
<span>endform</span><span>.</span>


<span>*&amp;---------------------------------------------------------------------*</span>
<span>*&amp;      Form  SUBTRACT</span>
<span>*&amp;---------------------------------------------------------------------*</span>
<span>*       text</span>
<span>*----------------------------------------------------------------------*</span>
<span>*      --&gt;P_P_NUM1  text</span>
<span>*      --&gt;P_P_NUM2  text</span>
<span>*      &lt;--P_LV_TOTAL  text</span>
<span>*----------------------------------------------------------------------*</span>
<span>FORM </span><span>subtract  </span><span>USING    </span>p_num1
                        p_num2
               <span>CHANGING </span>p_lv_total<span>.</span>

  p_lv_total <span>= </span>p_num1 <span>- </span>p_num2<span>.</span>

  <span>WRITE </span><span>: </span>p_lv_total<span>.</span>
<span>ENDFORM</span><span>.</span>


  <span>" block design --&gt; readable</span>
<span>*&amp;---------------------------------------------------------------------*</span>
<span>*&amp;      Form  BODMAS</span>
<span>*&amp;---------------------------------------------------------------------*</span>
<span>*       text</span>
<span>*----------------------------------------------------------------------*</span>
<span>*  --&gt;  p1        text</span>
<span>*  &lt;--  p2        text</span>
<span>*----------------------------------------------------------------------*</span>
<span>FORM </span>bodmas <span>.</span>
  <span>perform </span>addition<span>.</span>
  <span>PERFORM </span><span>subtract </span><span>using </span>p_num1 p_num2 <span>CHANGING </span>gv_subtract<span>.</span>
  gv_mul <span>= </span>p_num1 * p_num2<span>.</span>
  <span>WRITE </span>gv_mul<span>.</span>
<span>ENDFORM</span><span>.</span></span> </code></pre>
<p>Selection Screen in Include Program.</p>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-python" data-lang="Python"><code><!--StartFragment --><span><span>*&amp;---------------------------------------------------------------------*</span>
<span>*&amp;  Include           ZSHIVAM_12_SCR</span>
<span>*&amp;---------------------------------------------------------------------*</span>


<span>PARAMETERS </span><span>: </span>p_num1 <span>type </span><span>i</span><span>,</span>
             p_num2 <span>type </span><span>i</span><span>.</span></span> </code></pre>
<p>Data Declaration in Include Program</p>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-python" data-lang="Python"><code><!--StartFragment --><span><span>*&amp;---------------------------------------------------------------------*</span>
<span>*&amp;  Include           ZSHVIMA_12_1</span>
<span>*&amp;---------------------------------------------------------------------*</span>


<span>DATA </span><span>: </span>gv_total <span>TYPE </span><span>i</span><span>,</span>
       gv_subtract <span>TYPE </span><span>i</span><span>,</span>
       gv_mul <span>TYPE </span><span>i</span><span>.</span></span> </code></pre>
<p>Output:<br />
<img decoding="async" class="content-img" src="https://www.sapewmhelp.com/wp-content/uploads/2025/08/include1.png" /><br />
<img decoding="async" class="content-img" src="https://www.sapewmhelp.com/wp-content/uploads/2025/08/include2.png" /></p>
</div>
</div>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sapewmhelp.com/question/includes-in-sap-abap/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
