<?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: Processing multiple dynamic internal tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-multiple-dynamic-internal-tables/m-p/5073918#M1178710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using this piece of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:field_key1 TYPE char100,&lt;/P&gt;&lt;P&gt;           field_nam1 TYPE char18. "Assumed to be material number&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; field_key1 = 'MATNR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at &amp;lt;T01&amp;gt; ASSIGNING &amp;lt;T01_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ASSIGN COMPONENT 1 OF STRUCTURE &amp;lt;T01_wa&amp;gt; TO &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;    field_nam1 = &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at &amp;lt;T02&amp;gt; ASSIGNING &amp;lt;T02_wa&amp;gt; WHERE (field_key1) = field_nam1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Your logic&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;All the best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jan 2009 02:55:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-21T02:55:44Z</dc:date>
    <item>
      <title>Processing multiple dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-multiple-dynamic-internal-tables/m-p/5073916#M1178708</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 multiple dyanmic internal tables in my prg like &amp;lt;T01&amp;gt;,&amp;lt;T02&amp;gt;,&amp;lt;T03&amp;gt;.....I have relation between the tables through which I want to process them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at &amp;lt;T01&amp;gt; into &amp;lt;T01_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;  loop at &amp;lt;T02&amp;gt; into &amp;lt;T02_wa&amp;gt; where "logical expression".&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to now build the where clause that is the logical expression too dynamically. Say &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T01-Text_Id = T02_Text_Id and T01_Attrib = T02_Attrib.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I build this where clause and use it in processing the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could some one help me this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 22:58:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-multiple-dynamic-internal-tables/m-p/5073916#M1178708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T22:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Processing multiple dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-multiple-dynamic-internal-tables/m-p/5073917#M1178709</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;it looks like it's not possible to use dynamic condition in LOOP statement. What you can do is to check your dynamic condition in the loop. In case that condition is not fulfilled then you will use statement CONTINUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at &amp;lt;T01&amp;gt; into &amp;lt;T01_wa&amp;gt;.
  loop at &amp;lt;T02&amp;gt; into &amp;lt;T02_wa&amp;gt;.
  &amp;lt;evaluate condition&amp;gt;
  IF &amp;lt;evaluation&amp;gt; NE 'X'.
    CONTINUE.
  ENDIF.
  endloop.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 02:09:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-multiple-dynamic-internal-tables/m-p/5073917#M1178709</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2009-01-21T02:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Processing multiple dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-multiple-dynamic-internal-tables/m-p/5073918#M1178710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using this piece of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:field_key1 TYPE char100,&lt;/P&gt;&lt;P&gt;           field_nam1 TYPE char18. "Assumed to be material number&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; field_key1 = 'MATNR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at &amp;lt;T01&amp;gt; ASSIGNING &amp;lt;T01_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ASSIGN COMPONENT 1 OF STRUCTURE &amp;lt;T01_wa&amp;gt; TO &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;    field_nam1 = &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at &amp;lt;T02&amp;gt; ASSIGNING &amp;lt;T02_wa&amp;gt; WHERE (field_key1) = field_nam1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Your logic&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;All the best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 02:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-multiple-dynamic-internal-tables/m-p/5073918#M1178710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T02:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Processing multiple dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-multiple-dynamic-internal-tables/m-p/5073919#M1178711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at &amp;lt;T02&amp;gt; ASSIGNING &amp;lt;T02_wa&amp;gt; WHERE (field_key1) = field_nam1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the above line I am getting the error as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"In LOOP...WHERE....the line type of the table must be statically defined."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 16:19:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-multiple-dynamic-internal-tables/m-p/5073919#M1178711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T16:19:47Z</dc:date>
    </item>
  </channel>
</rss>

