<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Difference between SELECT Statement in MPP and Report Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-statement-in-mpp-and-report-program/m-p/10553785#M1857386</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Being new to abap I am pondering over the difference in SELECT statement in MPP and Report Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using SELECT Statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM Ztable where A1 = wa_itab-A1 AND A2 = wa_itab-A2 AND K1 = wa_itab-K1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 4.&lt;/P&gt;&lt;P&gt;----------------------&lt;/P&gt;&lt;P&gt;.................&lt;/P&gt;&lt;P&gt;................&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In MPP the above syntax works but why doesn't the above statement works in Report Program. I get errors like.&lt;/P&gt;&lt;P&gt;" A target area must be defined either explicitly with INTO clause or implicitly with a TABLES statement."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purpose: The purpose of the above syntax in MPP and Report Progg is to do a check if the data of itab exists in DB table: Ztable or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cab any1 help in understaing the difference in use of SELECT in MPP and in Repost Progg and Why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chandan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jul 2014 10:47:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-07-28T10:47:57Z</dc:date>
    <item>
      <title>Difference between SELECT Statement in MPP and Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-statement-in-mpp-and-report-program/m-p/10553785#M1857386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Being new to abap I am pondering over the difference in SELECT statement in MPP and Report Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using SELECT Statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM Ztable where A1 = wa_itab-A1 AND A2 = wa_itab-A2 AND K1 = wa_itab-K1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 4.&lt;/P&gt;&lt;P&gt;----------------------&lt;/P&gt;&lt;P&gt;.................&lt;/P&gt;&lt;P&gt;................&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In MPP the above syntax works but why doesn't the above statement works in Report Program. I get errors like.&lt;/P&gt;&lt;P&gt;" A target area must be defined either explicitly with INTO clause or implicitly with a TABLES statement."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purpose: The purpose of the above syntax in MPP and Report Progg is to do a check if the data of itab exists in DB table: Ztable or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cab any1 help in understaing the difference in use of SELECT in MPP and in Repost Progg and Why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chandan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 10:47:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-statement-in-mpp-and-report-program/m-p/10553785#M1857386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-28T10:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between SELECT Statement in MPP and Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-statement-in-mpp-and-report-program/m-p/10553786#M1857387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mr. Chandan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM Ztable where A1 = wa_itab-A1 AND A2 = wa_itab-A2 AND K1 = wa_itab-K1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this one you should define ZTABLE i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;laxman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 10:58:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-statement-in-mpp-and-report-program/m-p/10553786#M1857387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-28T10:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between SELECT Statement in MPP and Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-statement-in-mpp-and-report-program/m-p/10553787#M1857388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandan, &lt;/P&gt;&lt;P&gt; As per my understanding, if we are using select statement, the data is fetched from database and we will store the value in some variable which is fetched. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Read statement, it is not necessary, we can use 'TRANSPORTING NO FIELDS'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it is required to mention the INTO &amp;lt;variable_name&amp;gt; in select statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Data Declarations&lt;/P&gt;&lt;P&gt;data: wa_ztable type ztable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;SELECT SINGLE * FROM Ztable &lt;STRONG&gt;into ztable&lt;/STRONG&gt; where A1 = wa_itab-A1 AND A2 = wa_itab-A2 AND K1 = wa_itab-K1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do correct me, if i am wrong. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajkumar Narasimman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 11:04:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-statement-in-mpp-and-report-program/m-p/10553787#M1857388</guid>
      <dc:creator>rajkumarnarasimman</dc:creator>
      <dc:date>2014-07-28T11:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between SELECT Statement in MPP and Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-statement-in-mpp-and-report-program/m-p/10553788#M1857389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mr. Rajkumar..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are correct..But you can write like below also..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: Ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;SELECT SINGLE * FROM Ztable &lt;STRONG&gt;into ztable&lt;/STRONG&gt; where A1 = wa_itab-A1 AND A2 = wa_itab-A2 AND K1 = wa_itab-K1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Here ztable works like work area, in ZTABLE you wil have one record.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;laxman&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 11:08:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-statement-in-mpp-and-report-program/m-p/10553788#M1857389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-28T11:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between SELECT Statement in MPP and Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-statement-in-mpp-and-report-program/m-p/10553789#M1857390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lakman, &lt;/P&gt;&lt;P&gt; Thank you for sharing the coding. I hope, if we mention as Header line, it is not required to mention &lt;STRONG&gt;INTO &amp;lt;VARIABLE&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;REPORT&amp;nbsp; &lt;/SPAN&gt;ZSELECT_STMT_01&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;SPAN class="L0S52"&gt;TABLES&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;ZSMARTFORM_LIST&lt;/STRONG&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;wl_form &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;ZSMARTFORM_LIST &lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;WITH &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52"&gt;HEADER &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;LINE&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SINGLE &lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;ZSMARTFORM_LIST&lt;/STRONG&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajkumar Narasimman.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 11:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-statement-in-mpp-and-report-program/m-p/10553789#M1857390</guid>
      <dc:creator>rajkumarnarasimman</dc:creator>
      <dc:date>2014-07-28T11:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between SELECT Statement in MPP and Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-statement-in-mpp-and-report-program/m-p/10553790#M1857391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Laxman,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yes i agree.. if we declare tables it will work like work area,it will hold one row of values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt; Thanagm.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 11:18:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-statement-in-mpp-and-report-program/m-p/10553790#M1857391</guid>
      <dc:creator>thangam_perumal</dc:creator>
      <dc:date>2014-07-28T11:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between SELECT Statement in MPP and Report Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-statement-in-mpp-and-report-program/m-p/10553791#M1857392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No need of declaring header line part..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;REPORT&amp;nbsp; &lt;/SPAN&gt;ZSELECT_STMT_01&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;SPAN class="L0S52"&gt;TABLES&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;ZSMARTFORM_LIST&lt;/STRONG&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SINGLE &lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;ZSMARTFORM_LIST&lt;/STRONG&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;this enough now in &lt;STRONG&gt;ZSMARTFORM_LIST &lt;/STRONG&gt;you wil have one record.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;check once. i have checked it.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;if its wrong tel me.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;laxman.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 11:23:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-statement-in-mpp-and-report-program/m-p/10553791#M1857392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-28T11:23:06Z</dc:date>
    </item>
  </channel>
</rss>

