<?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: create internal table from an existing internal table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-from-an-existing-internal-table/m-p/1016432#M80132</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;types : begin of ty,&lt;/P&gt;&lt;P&gt;        co_a ...&lt;/P&gt;&lt;P&gt;        ...&lt;/P&gt;&lt;P&gt;        end of ty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab1 type standard table of ty,&lt;/P&gt;&lt;P&gt;       itab2 type standard table of ty,&lt;/P&gt;&lt;P&gt;       itab3 type standard table of ty,&lt;/P&gt;&lt;P&gt;       wa1 type ty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..I assume that you populated data in itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa1 where ( co_a = '1' or co_a = '3' ) and co_b = date.&lt;/P&gt;&lt;P&gt;append lines of wa1 to itab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa1 where ( co_a = '2' or co_a = '4' or co_a = '5' ) and co_b = date.&lt;/P&gt;&lt;P&gt;append lines of wa1 to itab3.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need more clarifications,kindly get back.Otherwise,if you find these as useful,kindly reward points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Aug 2005 08:21:04 GMT</pubDate>
    <dc:creator>jayanthi_jayaraman</dc:creator>
    <dc:date>2005-08-08T08:21:04Z</dc:date>
    <item>
      <title>create internal table from an existing internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-from-an-existing-internal-table/m-p/1016430#M80130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There&amp;#146;s an internal table , which have 10 columns, and I have to select records from it filtering by two columns co_a (which have value 1,2,3,4,5), and co_b ( which is used to store date).&lt;/P&gt;&lt;P&gt;I need three type subset ,&lt;/P&gt;&lt;P&gt;  1.  co_a =1 and co_b = date( getting from another internal table)&lt;/P&gt;&lt;P&gt;  1.  co_a =3 and co_b = date( getting from another internal table)&lt;/P&gt;&lt;P&gt;  1.  co_a =2,4,5 and co_b = date( getting from another internal table)&lt;/P&gt;&lt;P&gt;How can I get the subset(it may be another internal set) dynamically&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2005 07:59:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-from-an-existing-internal-table/m-p/1016430#M80130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-08T07:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: create internal table from an existing internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-from-an-existing-internal-table/m-p/1016431#M80131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use a dynamic subroutine.&lt;/P&gt;&lt;P&gt;GENERATE SUBROUTINE POOL itab NAME name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Svetlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2005 08:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-from-an-existing-internal-table/m-p/1016431#M80131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-08T08:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: create internal table from an existing internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-from-an-existing-internal-table/m-p/1016432#M80132</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;types : begin of ty,&lt;/P&gt;&lt;P&gt;        co_a ...&lt;/P&gt;&lt;P&gt;        ...&lt;/P&gt;&lt;P&gt;        end of ty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab1 type standard table of ty,&lt;/P&gt;&lt;P&gt;       itab2 type standard table of ty,&lt;/P&gt;&lt;P&gt;       itab3 type standard table of ty,&lt;/P&gt;&lt;P&gt;       wa1 type ty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..I assume that you populated data in itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa1 where ( co_a = '1' or co_a = '3' ) and co_b = date.&lt;/P&gt;&lt;P&gt;append lines of wa1 to itab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa1 where ( co_a = '2' or co_a = '4' or co_a = '5' ) and co_b = date.&lt;/P&gt;&lt;P&gt;append lines of wa1 to itab3.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need more clarifications,kindly get back.Otherwise,if you find these as useful,kindly reward points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2005 08:21:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-from-an-existing-internal-table/m-p/1016432#M80132</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-08-08T08:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: create internal table from an existing internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-from-an-existing-internal-table/m-p/1016433#M80133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,Svetlin Rusev &lt;/P&gt;&lt;P&gt;May you tell me more detailed information?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2005 08:52:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-from-an-existing-internal-table/m-p/1016433#M80133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-08T08:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: create internal table from an existing internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-from-an-existing-internal-table/m-p/1016434#M80134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Mei Xie  &lt;/P&gt;&lt;P&gt;He mentioned GENERATE SUBROUTINE POOL. It's a technology for ABAP to generate subroutine in dynamicaly code.&lt;/P&gt;&lt;P&gt;You can write your code just in a long text internal table ,and call GENERATE SUBROUTINE POOL to generate the subroutine.  The difference between it and the normal way is we can dynamically change the code according to some condition.&lt;/P&gt;&lt;P&gt;some link as following:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db999535c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db999535c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope my explain is clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But by the way, I'm not very clear about your question, specially the 'subset'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2005 09:06:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-from-an-existing-internal-table/m-p/1016434#M80134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-08T09:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: create internal table from an existing internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-from-an-existing-internal-table/m-p/1016435#M80135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This code maybe will be helpful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab  TYPE TABLE OF string.&lt;/P&gt;&lt;P&gt;data: s1(1) value 1,&lt;/P&gt;&lt;P&gt;      s2(2) value 1.&lt;/P&gt;&lt;P&gt;APPEND 'FORM MYSUBR' to itab.&lt;/P&gt;&lt;P&gt;APPEND 'PROGRAM SUBPOOL.' to itab.&lt;/P&gt;&lt;P&gt;if ....&lt;/P&gt;&lt;P&gt;APPEND 'loop at itab1 into wa1 where ( co_a = s1 or co_a = s2 ) and co_b = date.' TO itab.&lt;/P&gt;&lt;P&gt;elseif ...&lt;/P&gt;&lt;P&gt;APPEND 'loop at itab1 into wa1 where co_a = s2 and co_b = date.' TO itab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;APPEND 'append lines of wa1 to itab2.' TO itab.&lt;/P&gt;&lt;P&gt;APPEND 'endloop.' TO itab.&lt;/P&gt;&lt;P&gt;APPEND 'ENDFORM' to itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GENERATE SUBROUTINE POOL itab NAME prog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM ('mysubr') IN PROGRAM (prog).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2005 09:08:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-internal-table-from-an-existing-internal-table/m-p/1016435#M80135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-08T09:08:09Z</dc:date>
    </item>
  </channel>
</rss>

