<?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>alv &#8211; SAP EWM Help</title>
	<atom:link href="https://www.sapewmhelp.com/question-tag/alv/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 10:46: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>What is ALV Block List?</title>
		<link>https://www.sapewmhelp.com/question/what-is-alv-block-list/</link>
					<comments>https://www.sapewmhelp.com/question/what-is-alv-block-list/#respond</comments>
		
		<dc:creator><![CDATA[DPM125]]></dc:creator>
		<pubDate>Sun, 24 Aug 2025 10:46:39 +0000</pubDate>
				<guid isPermaLink="false">https://www.sapewmhelp.com/?question=what-is-alv-block-list</guid>

					<description><![CDATA[ALV (ABAP List Viewer) is used to display reports in a structured, interactive way. A Block List means you display multiple ALV lists one below another in the same output. Example: You want to show MARA (Material Master general data) and then, beneath it, MARC (Plant-specific data) in the same report. This is done using [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li>
<p><strong>ALV (ABAP List Viewer)</strong> is used to display reports in a structured, interactive way.</p>
</li>
<li>
<p>A <strong>Block List</strong> means you display <strong>multiple ALV lists one below another</strong> in the same output.</p>
</li>
<li>
<p>Example: You want to show <code>MARA</code> (Material Master general data) and then, beneath it, <code>MARC</code> (Plant-specific data) in the same report.</p>
</li>
<li>
<p>This is done using the <strong><code>REUSE_ALV_BLOCK_LIST_*</code> function modules</strong>.</p>
</li>
</ul>
<h5>Steps to Create ALV Block List</h5>
<ol>
<li>
<p>Initialize block list → <code>REUSE_ALV_BLOCK_LIST_INIT</code>.</p>
</li>
<li>
<p>Add multiple reports (MARA, MARC, etc.) → <code>REUSE_ALV_BLOCK_LIST_APPEND</code>.</p>
</li>
<li>
<p>Display → <code>REUSE_ALV_BLOCK_LIST_DISPLAY</code>.</p>
</li>
</ol>
<p>&nbsp;</p>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-css" data-lang="CSS"><code><!--StartFragment --><span><span>*&amp;---------------------------------------------------------------------*</span>
<span>*&amp; Report  ZTEST_PROGRAM_2</span>
<span>*&amp;</span>
<span>*&amp;---------------------------------------------------------------------*</span>
<span>*&amp;</span>
<span>*&amp;</span>
<span>*&amp;---------------------------------------------------------------------*</span>

<span>REPORT </span>ztest_program_2<span>.</span>

<span>TYPE-POOLS</span><span>: </span>slis<span>.</span>

<span>DATA</span><span>: </span>it_mara <span>TYPE </span><span>TABLE </span><span>OF </span>mara<span>,</span>
      it_marc <span>TYPE </span><span>TABLE </span><span>OF </span>marc<span>.</span>

<span>DATA</span><span>: </span>it_fieldcat <span>TYPE </span>slis_t_fieldcat_alv<span>,</span>
      wa_fieldcat <span>TYPE </span>slis_fieldcat_alv<span>.</span>

<span>DATA </span><span>: </span>lt_events <span>TYPE </span>slis_t_event<span>.</span>


<span>"--- Main processing</span>

<span>START-OF-SELECTION</span><span>.</span>

  <span>"--- Fetch Data</span>
  <span>SELECT </span>* <span>FROM </span>mara <span>UP </span><span>TO </span><span>20 </span><span>ROWS </span><span>INTO </span><span>TABLE </span>it_mara<span>.</span>
  <span>SELECT </span>* <span>FROM </span>marc <span>UP </span><span>TO </span><span>20 </span><span>ROWS </span><span>INTO </span><span>TABLE </span>it_marc<span>.</span>

  <span>"Initialize ALV Block List</span>
  <span>CALL </span><span>FUNCTION </span>'REUSE_ALV_BLOCK_LIST_INIT'
    <span>EXPORTING</span>
      i_callback_program <span>= </span>sy<span>-</span>repid<span>.</span>

  <span>"Prepare field catalog for MARA</span>
  <span>PERFORM </span>build_fieldcat <span>USING </span>'MARA' it_fieldcat<span>.</span>

  <span>"Append MARA list</span>
  <span>CALL </span><span>FUNCTION </span>'REUSE_ALV_BLOCK_LIST_APPEND'
    <span>EXPORTING</span>
      is_layout   <span>= </span><span>VALUE </span>slis_layout_alv<span>( </span>colwidth_optimize <span>= </span>'X' <span>)</span>
      it_fieldcat <span>= </span>it_fieldcat
      it_events   <span>= </span>lt_events
      i_tabname   <span>= </span>'MARA'
      i_text     <span>= </span>'Material Master <span>- </span>MARA'
    <span>TABLES</span>
      t_outtab    <span>= </span>it_mara<span>.</span>


  <span>CLEAR </span>it_fieldcat<span>.</span>

  <span>"Prepare field catalog for MARC</span>
  <span>PERFORM </span>build_fieldcat <span>USING </span>'MARC' it_fieldcat<span>.</span>

  <span>"Append MARC list</span>
  <span>CALL </span><span>FUNCTION </span>'REUSE_ALV_BLOCK_LIST_APPEND'
    <span>EXPORTING</span>
      is_layout   <span>= </span><span>VALUE </span>slis_layout_alv<span>( </span>colwidth_optimize <span>= </span>'X' <span>)</span>
      it_fieldcat <span>= </span>it_fieldcat
      i_tabname   <span>= </span>'MARC'
      i_text     <span>= </span>'Plant <span>Data </span><span>- </span>MARC'
      it_events   <span>= </span>lt_events
    <span>TABLES</span>
      t_outtab    <span>= </span>it_marc<span>.</span>

  <span>"Display ALV Block List</span>
  <span>CALL </span><span>FUNCTION </span>'REUSE_ALV_BLOCK_LIST_DISPLAY'<span>.</span>



  <span>"--- Create field catalog helper form</span>
<span>FORM </span>build_fieldcat <span>USING </span>p_table <span>TYPE </span>string
                          p_fieldcat <span>TYPE </span>slis_t_fieldcat_alv<span>.</span>

  <span>DATA </span>ls_fcat <span>TYPE </span>slis_fieldcat_alv<span>.</span>
  <span>CLEAR </span>ls_fcat<span>.</span>

  <span>IF </span>p_table <span>= </span>'MARA'<span>.</span>
    ls_fcat<span>-</span>fieldname <span>= </span>'MATNR'<span>. </span>ls_fcat<span>-</span>seltext_m <span>= </span>'Material'<span>. </span><span>APPEND </span>ls_fcat <span>TO </span>p_fieldcat<span>.</span>
    ls_fcat<span>-</span>fieldname <span>= </span>'MTART'<span>. </span>ls_fcat<span>-</span>seltext_m <span>= </span>'Material Type'<span>. </span><span>APPEND </span>ls_fcat <span>TO </span>p_fieldcat<span>.</span>
    ls_fcat<span>-</span>fieldname <span>= </span>'MBRSH'<span>. </span>ls_fcat<span>-</span>seltext_m <span>= </span>'Industry'<span>. </span><span>APPEND </span>ls_fcat <span>TO </span>p_fieldcat<span>.</span>
  <span>ELSEIF </span>p_table <span>= </span>'MARC'<span>.</span>
    ls_fcat<span>-</span>fieldname <span>= </span>'MATNR'<span>. </span>ls_fcat<span>-</span>seltext_m <span>= </span>'Material'<span>. </span><span>APPEND </span>ls_fcat <span>TO </span>p_fieldcat<span>.</span>
    ls_fcat<span>-</span>fieldname <span>= </span>'WERKS'<span>. </span>ls_fcat<span>-</span>seltext_m <span>= </span>'Plant'<span>. </span><span>APPEND </span>ls_fcat <span>TO </span>p_fieldcat<span>.</span>
    ls_fcat<span>-</span>fieldname <span>= </span>'DISMM'<span>. </span>ls_fcat<span>-</span>seltext_m <span>= </span>'MRP Type'<span>. </span><span>APPEND </span>ls_fcat <span>TO </span>p_fieldcat<span>.</span>
  <span>ENDIF</span><span>.</span>

<span>ENDFORM</span><span>.</span></span> </code></pre>
<p>Output:</p>
<p><img decoding="async" class="content-img" src="https://www.sapewmhelp.com/wp-content/uploads/2025/08/b1.png" /></p>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sapewmhelp.com/question/what-is-alv-block-list/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Types of Reports in SAP ABAP</title>
		<link>https://www.sapewmhelp.com/question/types-of-reports-in-sap-abap/</link>
					<comments>https://www.sapewmhelp.com/question/types-of-reports-in-sap-abap/#respond</comments>
		
		<dc:creator><![CDATA[DPM125]]></dc:creator>
		<pubDate>Sun, 03 Aug 2025 06:59:20 +0000</pubDate>
				<guid isPermaLink="false">https://www.sapewmhelp.com/?question=types-of-reports-in-sap-abap</guid>

					<description><![CDATA[Reports are a major part of application development used to display data to users. There are three main types of reports: Classical Reports Simplest and most basic report type. Output is in line-by-line format using WRITE statements. Limited formatting, but supports interactive features like AT LINE-SELECTION. Used for: Simple lists, master data overviews, basic reporting. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Reports are a major part of application development used to display data to users. There are three main types of reports:</p>
<h3 data-start="186" data-end="215"><strong>Classical Reports</strong></h3>
<ul>
<li>Simplest and most basic report type.</li>
<li>Output is in line-by-line format using <code>WRITE</code> statements.</li>
<li>Limited formatting, but supports interactive features like <code>AT LINE-SELECTION</code>.</li>
</ul>
<p><strong>Used for:</strong> Simple lists, master data overviews, basic reporting.</p>
<h3 data-start="625" data-end="656"><strong>Interactive Reports</strong></h3>
<ul>
<li>Extension of classical reports.</li>
<li>Allows drill-down capability: click on a row to see detailed data (secondary list).</li>
<li>Can have up to 20 secondary lists.</li>
</ul>
<p><strong>Used for:</strong> Master-detail views, like viewing sales orders from a list of customers.</p>
<p> <em>Key event:</em> <code>AT LINE-SELECTION</code></p>
<h3 data-start="1080" data-end="1122"><strong>ALV Reports (ABAP List Viewer)</strong></h3>
<ul>
<li>Provides a powerful, flexible, and interactive table display.</li>
<li>Includes sorting, filtering, exporting, column formatting, etc.</li>
<li>Can be simple ALV, ALV Grid, or ALV with OO (Object-Oriented) approach.</li>
</ul>
<p><strong>Used for:</strong> Complex and user-friendly reporting.</p>
<p><em>Main function modules/classes:</em></p>
<ul>
<li><code>REUSE_ALV_GRID_DISPLAY</code></li>
<li><code>CL_GUI_ALV_GRID</code></li>
<li><code>CL_SALV_TABLE</code> (for OO ALV)</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sapewmhelp.com/question/types-of-reports-in-sap-abap/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
