<?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: how to include internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-internal-table/m-p/6587813#M1435366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello JaiKarthik  ,&lt;/P&gt;&lt;P&gt;The best practice is to make a RANGE for your selection in your first query and then use this range in further queries...!&lt;/P&gt;&lt;P&gt;hope it works for you ...! you can read F1 help for RANGE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Feb 2010 03:14:20 GMT</pubDate>
    <dc:creator>anup_deshmukh4</dc:creator>
    <dc:date>2010-02-03T03:14:20Z</dc:date>
    <item>
      <title>how to include internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-internal-table/m-p/6587809#M1435362</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;i have code where the "w_chepctycod" is a single value...but now my requirements is that it will have 2 entries...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;select single ZCHEPCTYCOD&lt;/P&gt;&lt;P&gt;         from Z2RLCHEPCTYCOD&lt;/P&gt;&lt;P&gt;         into w_chepctycod&lt;/P&gt;&lt;P&gt;        where land1 = s_bukrs-low(02). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM z2rlbasedat&lt;/P&gt;&lt;P&gt;           APPENDING TABLE ts_z2rlbasedat&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN ts_z3rl_docket_umi&lt;/P&gt;&lt;P&gt;           WHERE zzumicur = ts_z3rl_docket_umi-zzumicur AND&lt;/P&gt;&lt;P&gt;                 ( status = c_rej OR&lt;/P&gt;&lt;P&gt;                   status = c_sus ) and&lt;/P&gt;&lt;P&gt;               CHEPCTYCOD = w_chepctycod.    &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;for the first SELECT, i will remove single and make internal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ZCHEPCTYCOD&lt;/P&gt;&lt;P&gt;         from Z2RLCHEPCTYCOD&lt;/P&gt;&lt;P&gt;         into table  ts_chepctycod&lt;/P&gt;&lt;P&gt;        where land1 = s_bukrs-low(02). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in my second SELECT, how will I inculde 'ts_chepctycod' ??????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly help....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 01:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-internal-table/m-p/6587809#M1435362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T01:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to include internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-internal-table/m-p/6587810#M1435363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JaiKarthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can populate the entries in ts_chepctycod into a range table... say it r_chepctycod.&lt;/P&gt;&lt;P&gt;And then your 2nd selection will be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM z2rlbasedat
APPENDING TABLE ts_z2rlbasedat
FOR ALL ENTRIES IN ts_z3rl_docket_umi
WHERE zzumicur = ts_z3rl_docket_umi-zzumicur AND
( status = c_rej OR
status = c_sus ) AND
CHEPCTYCOD IN r_chepctycod.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 02:18:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-internal-table/m-p/6587810#M1435363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T02:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to include internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-internal-table/m-p/6587811#M1435364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JaiKarthik...really cool table and field names &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you want to select data according to all the rows from an internal table, you have to use 'for all entries' as you already did for the other table. the problem is that i really do not know if it's possible to use this addition twice in just one select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i had a misunderstanding of your question please let me know,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 02:25:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-internal-table/m-p/6587811#M1435364</guid>
      <dc:creator>FabioPagoti</dc:creator>
      <dc:date>2010-02-03T02:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to include internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-internal-table/m-p/6587812#M1435365</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;Keep you first select statement as it is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single ZCHEPCTYCOD&lt;/P&gt;&lt;P&gt;from Z2RLCHEPCTYCOD&lt;/P&gt;&lt;P&gt;into w_chepctycod&lt;/P&gt;&lt;P&gt;where land1 = s_bukrs-low(02). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM z2rlbasedat&lt;/P&gt;&lt;P&gt;APPENDING TABLE ts_z2rlbasedat&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN ts_z3rl_docket_umi&lt;/P&gt;&lt;P&gt;WHERE zzumicur = ts_z3rl_docket_umi-zzumicur AND&lt;/P&gt;&lt;P&gt;( status = c_rej OR&lt;/P&gt;&lt;P&gt;status = c_sus ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, you check for w_chepctycod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code will be something like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at ts_z2rlbasedat .&lt;/P&gt;&lt;P&gt; read table Z2RLCHEPCTYCOD with key CHEPCTYCOD = ts_z2rlbasedat -chepctycod .&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt; *----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; Your program logic&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  delete  ts_z2rlbasedat .&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this, may this will help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 03:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-internal-table/m-p/6587812#M1435365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T03:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to include internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-internal-table/m-p/6587813#M1435366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello JaiKarthik  ,&lt;/P&gt;&lt;P&gt;The best practice is to make a RANGE for your selection in your first query and then use this range in further queries...!&lt;/P&gt;&lt;P&gt;hope it works for you ...! you can read F1 help for RANGE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 03:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-include-internal-table/m-p/6587813#M1435366</guid>
      <dc:creator>anup_deshmukh4</dc:creator>
      <dc:date>2010-02-03T03:14:20Z</dc:date>
    </item>
  </channel>
</rss>

