<?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 classical report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report/m-p/2199723#M469848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here iam trying to write some code for the following requirement,but at select statement i want to use innerjoin how can i? and wat will happen if i'll use this corresponding .is there any chance to write a select statement as nested select if possible how pls help me . full points.urgent &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if usefull full points.to all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx regards&lt;/P&gt;&lt;P&gt;lokanadhan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Req: by using classical report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------" /&gt;&lt;P&gt;vendor from -&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt; to -&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------" /&gt;&lt;P&gt;vno p.o itemno material&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : lfa1,ekko,ekpo,mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : vendor like lfa1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;lifnr like lfa1-lifnr,&lt;/P&gt;&lt;P&gt;ebeln like ekko-ebeln,&lt;/P&gt;&lt;P&gt;ebelp like ekpo-ebelp,&lt;/P&gt;&lt;P&gt;matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lfa1&lt;SUB&gt;lifnr ekko&lt;/SUB&gt;ebeln ekpo&lt;SUB&gt;ebelp mara&lt;/SUB&gt;matnr &lt;/P&gt;&lt;P&gt;into corresponding fields of table itab &lt;/P&gt;&lt;P&gt;from lfa1 join ekko on lfa1&lt;SUB&gt;lifnr = ekko&lt;/SUB&gt;lifnr &lt;/P&gt;&lt;P&gt;join ekpo on ekko&lt;SUB&gt;ebeln = ekpo&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;join matnr on ekpo&lt;SUB&gt;matnr = mara&lt;/SUB&gt;matnr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write : / itab-lifnr ,itab-ebeln,itab-ebelp,itab-matnr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Apr 2007 19:49:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-30T19:49:52Z</dc:date>
    <item>
      <title>classical report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report/m-p/2199723#M469848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here iam trying to write some code for the following requirement,but at select statement i want to use innerjoin how can i? and wat will happen if i'll use this corresponding .is there any chance to write a select statement as nested select if possible how pls help me . full points.urgent &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if usefull full points.to all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx regards&lt;/P&gt;&lt;P&gt;lokanadhan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Req: by using classical report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------" /&gt;&lt;P&gt;vendor from -&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt; to -&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------" /&gt;&lt;P&gt;vno p.o itemno material&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : lfa1,ekko,ekpo,mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : vendor like lfa1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;lifnr like lfa1-lifnr,&lt;/P&gt;&lt;P&gt;ebeln like ekko-ebeln,&lt;/P&gt;&lt;P&gt;ebelp like ekpo-ebelp,&lt;/P&gt;&lt;P&gt;matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lfa1&lt;SUB&gt;lifnr ekko&lt;/SUB&gt;ebeln ekpo&lt;SUB&gt;ebelp mara&lt;/SUB&gt;matnr &lt;/P&gt;&lt;P&gt;into corresponding fields of table itab &lt;/P&gt;&lt;P&gt;from lfa1 join ekko on lfa1&lt;SUB&gt;lifnr = ekko&lt;/SUB&gt;lifnr &lt;/P&gt;&lt;P&gt;join ekpo on ekko&lt;SUB&gt;ebeln = ekpo&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;join matnr on ekpo&lt;SUB&gt;matnr = mara&lt;/SUB&gt;matnr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write : / itab-lifnr ,itab-ebeln,itab-ebelp,itab-matnr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 19:49:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report/m-p/2199723#M469848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T19:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: classical report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report/m-p/2199724#M469849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u pls make ur question more clear ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you mean this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lfa1&lt;SUB&gt;lifnr ekko&lt;/SUB&gt;ebeln ekpo&lt;SUB&gt;ebelp mara&lt;/SUB&gt;matnr &lt;/P&gt;&lt;P&gt;into corresponding fields of table itab &lt;/P&gt;&lt;P&gt;from lfa1 &amp;lt;b&amp;gt;inner&amp;lt;/b&amp;gt; join ekko on lfa1&lt;SUB&gt;lifnr = ekko&lt;/SUB&gt;lifnr &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;inner&amp;lt;/b&amp;gt; join ekpo on ekko&lt;SUB&gt;ebeln = ekpo&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;inner&amp;lt;/b&amp;gt; join matnr on ekpo&lt;SUB&gt;matnr = mara&lt;/SUB&gt;matnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 19:59:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report/m-p/2199724#M469849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T19:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: classical report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report/m-p/2199725#M469850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi auistine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; for this we can write select statement with out using corresponding fields, by using simply inner joins. but wat is the diff b/w these.at the same time instead of all these can we use nested select by declaring diff internal tables for diff table-fields.i need nested selct statement also. if help full full points...urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx &lt;/P&gt;&lt;P&gt;lokanadhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 20:21:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report/m-p/2199725#M469850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T20:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: classical report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report/m-p/2199726#M469851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi augustine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; in the above code i din't mention inner key word , in select statemnt.is there any problem without tht?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;P&gt;lokanadhan.k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 20:23:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report/m-p/2199726#M469851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T20:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: classical report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report/m-p/2199727#M469852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : begin of t_lfa1 occurs 0,&lt;/P&gt;&lt;P&gt;          lifnr like lfa1-lifnr,&lt;/P&gt;&lt;P&gt;        end of t_lfa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of t_ekko occurs 0,&lt;/P&gt;&lt;P&gt;          ebeln like ekko-ebeln,&lt;/P&gt;&lt;P&gt;          lifnr like lfa1-lifnr,&lt;/P&gt;&lt;P&gt;        end of t_ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of t_ekpo occurs 0,&lt;/P&gt;&lt;P&gt;          ebeln like ekko-ebeln,&lt;/P&gt;&lt;P&gt;          ebelp like ekpo-ebelp,&lt;/P&gt;&lt;P&gt;          matnr like ekpo-matnr,&lt;/P&gt;&lt;P&gt;        end of t_ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : s_lifnr for lfa1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lifnr from lfa1 into table t_lfa1 where lifnr in s_lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not t_lfa1[] is initial.&lt;/P&gt;&lt;P&gt;select ebeln lifnr from ekko into table t_ekko for all entries in t_lfa1 where&lt;/P&gt;&lt;P&gt;    lifnr = t_lfa1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if not t_ekko[] is initial.&lt;/P&gt;&lt;P&gt;select ebeln ebelp from ekpo into table t_ekpo for all entries in t_ekko where&lt;/P&gt;&lt;P&gt;    ebeln = t_ekko-ebeln.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not t_ekpo[] is initial.&lt;/P&gt;&lt;P&gt;select ebeln ebelp matnr from ekpo into table t_ekpo for all entries in t_ekko where&lt;/P&gt;&lt;P&gt;    ebeln = t_ekko-ebeln.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 21:01:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report/m-p/2199727#M469852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T21:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: classical report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report/m-p/2199728#M469853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi augustine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data : begin of t_lfa1 occurs 0,&lt;/P&gt;&lt;P&gt;lifnr like lfa1-lifnr,&lt;/P&gt;&lt;P&gt;end of t_lfa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of t_ekko occurs 0,&lt;/P&gt;&lt;P&gt;ebeln like ekko-ebeln,&lt;/P&gt;&lt;P&gt;lifnr like lfa1-lifnr, &amp;lt;--- why r u repeating this table field&lt;/P&gt;&lt;P&gt;end of t_ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of t_ekpo occurs 0,&lt;/P&gt;&lt;P&gt;ebeln like ekko-ebeln,&amp;lt;--- why r u repeating this table field&lt;/P&gt;&lt;P&gt;ebelp like ekpo-ebelp,&lt;/P&gt;&lt;P&gt;matnr like ekpo-matnr,&lt;/P&gt;&lt;P&gt;end of t_ekpo.&lt;/P&gt;&lt;P&gt;                                  -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;&amp;gt; while writing the select statements i can write the conditions.r u sure tht we need to write compulasary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : s_lifnr for lfa1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lifnr from lfa1 into table t_lfa1 where lifnr in s_lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not t_lfa1[] is initial. &amp;lt;---- what is the use of this statement&lt;/P&gt;&lt;P&gt;select ebeln lifnr from ekko into table t_ekko for all entries in t_lfa1 where&lt;/P&gt;&lt;P&gt;lifnr = t_lfa1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if not t_ekko[] is initial.&lt;/P&gt;&lt;P&gt;select ebeln ebelp from ekpo into table t_ekpo for all entries in t_ekko where&lt;/P&gt;&lt;P&gt;ebeln = t_ekko-ebeln.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not t_ekpo[] is initial.&lt;/P&gt;&lt;P&gt;select ebeln ebelp matnr from ekpo into table t_ekpo for all entries in t_ekko where&lt;/P&gt;&lt;P&gt;ebeln = t_ekko-ebeln.&lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  pls explain the doubts tht i marked with arrows.once clear full points..urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;P&gt;lokanadhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 21:40:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classical-report/m-p/2199728#M469853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T21:40:08Z</dc:date>
    </item>
  </channel>
</rss>

