<?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: how to do table controls in dialog programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-table-controls-in-dialog-programming/m-p/3716606#M894696</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the easiest way to get started with table controls is that you create a small test program with an internal table that you read some data into.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then your program should call a screen. (I guess you know how to create and call a simple screen.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the screen painter you now use the table control wizard to create the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose  the table control wizard from the element toolbar. &lt;/P&gt;&lt;P&gt;Define the table control area on the screen. &lt;/P&gt;&lt;P&gt;The wizard is now started in a separate dialog box. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The wizard now takes you through the steps required to generate a working table control. The process consists of seven dialogs in which you define the attributes of the table controls and the ABAP code that needs to be generated. You can navigate between the dialogs using the Continue and Back buttons. When you choose Finish, the table control is generated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Thomas Madsen Nielsen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 May 2008 10:11:44 GMT</pubDate>
    <dc:creator>TMNielsen</dc:creator>
    <dc:date>2008-05-07T10:11:44Z</dc:date>
    <item>
      <title>how to do table controls in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-table-controls-in-dialog-programming/m-p/3716604#M894694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gurus&lt;/P&gt;&lt;P&gt;can anyone suggest me &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to do table controls in dialog programming&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&amp;amp;regards&lt;/P&gt;&lt;P&gt;kals.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 09:50:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-table-controls-in-dialog-programming/m-p/3716604#M894694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T09:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to do table controls in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-table-controls-in-dialog-programming/m-p/3716605#M894695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer the folloeing code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Screen logic:&lt;/U&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
process before output.
  module status_0100.
  loop with control flights.
    module fill_table_control.
  endloop.

process after input.
  module cancel at exit-command.
  loop with control flights.
    module read_table_control.
  endloop.
  module user_command_0100.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;ABAP Logic:&lt;/U&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT demo_dynpro_tabcont_loop.

CONTROLS flights TYPE TABLEVIEW USING SCREEN 100.

DATA: ok_code TYPE sy-ucomm,
      save_ok TYPE sy-ucomm.

DATA: itab TYPE TABLE OF demo_conn,
      fill TYPE i.
TABLES demo_conn.

DATA: lines TYPE i,
      limit TYPE i.

SELECT * FROM spfli INTO CORRESPONDING FIELDS OF TABLE itab.

CALL SCREEN 100.

MODULE status_0100 OUTPUT.
  SET PF-STATUS 'SCREEN_100'.
  DESCRIBE TABLE itab LINES fill.
  flights-lines = fill.
ENDMODULE.

MODULE fill_table_control OUTPUT.
  READ TABLE itab INTO demo_conn INDEX flights-current_line.
ENDMODULE.

MODULE cancel INPUT.
  LEAVE PROGRAM.
ENDMODULE.

MODULE read_table_control INPUT.
  lines = sy-loopc.
  MODIFY itab FROM demo_conn INDEX flights-current_line.
ENDMODULE.

MODULE user_command_0100 INPUT.
  save_ok = ok_code.
  CLEAR ok_code.
  CASE save_ok.
    WHEN 'NEXT_LINE'.
      flights-top_line = flights-top_line + 1.
      limit = fill - lines + 1.
      IF flights-top_line &amp;gt; limit.
        flights-top_line = limit.
      ENDIF.
    WHEN 'PREV_LINE'.
      flights-top_line = flights-top_line - 1.
      IF flights-top_line &amp;lt; 0.
        flights-top_line = 0.
      ENDIF.
    WHEN 'NEXT_PAGE'.
      flights-top_line = flights-top_line + lines.
      limit = fill - lines + 1.
      IF flights-top_line &amp;gt; limit.
        flights-top_line = limit.
      ENDIF.
    WHEN 'PREV_PAGE'.
      flights-top_line = flights-top_line - lines.
      IF flights-top_line &amp;lt; 0.
        flights-top_line = 0.
      ENDIF.
    WHEN 'LAST_PAGE'.
      flights-top_line =  fill - lines + 1.
    WHEN 'FIRST_PAGE'.
      flights-top_line = 0.
  ENDCASE.
ENDMODULE.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 09:52:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-table-controls-in-dialog-programming/m-p/3716605#M894695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T09:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to do table controls in dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-table-controls-in-dialog-programming/m-p/3716606#M894696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the easiest way to get started with table controls is that you create a small test program with an internal table that you read some data into.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then your program should call a screen. (I guess you know how to create and call a simple screen.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the screen painter you now use the table control wizard to create the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose  the table control wizard from the element toolbar. &lt;/P&gt;&lt;P&gt;Define the table control area on the screen. &lt;/P&gt;&lt;P&gt;The wizard is now started in a separate dialog box. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The wizard now takes you through the steps required to generate a working table control. The process consists of seven dialogs in which you define the attributes of the table controls and the ABAP code that needs to be generated. You can navigate between the dialogs using the Continue and Back buttons. When you choose Finish, the table control is generated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Thomas Madsen Nielsen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 10:11:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-table-controls-in-dialog-programming/m-p/3716606#M894696</guid>
      <dc:creator>TMNielsen</dc:creator>
      <dc:date>2008-05-07T10:11:44Z</dc:date>
    </item>
  </channel>
</rss>

