<?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: TABLES in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/1292183#M155718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi maui ,&lt;/P&gt;&lt;P&gt;define int_tab1 type ref tab&lt;/P&gt;&lt;P&gt;select from ref tab to int tab1 for all values&lt;/P&gt;&lt;P&gt;define int tab2 of type function mod table y&lt;/P&gt;&lt;P&gt;loop at int_tab1.&lt;/P&gt;&lt;P&gt;if int_tab-f2 is not initial.&lt;/P&gt;&lt;P&gt;int_tab2-f1 = int_tab1-f1&lt;/P&gt;&lt;P&gt;int_tab-f2  = int_tab1-f2&lt;/P&gt;&lt;P&gt;append int_tab2.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if int_tab-f3 is not initial.&lt;/P&gt;&lt;P&gt;int_tab2-f1 = int_tab1-f1&lt;/P&gt;&lt;P&gt;int_tab-f2  = int_tab1-f3&lt;/P&gt;&lt;P&gt;append int_tab2.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if int_tab-f4 is not initial.&lt;/P&gt;&lt;P&gt;int_tab2-f1 = int_tab1-f1&lt;/P&gt;&lt;P&gt;int_tab-f2  = int_tab1-f4&lt;/P&gt;&lt;P&gt;append int_tab2.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;and so on&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 May 2006 08:31:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-20T08:31:25Z</dc:date>
    <item>
      <title>TABLES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/1292181#M155716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi!&lt;/P&gt;&lt;P&gt;I'm doing a bapi which is similar on this table below.  How will I start using the select statement? Can you help on this. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAMPLE&lt;/P&gt;&lt;P&gt;REF TABLE:&lt;/P&gt;&lt;P&gt;TRANS TABLE X&lt;/P&gt;&lt;P&gt;f1 | f2 | f3 | f4 &lt;/P&gt;&lt;P&gt;A  | 1  |    |&lt;/P&gt;&lt;P&gt;B  | 1  | 2  |&lt;/P&gt;&lt;P&gt;C  | 1  | 2  | 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TARGET TABLE: &lt;/P&gt;&lt;P&gt;FUNCTION MOD TABLE Y&lt;/P&gt;&lt;P&gt;f1 | f2&lt;/P&gt;&lt;P&gt;A  | 1&lt;/P&gt;&lt;P&gt;B  | 1&lt;/P&gt;&lt;P&gt;B  | 2&lt;/P&gt;&lt;P&gt;C  | 1&lt;/P&gt;&lt;P&gt;C  | 2&lt;/P&gt;&lt;P&gt;C  | 3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2006 08:12:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/1292181#M155716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-20T08:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: TABLES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/1292182#M155717</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;Try this logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB1.&lt;/P&gt;&lt;P&gt; ITAB2-F1 = ITAB1-F1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; IF NOT ITAB1-F2 IS INTIAL.&lt;/P&gt;&lt;P&gt;  ITAB2-F2 = ITAB2-F2.&lt;/P&gt;&lt;P&gt;  APPEND ITAB2.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF NOT ITAB1-F3 IS INTIAL.&lt;/P&gt;&lt;P&gt;  ITAB2-F2 = ITAB2-F3.&lt;/P&gt;&lt;P&gt;  APPEND ITAB2.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF NOT ITAB1-F4 IS INTIAL.&lt;/P&gt;&lt;P&gt;  ITAB2-F2 = ITAB2-F4.&lt;/P&gt;&lt;P&gt;  APPEND ITAB2.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CLEAR ITAB2.&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;Regards&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2006 08:25:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/1292182#M155717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-20T08:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: TABLES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/1292183#M155718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi maui ,&lt;/P&gt;&lt;P&gt;define int_tab1 type ref tab&lt;/P&gt;&lt;P&gt;select from ref tab to int tab1 for all values&lt;/P&gt;&lt;P&gt;define int tab2 of type function mod table y&lt;/P&gt;&lt;P&gt;loop at int_tab1.&lt;/P&gt;&lt;P&gt;if int_tab-f2 is not initial.&lt;/P&gt;&lt;P&gt;int_tab2-f1 = int_tab1-f1&lt;/P&gt;&lt;P&gt;int_tab-f2  = int_tab1-f2&lt;/P&gt;&lt;P&gt;append int_tab2.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if int_tab-f3 is not initial.&lt;/P&gt;&lt;P&gt;int_tab2-f1 = int_tab1-f1&lt;/P&gt;&lt;P&gt;int_tab-f2  = int_tab1-f3&lt;/P&gt;&lt;P&gt;append int_tab2.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if int_tab-f4 is not initial.&lt;/P&gt;&lt;P&gt;int_tab2-f1 = int_tab1-f1&lt;/P&gt;&lt;P&gt;int_tab-f2  = int_tab1-f4&lt;/P&gt;&lt;P&gt;append int_tab2.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;and so on&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 May 2006 08:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/1292183#M155718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-20T08:31:25Z</dc:date>
    </item>
  </channel>
</rss>

