<?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 Two table controls on one screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-table-controls-on-one-screen/m-p/5978938#M1340518</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 trying to put two table controls onto one screen. In the flow logic do I simply state both loops right under the other ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;  MODULE STATUS_.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE init_.&lt;/P&gt;&lt;P&gt;Loop gl_table1 at gl_structure1&lt;/P&gt;&lt;P&gt;WITH CONTROL tc_table1&lt;/P&gt;&lt;P&gt;       CURSOR tc_table1-current_line.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Loop gl_table2 at gl_structure2&lt;/P&gt;&lt;P&gt;WITH CONTROL tc_table2&lt;/P&gt;&lt;P&gt;       CURSOR tc_table2-current_line.&lt;/P&gt;&lt;P&gt;&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;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop gl_table1 at gl_structure1.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Loop gl_table2 at gl_structure2.&lt;/P&gt;&lt;P&gt;&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;MODULE user_command_.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because I am doing it as above and its telling me that the structure of the first table control is unknown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thnx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Aug 2009 13:55:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-19T13:55:14Z</dc:date>
    <item>
      <title>Two table controls on one screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-table-controls-on-one-screen/m-p/5978938#M1340518</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 trying to put two table controls onto one screen. In the flow logic do I simply state both loops right under the other ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;  MODULE STATUS_.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE init_.&lt;/P&gt;&lt;P&gt;Loop gl_table1 at gl_structure1&lt;/P&gt;&lt;P&gt;WITH CONTROL tc_table1&lt;/P&gt;&lt;P&gt;       CURSOR tc_table1-current_line.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Loop gl_table2 at gl_structure2&lt;/P&gt;&lt;P&gt;WITH CONTROL tc_table2&lt;/P&gt;&lt;P&gt;       CURSOR tc_table2-current_line.&lt;/P&gt;&lt;P&gt;&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;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop gl_table1 at gl_structure1.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Loop gl_table2 at gl_structure2.&lt;/P&gt;&lt;P&gt;&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;MODULE user_command_.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because I am doing it as above and its telling me that the structure of the first table control is unknown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thnx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 13:55:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-table-controls-on-one-screen/m-p/5978938#M1340518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T13:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Two table controls on one screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-table-controls-on-one-screen/m-p/5978939#M1340519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only restriction is that table control should appear in the same order in screen dynpro and in flow logic.&lt;/P&gt;&lt;P&gt;Of course internal table and control definition must be in a part of the program accessible, like a TOP include. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;But that has no relation with the fact that there are two table controls, and that is not the cause of your problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press F1 on [LOOP - WITH CONTROL|http://help.sap.com/abapdocu/en/DYNPLOOP.htm] statement :  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* PBO
LOOP AT gl_table1 INTO gl_structure1 WITH CONTROL tc_table1 CURSOR tc_table1-current_line. 
* ...
ENDLOOP. 
LOOP AT gl_table2 INTO gl_structure2 WITH CONTROL tc_table2 CURSOR tc_table2-current_line.
* ...
ENDLOOP.
* PAI
LOOP AT gl_table1 INTO gl_structure1 
* ...
ENDLOOP. 
LOOP AT gl_table2 INTO gl_structure2.
* ...
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 14:01:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-table-controls-on-one-screen/m-p/5978939#M1340519</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-08-19T14:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Two table controls on one screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-table-controls-on-one-screen/m-p/5978940#M1340520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check [Using Multiple Table Controls In One Screen|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9771] &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt;;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 14:06:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-table-controls-on-one-screen/m-p/5978940#M1340520</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-08-19T14:06:47Z</dc:date>
    </item>
  </channel>
</rss>

