<?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: Subqueries with internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502626#M842484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eric - I guess there's a misunderstanding. If you leave the select-options empty, you will of course get all entries, but if you put in say an invalid account into the GL select-options, then nothing is returned. It's my understanding that the poster wants the company code data in this case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Feb 2008 14:18:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-29T14:18:12Z</dc:date>
    <item>
      <title>Subqueries with internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502607#M842465</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;is it possible to use subqueries with internal table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my query is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT BUKRS FROM T001&lt;/P&gt;&lt;P&gt;        INTO CORRESPONDING FIELDS OF TABLE ITAB_T001&lt;/P&gt;&lt;P&gt;        WHERE BUKRS IN ( SELECT BUKRS FROM  ITAB_T001_BUKRS )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here ,  ITAB_T001_BUKRS  is an internal table.??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 11:08:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502607#M842465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T11:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Subqueries with internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502608#M842466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  to my knowledge....SELECT queries always works on DB tables and not on internal tables.  READ can work on internal tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 11:12:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502608#M842466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T11:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Subqueries with internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502609#M842467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously you can use this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you use For all entries then it s good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT BUKRS FROM &amp;lt;TABLE&amp;gt; INTO CORRESPONDING FIELDS OF TABLE ITAB_T001_BUKRS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT BUKRS FROM T001&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE ITAB_T001&lt;/P&gt;&lt;P&gt;WHERE BUKRS = ITAB_T001_BUKRS-BUKRS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&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;Dhruv Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 11:12:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502609#M842467</guid>
      <dc:creator>dhruv_shah3</dc:creator>
      <dc:date>2008-02-28T11:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Subqueries with internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502610#M842468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks...&lt;/P&gt;&lt;P&gt;i used "FOR ALL ENTRIES IN "&lt;/P&gt;&lt;P&gt;but i want to check with 2 internal tables ... like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT T001&lt;SUB&gt;BUKRS T001&lt;/SUB&gt;BUTXT  SKB1~SAKNR&lt;/P&gt;&lt;P&gt;      SKAT~TXT20&lt;/P&gt;&lt;P&gt;      INTO CORRESPONDING FIELDS OF TABLE ITAB_ZSTMGLRACC&lt;/P&gt;&lt;P&gt;      FROM T001 AS T001&lt;/P&gt;&lt;P&gt;LEFT OUTER JOIN SKB1 AS SKB1 ON SKB1&lt;SUB&gt;BUKRS = T001&lt;/SUB&gt;BUKRS&lt;/P&gt;&lt;P&gt; JOIN SKAT AS SKAT ON SKAT&lt;SUB&gt;SAKNR = SKB1&lt;/SUB&gt;SAKNR &lt;/P&gt;&lt;P&gt;      AND SKAT&lt;SUB&gt;SPRAS =  SY-langu AND SKAT&lt;/SUB&gt;KTOPL = 'EICA'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      FOR ALL ENTRIES IN ITAB_T001&lt;/P&gt;&lt;P&gt;        WHERE ( T001~BUKRS EQ ITAB_T001-BUKRS&lt;/P&gt;&lt;P&gt;        AND T001~SPRAS EQ sy-langu ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        FOR ALL ENTRIES IN ITAB_SKAT WHERE SKAT~SAKNR EQ &lt;/P&gt;&lt;P&gt;ITAB_SKAT-SAKNR  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to select the rows 1 T001 related to 2 internal tables &lt;/P&gt;&lt;P&gt;ITAB_T001 ( key field is BUKRS) and &lt;/P&gt;&lt;P&gt;ITAB_SKAT (key field is sankr)  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it's not possible to check with 2 tables...... any other options ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 12:38:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502610#M842468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T12:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Subqueries with internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502611#M842469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Theres definately option, the thing you have to do is&lt;/P&gt;&lt;P&gt;first take data of two table keep it in third empty internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now compare the Data of the Third Table with the Data of your remaining table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&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;Dhruv Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 12:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502611#M842469</guid>
      <dc:creator>dhruv_shah3</dc:creator>
      <dc:date>2008-02-28T12:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Subqueries with internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502612#M842470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear friend select will not work on internal tables&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;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 13:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502612#M842470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T13:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Subqueries with internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502613#M842471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot use sub-query with Internal tables. It can only be used with the DB tables. Instead what you can do is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: WA like line of ITAB_T001_BUKRS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at ITAB_T001_BUKRS into WA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select BUKRS from T001 into corresponding fields of ITAB_T001 where BUKRS = WA-BUKRS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EndLoop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code will solve your purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Roshan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 28, 2008 12:50 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 13:08:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502613#M842471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T13:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Subqueries with internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502614#M842472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select wont work with internal table so combine t001 and skat is not possible here.&lt;/P&gt;&lt;P&gt;select will work with only one internal table ..using for all entries...&lt;/P&gt;&lt;P&gt;but select wont work with 2 internal tables.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to use loop endloop to do this, but it affects performance for large no of records.&lt;/P&gt;&lt;P&gt;anyone have suggestions ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 13:13:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502614#M842472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T13:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Subqueries with internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502615#M842473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand right you have two internal tables (with company codes and G/L accounts). How are these two internal tables filled?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 13:22:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502615#M842473</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-02-28T13:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Subqueries with internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502616#M842474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itabs are filled like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT BUKRS FROM T001&lt;/P&gt;&lt;P&gt;        INTO CORRESPONDING FIELDS OF TABLE ITAB_T001&lt;/P&gt;&lt;P&gt;        WHERE BUKRS IN T001_BUKRS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT SAKNR FROM SKAT&lt;/P&gt;&lt;P&gt;        INTO CORRESPONDING FIELDS OF TABLE ITAB_SKAT&lt;/P&gt;&lt;P&gt;        WHERE SAKNR IN SKAT_SAKNR AND SPRAS = SY-langu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where T001_BUKRS and SKAT_SAKNR are range itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 13:37:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502616#M842474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T13:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Subqueries with internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502617#M842475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in this case you don't need these two selects, just do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT T001~BUKRS &lt;/P&gt;&lt;P&gt;T001~BUTXT &lt;/P&gt;&lt;P&gt;SKB1~SAKNR&lt;/P&gt;&lt;P&gt;SKAT~TXT20&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE ITAB_ZSTMGLRACC&lt;/P&gt;&lt;P&gt;FROM T001 AS T001&lt;/P&gt;&lt;P&gt;INNER JOIN ska1 AS ska1&lt;/P&gt;&lt;P&gt;ON t001-ktopl EQ ska1~ktopl&lt;/P&gt;&lt;P&gt;INNER JOIN skb1 AS skb1&lt;/P&gt;&lt;P&gt;ON skb1&lt;SUB&gt;bukrs EQ t001&lt;/SUB&gt;bukrs&lt;/P&gt;&lt;P&gt;AND skb1&lt;SUB&gt;saknr EQ ska1&lt;/SUB&gt;saknr&lt;/P&gt;&lt;P&gt;INNER JOIN skat AS skat&lt;/P&gt;&lt;P&gt;ON skat&lt;SUB&gt;ktopl EQ SKA1&lt;/SUB&gt;ktopl&lt;/P&gt;&lt;P&gt;AND skat&lt;SUB&gt;saknr EQ ska1&lt;/SUB&gt;saknr&lt;/P&gt;&lt;P&gt;WHERE T001~BUKRS IN T001_BUKRS&lt;/P&gt;&lt;P&gt;AND skat~spras EQ sy-langu &lt;/P&gt;&lt;P&gt;AND SKAT~SAKNR IN SKAT_SAKNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure about the performance, but give it a try...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 13:54:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502617#M842475</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-02-28T13:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Subqueries with internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502618#M842476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will work but,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if there is no records in T001_BUKRS, it should show all the records of t001 .&lt;/P&gt;&lt;P&gt;and if there is no records in SKAT_SAKNR it should show all the records of skat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do i do this....??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx &lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 14:15:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502618#M842476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T14:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Subqueries with internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502619#M842477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it will show all records, just give it a try...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 14:19:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502619#M842477</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-02-28T14:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Subqueries with internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502620#M842478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose T001_BUKRS contains only one record, and SKAT_SAKNR contains no records,&lt;/P&gt;&lt;P&gt;since it is IN &amp;lt;range&amp;gt;, it will return 0 records as result. !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 14:28:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502620#M842478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T14:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Subqueries with internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502621#M842479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are wrong, it works! just give it a try!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 14:52:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502621#M842479</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-02-28T14:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Subqueries with internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502622#M842480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the internal table T001_BUKRS, contains anyone records it will check for the internal table too SKAT_SAKNR .. since it's and condition the query output contains null values only. I used it and &lt;/P&gt;&lt;P&gt;tested it ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 18:33:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502622#M842480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T18:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Subqueries with internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502623#M842481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no, it works, I also tried in our system. just copy paste my code and see...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 22:34:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502623#M842481</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-02-28T22:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Subqueries with internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502624#M842482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eric - I copied and pasted your code and tried it, but got several syntax errors, so I don't know how you tried it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I fixed it up and got it running, but it returns no entries if nothing is selected form T001 or SKAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried using FOR ALL ENTRIES in a subquery and got a syntax error, so I think the only alternative is separate SELECTs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 23:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502624#M842482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T23:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Subqueries with internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502625#M842483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob, the code above refers to the original code of Jose, of course I modified it slighty in our system:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : t001, skat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;       bukrs TYPE t001-bukrs,&lt;/P&gt;&lt;P&gt;       butxt TYPE t001-butxt,&lt;/P&gt;&lt;P&gt;       saknr TYPE skb1-saknr,&lt;/P&gt;&lt;P&gt;       txt20 TYPE skat-txt20,&lt;/P&gt;&lt;P&gt;       END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_bukrs FOR t001-bukrs,&lt;/P&gt;&lt;P&gt;                 s_saknr FOR skat-saknr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT t001~bukrs&lt;/P&gt;&lt;P&gt;t001~butxt&lt;/P&gt;&lt;P&gt;skb1~saknr&lt;/P&gt;&lt;P&gt;skat~txt20&lt;/P&gt;&lt;P&gt;INTO TABLE itab&lt;/P&gt;&lt;P&gt;FROM t001 AS t001&lt;/P&gt;&lt;P&gt;INNER JOIN ska1 AS ska1&lt;/P&gt;&lt;P&gt;ON t001&lt;SUB&gt;ktopl EQ ska1&lt;/SUB&gt;ktopl&lt;/P&gt;&lt;P&gt;INNER JOIN skb1 AS skb1&lt;/P&gt;&lt;P&gt;ON skb1&lt;SUB&gt;bukrs EQ t001&lt;/SUB&gt;bukrs&lt;/P&gt;&lt;P&gt;AND skb1&lt;SUB&gt;saknr EQ ska1&lt;/SUB&gt;saknr&lt;/P&gt;&lt;P&gt;INNER JOIN skat AS skat&lt;/P&gt;&lt;P&gt;ON skat&lt;SUB&gt;ktopl EQ ska1&lt;/SUB&gt;ktopl&lt;/P&gt;&lt;P&gt;AND skat&lt;SUB&gt;saknr EQ ska1&lt;/SUB&gt;saknr&lt;/P&gt;&lt;P&gt;WHERE t001~bukrs IN s_bukrs&lt;/P&gt;&lt;P&gt;AND skat~spras EQ sy-langu&lt;/P&gt;&lt;P&gt;AND skat~saknr IN s_saknr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I entered one company code and nothing for G/L account and as result I got all the G/Ls created in the company code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I don't enter anything into the select options, than it returns all the G/Ls for all the company codes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 07:39:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502625#M842483</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-02-29T07:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Subqueries with internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502626#M842484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eric - I guess there's a misunderstanding. If you leave the select-options empty, you will of course get all entries, but if you put in say an invalid account into the GL select-options, then nothing is returned. It's my understanding that the poster wants the company code data in this case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 14:18:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subqueries-with-internal-table/m-p/3502626#M842484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-29T14:18:12Z</dc:date>
    </item>
  </channel>
</rss>

