<?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 Re: select command using package size in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-package-size/m-p/5246391#M1212175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;

Ur query 
select * from dbtab1 into table itab1 package size n
select * from dbtab2 into itab2  where field = itab1-field.  &amp;lt;---Here u move it to a work area..chck that
endselect.


change it as 

select * from dbtab1 into table itab1 package size n

check itab1[] is not initial.
select * from dbtab2 appending table  itab2[]  where field = itab1-field.  

endselect.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Feb 2009 10:40:52 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2009-02-23T10:40:52Z</dc:date>
    <item>
      <title>select command using package size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-package-size/m-p/5246385#M1212169</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to fetch the same record comparing the records from two data base table for which i m using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from dbtab1 into table  itab1 package size n&lt;/P&gt;&lt;P&gt;select * from dbtab2 into itab2 &lt;/P&gt;&lt;P&gt;where field = itab1-field.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the loop of select is executed once for second time its givin dump.&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Gayatri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 10:25:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-package-size/m-p/5246385#M1212169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T10:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: select command using package size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-package-size/m-p/5246386#M1212170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;Do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from dbtab1 into table itab1 package size n&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from dbtab2 into itab2&lt;/P&gt;&lt;P&gt;for all entries of itab1&lt;/P&gt;&lt;P&gt;where field = itab1-field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 10:27:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-package-size/m-p/5246386#M1212170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T10:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: select command using package size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-package-size/m-p/5246387#M1212171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gayatri,&lt;/P&gt;&lt;P&gt;I didnt understand y  u r looping the select  staments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from dbtab1 into table itab1 package size n&lt;/P&gt;&lt;P&gt;select * from dbtab2 into itab2 &lt;/P&gt;&lt;P&gt;where field = itab1-field.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of this you can use for all entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from dbtab1 into table itab1 package size n.&lt;/P&gt;&lt;P&gt;if not itab1 intial.&lt;/P&gt;&lt;P&gt;select * from dbtab2 into table  itab2 for all entries in itab1&lt;/P&gt;&lt;P&gt;where field = itab1-field.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;revrt back if any issue.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 10:32:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-package-size/m-p/5246387#M1212171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T10:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: select command using package size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-package-size/m-p/5246388#M1212172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have done coding as u written except for 'if not itab1 intial'.&lt;/P&gt;&lt;P&gt;u can check&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 10:35:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-package-size/m-p/5246388#M1212172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T10:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: select command using package size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-package-size/m-p/5246389#M1212173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gayatri,&lt;/P&gt;&lt;P&gt;Iam using &lt;STRONG&gt;for all entries&lt;/STRONG&gt; as well along with &lt;STRONG&gt;'if not itab1 intial'.&lt;/STRONG&gt;, can you check with my code. is it still going to dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 10:37:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-package-size/m-p/5246389#M1212173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T10:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: select command using package size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-package-size/m-p/5246390#M1212174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For all entries is miising in ur statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from dbtab1 into table itab1 package size n&lt;/P&gt;&lt;P&gt;select * from dbtab2 appending table itab2 for all entries in  itab1 where&lt;/P&gt;&lt;P&gt;field = itab1-field.&lt;/P&gt;&lt;P&gt;refresh itab1.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 10:38:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-package-size/m-p/5246390#M1212174</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-02-23T10:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: select command using package size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-package-size/m-p/5246391#M1212175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;

Ur query 
select * from dbtab1 into table itab1 package size n
select * from dbtab2 into itab2  where field = itab1-field.  &amp;lt;---Here u move it to a work area..chck that
endselect.


change it as 

select * from dbtab1 into table itab1 package size n

check itab1[] is not initial.
select * from dbtab2 appending table  itab2[]  where field = itab1-field.  

endselect.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 10:40:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-package-size/m-p/5246391#M1212175</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-02-23T10:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: select command using package size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-package-size/m-p/5246392#M1212176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gayatri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_itab1 LIKE itab1 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;Select first data for first select statement. Then select data for second select statement outside the ***** first select statement.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;    FROM dbtab1&lt;/P&gt;&lt;P&gt;    INTO TABLE itab1 &lt;/P&gt;&lt;P&gt;    PACKAGE SIZE n&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT itab1[] IS INITIAL.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   SORT itab1 by field.&lt;/P&gt;&lt;P&gt;   l_itab1[] = itab1[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SELECT * &lt;/P&gt;&lt;P&gt;   FOR ALL ENTRIES IN l_itab1&lt;/P&gt;&lt;P&gt;   FROM dbtab2 &lt;/P&gt;&lt;P&gt;   INTO itab2 &lt;/P&gt;&lt;P&gt;  WHERE field = l_itab1-field.&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;Hope this help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anil Salekar on Feb 23, 2009 11:45 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 10:44:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-package-size/m-p/5246392#M1212176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T10:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: select command using package size</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-package-size/m-p/5246393#M1212177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Naveen its working fine now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 10:48:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-command-using-package-size/m-p/5246393#M1212177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T10:48:35Z</dc:date>
    </item>
  </channel>
</rss>

