<?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: Internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3824745#M919813</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;Suppose your internal table is itab and is filled with records containing pernr and email. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;    Itab-name = v_name. " this is the name that you want to populate.&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;modify&lt;/STRONG&gt; itab &lt;STRONG&gt;transporting&lt;/STRONG&gt; name.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 May 2008 12:29:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-17T12:29:54Z</dc:date>
    <item>
      <title>Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3824743#M919811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frnds,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;please clear my doubts in internal table... i having int table pernr email name .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first i am filling the table with the pernr and email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i need to select the name from some other table and want to fill the column 'name' in the internal table,&lt;/P&gt;&lt;P&gt;if am selecting it the table is filled with the name but the email and the pernr is deleted how to retain it as it is and also the name also should be there adjacent to the correct pernr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 May 2008 12:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3824743#M919811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-17T12:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3824744#M919812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthikeyan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why can't U use JOIN for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: If u r getting pernr and mail from DBT1 and name from DBT2 then JOIN these two tables so that u will get the data in a single step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a&lt;SUB&gt;pernr a&lt;/SUB&gt;mail b~name&lt;/P&gt;&lt;P&gt;INTO TABLE itab FROm DBT1 AS a INNER JOIN DBT2 AS b&lt;/P&gt;&lt;P&gt;ON &lt;STRONG&gt;Give conditions here(Between DBT1 and DBT2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;WHERE Give if conditions u have here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now u have all the details in itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u are populating itab not from the select then do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT pernrtab INTO wa.&lt;/P&gt;&lt;P&gt;READ nametab INTO wa1 WITH KEY CONDITIONS.&lt;/P&gt;&lt;P&gt;wa-name = wa1-name.&lt;/P&gt;&lt;P&gt;MODIFY pernrtab FROM wa.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 May 2008 12:29:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3824744#M919812</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-05-17T12:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3824745#M919813</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;Suppose your internal table is itab and is filled with records containing pernr and email. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;    Itab-name = v_name. " this is the name that you want to populate.&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;modify&lt;/STRONG&gt; itab &lt;STRONG&gt;transporting&lt;/STRONG&gt; name.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 May 2008 12:29:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3824745#M919813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-17T12:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3824746#M919814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:pa0002 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:begin of ty_itab ,&lt;/P&gt;&lt;P&gt;     pernr like pa0002-pernr,&lt;/P&gt;&lt;P&gt;     vorna like pa0002-vorna,&lt;/P&gt;&lt;P&gt;     end of ty_itab ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     begin of ty_itab1 ,&lt;/P&gt;&lt;P&gt;     pernr like pa0002-pernr,&lt;/P&gt;&lt;P&gt;     subty like pa0105-subty,&lt;/P&gt;&lt;P&gt;     usrid_long like pa0105-usrid_long,&lt;/P&gt;&lt;P&gt;     end of ty_itab1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    begin of ty_final ,&lt;/P&gt;&lt;P&gt;     pernr like pa0002-pernr,&lt;/P&gt;&lt;P&gt;     vorna like pa0002-vorna,&lt;/P&gt;&lt;P&gt;     usrid_long like pa0105-usrid_long,&lt;/P&gt;&lt;P&gt;     end of ty_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab type standard table of ty_itab with header line,&lt;/P&gt;&lt;P&gt;      itab1 type standard table of ty_itab1 with header line,&lt;/P&gt;&lt;P&gt;      final type standard table of ty_final with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options:s_pernr for pa0002-pernr .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select pernr&lt;/P&gt;&lt;P&gt;        vorna&lt;/P&gt;&lt;P&gt;        from pa0002 into  table itab&lt;/P&gt;&lt;P&gt;        where pernr in s_pernr .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select pernr&lt;/P&gt;&lt;P&gt;       subty&lt;/P&gt;&lt;P&gt;       usrid_long&lt;/P&gt;&lt;P&gt;       from pa0105&lt;/P&gt;&lt;P&gt;       into  table  itab1&lt;/P&gt;&lt;P&gt;       for all entries in itab&lt;/P&gt;&lt;P&gt;       where pernr = itab-pernr.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from itab comparing pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab  .&lt;/P&gt;&lt;P&gt;final-pernr = itab-pernr.&lt;/P&gt;&lt;P&gt;final-vorna = itab-vorna.&lt;/P&gt;&lt;P&gt;loop at itab1 where  pernr = itab-pernr&lt;/P&gt;&lt;P&gt;              and subty = 10 .&lt;/P&gt;&lt;P&gt;final-usrid_long = itab1-usrid_long.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;append final.&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;loop at final.&lt;/P&gt;&lt;P&gt;write:/ final-pernr,&lt;/P&gt;&lt;P&gt;final-vorna,&lt;/P&gt;&lt;P&gt;final-usrid_long.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 May 2008 13:44:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3824746#M919814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-17T13:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3824747#M919815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ANSWERED&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 May 2008 13:55:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3824747#M919815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-17T13:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3824748#M919816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;Probably you are not modifying the internal table correctly.&lt;/P&gt;&lt;P&gt;this is what you need to do : &lt;/P&gt;&lt;P&gt;lets assume ur itab has 3 fields&lt;/P&gt;&lt;P&gt;pernr&lt;/P&gt;&lt;P&gt;name&lt;/P&gt;&lt;P&gt;email&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u've selected the pernr n email in an itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. loop at itab into work area.&lt;/P&gt;&lt;P&gt;2. select the name for the pernr into a variable ( you can select the names before the loop into another internal table with fields pernr and name, in that case read the itab with names with key pernr = work area -pernr ) &lt;/P&gt;&lt;P&gt;3. move the name to the name of the work are&lt;/P&gt;&lt;P&gt;modify the itab form work area transporting name.&lt;/P&gt;&lt;P&gt;4. endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 May 2008 14:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3824748#M919816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-17T14:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3824749#M919817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using joins for the hr infotypes causes performance issue. &lt;/P&gt;&lt;P&gt;i got the sol &lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 May 2008 08:13:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3824749#M919817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-18T08:13:36Z</dc:date>
    </item>
  </channel>
</rss>

