<?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 internal table help needed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-help-needed/m-p/1778664#M335663</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 one problem in report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have X table having fields f1, f2...............f10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lt_tab "internal table&lt;/P&gt;&lt;P&gt;        ls_tab "WA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for field f1 i got multiple entries in lt_fun by function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have condition like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_tab-f2 = .....&lt;/P&gt;&lt;P&gt;ls_tab-f3 = ......&lt;/P&gt;&lt;P&gt;append ls_tab to lt_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;calling FM&lt;/P&gt;&lt;P&gt;by passing f1 i got multiple entries in lt_fun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*suppose lt_fun having 2 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lt_fun from ls_fun .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gs_tab-f4 = ls_fun-f4.&lt;/P&gt;&lt;P&gt;gs_tab-f5 = ls_fun-f5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify lt_tab from ls_tab index lv_tabix transporting f3 f4.&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;Is the above mentioned logic is fine.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am assuming output like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                           X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;f1	f2	f3	f4	f5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1	a	a1	a2	a3&lt;/P&gt;&lt;P&gt;			b2	b3&lt;/P&gt;&lt;P&gt;			c3	c3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls let me know asap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Dec 2006 08:37:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-22T08:37:23Z</dc:date>
    <item>
      <title>internal table help needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-help-needed/m-p/1778664#M335663</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 one problem in report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have X table having fields f1, f2...............f10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lt_tab "internal table&lt;/P&gt;&lt;P&gt;        ls_tab "WA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for field f1 i got multiple entries in lt_fun by function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have condition like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_tab-f2 = .....&lt;/P&gt;&lt;P&gt;ls_tab-f3 = ......&lt;/P&gt;&lt;P&gt;append ls_tab to lt_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;calling FM&lt;/P&gt;&lt;P&gt;by passing f1 i got multiple entries in lt_fun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*suppose lt_fun having 2 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lt_fun from ls_fun .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gs_tab-f4 = ls_fun-f4.&lt;/P&gt;&lt;P&gt;gs_tab-f5 = ls_fun-f5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify lt_tab from ls_tab index lv_tabix transporting f3 f4.&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;Is the above mentioned logic is fine.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am assuming output like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                           X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;f1	f2	f3	f4	f5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1	a	a1	a2	a3&lt;/P&gt;&lt;P&gt;			b2	b3&lt;/P&gt;&lt;P&gt;			c3	c3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls let me know asap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 08:37:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-help-needed/m-p/1778664#M335663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T08:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: internal table help needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-help-needed/m-p/1778665#M335664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NEHA ,&lt;/P&gt;&lt;P&gt;                    Logic is fine .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my question is for f1 if you get two entries in table lt_fun .then how do you decide that it will in field F4 and f5 .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 08:45:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-help-needed/m-p/1778665#M335664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T08:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: internal table help needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-help-needed/m-p/1778666#M335665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No dinesh it is not looking like what i wanted to write.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                          X&lt;/P&gt;&lt;P&gt;f1          f2           f3         f4       f5&lt;/P&gt;&lt;P&gt;1          a1           a1       a2      a3&lt;/P&gt;&lt;P&gt;                                     b2      b3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 08:51:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-help-needed/m-p/1778666#M335665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T08:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: internal table help needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-help-needed/m-p/1778667#M335666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u give me the code what u written&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 08:53:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-help-needed/m-p/1778667#M335666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T08:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: internal table help needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-help-needed/m-p/1778668#M335667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, ket me see if this is what you wanted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;loop at lt_fun into ls_fun where f2 = wa-f2.&lt;/P&gt;&lt;P&gt;move-correspoding wa to ls_final.&lt;/P&gt;&lt;P&gt;ls_final-f2 = ls_fun-f2.&lt;/P&gt;&lt;P&gt;ls_final-f3 = ls_fun-f3.&lt;/P&gt;&lt;P&gt;append ls_final to lt_final.&lt;/P&gt;&lt;P&gt;clear ls_final.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lt_final will have the final internal table.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 08:55:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-help-needed/m-p/1778668#M335667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T08:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: internal table help needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-help-needed/m-p/1778669#M335668</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 am assiuming the output is like this. Due to some setting problem it was changed.&lt;/P&gt;&lt;P&gt;                     X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;f1	f2	f3	f4	f5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1	a	a1	a2	a3&lt;/P&gt;&lt;P&gt;o              o	o              b2	b3&lt;/P&gt;&lt;P&gt;o              o              o               c2            c3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls assume that o means no value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 09:01:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-help-needed/m-p/1778669#M335668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T09:01:05Z</dc:date>
    </item>
  </channel>
</rss>

