<?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>interactive report &#8211; SAP EWM Help</title>
	<atom:link href="https://www.sapewmhelp.com/question-tag/interactive-report/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:01:13 +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 Interactive Report?</title>
		<link>https://www.sapewmhelp.com/question/what-is-an-interactive-report/</link>
					<comments>https://www.sapewmhelp.com/question/what-is-an-interactive-report/#respond</comments>
		
		<dc:creator><![CDATA[DPM125]]></dc:creator>
		<pubDate>Sun, 24 Aug 2025 11:01:13 +0000</pubDate>
				<guid isPermaLink="false">https://www.sapewmhelp.com/?question=what-is-an-interactive-report</guid>

					<description><![CDATA[An Interactive Report in ABAP is a report that lets users interact with the list (usually by clicking on a line or hotspot). When the user clicks, the program reacts to the event and shows secondary details (like drilling down). Classic mechanism: Events AT LINE-SELECTION, AT USER-COMMAND, AT PFx. Example Scenario (using MARA → MARC) [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>An Interactive Report in ABAP is a report that lets users interact with the list (usually by clicking on a line or hotspot).</p>
<p>When the user clicks, the program reacts to the event and shows secondary details (like drilling down).</p>
<p>Classic mechanism: Events AT LINE-SELECTION, AT USER-COMMAND, AT PFx.</p>
<h5>Example Scenario (using <code>MARA</code> → <code>MARC</code>)</h5>
<ol>
<li>Basic list (Level 1): Show materials (<code>MARA</code>).</li>
<li>Secondary list (Level 2): When user clicks on a material, show its plant-specific details (<code>MARC</code>).</li>
</ol>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-html" data-lang="HTML"><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>TABLES</span><span>: </span>mara<span>, </span>marc<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>"--- Fetch data</span>
<span>SELECT </span>matnr mtart <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>"--- Event: START-OF-SELECTION -&gt; Display Basic List</span>
<span>START-OF-SELECTION</span><span>.</span>
  <span>WRITE</span><span>: </span>/ 'Material <span>No</span><span>.</span>'<span>, </span><span>15 </span>'Material Type'<span>.</span>
  <span>ULINE</span><span>.</span>

  <span>LOOP </span><span>AT </span>it_mara <span>INTO </span><span>DATA</span><span>(</span>wa_mara<span>)</span><span>.</span>
    <span>WRITE</span><span>: </span>/ wa_mara<span>-</span>matnr<span>, </span><span>15 </span>wa_mara<span>-</span>mtart<span>.</span>
    <span>HIDE </span>wa_mara<span>-</span>matnr<span>. </span><span>"Hide material no for later use</span>
  <span>ENDLOOP</span><span>.</span>

<span>"--- Event: AT LINE-SELECTION -&gt; Drill down to details</span>
<span>AT </span><span>LINE-SELECTION</span><span>.</span>
  <span>CLEAR </span>it_marc<span>.</span>

  <span>SELECT </span>matnr werks dismm
    <span>FROM </span>marc
    <span>INTO </span><span>TABLE </span>it_marc
    <span>WHERE </span>matnr <span>= </span>sy<span>-</span>lisel+0<span>(</span><span>18</span><span>)</span><span>. </span><span>" Material from selected line</span>

  <span>IF </span>sy<span>-</span>subrc <span>= </span><span>0</span><span>.</span>
    <span>NEW-PAGE</span><span>.</span>
    <span>WRITE</span><span>: </span>/ 'Material<span>:</span>'<span>, </span>sy<span>-</span>lisel+0<span>(</span><span>18</span><span>)</span><span>.</span>
    <span>ULINE</span><span>.</span>
    <span>WRITE</span><span>: </span>/ 'Plant'<span>, </span><span>15 </span>'MRP Type'<span>.</span>
    <span>ULINE</span><span>.</span>

    <span>LOOP </span><span>AT </span>it_marc <span>INTO </span><span>DATA</span><span>(</span>wa_marc<span>)</span><span>.</span>
      <span>WRITE</span><span>: </span>/ wa_marc<span>-</span>werks<span>, </span><span>15 </span>wa_marc<span>-</span>dismm<span>.</span>
    <span>ENDLOOP</span><span>.</span>
  <span>ELSE</span><span>.</span>
    <span>MESSAGE </span>'No plant <span>data </span>found <span>for </span>this material' <span>TYPE </span>'I'<span>.</span>
  <span>ENDIF</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/i1.png" /></p>
<p><img decoding="async" class="content-img" src="https://www.sapewmhelp.com/wp-content/uploads/2025/08/i2.png" /></p>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sapewmhelp.com/question/what-is-an-interactive-report/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
