<?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 show data through table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-show-data-through-table-control/m-p/3136957#M745426</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi saubrab,&lt;/P&gt;&lt;P&gt;                This is kiran kumar.G.I am sending some sample code to populate data into table control check it once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will give input in 100 screen. and display table control in 200 screen.check it once once ..ok....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SE38 :(CODE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Module pool       YMODULEPOOL_TABLECONTROL1                         *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; DEVELOPER   : KIRAN KUMAR.G                                         *&lt;/P&gt;&lt;P&gt;*&amp;amp; PURPOSE     : TABLE CONTROL DEMO                                    *&lt;/P&gt;&lt;P&gt;*&amp;amp; CREATION DT : 17/12/2007                                            *&lt;/P&gt;&lt;P&gt;*&amp;amp; T.CODE      : YMODTABLECONTROL1                                     *&lt;/P&gt;&lt;P&gt;*&amp;amp; REQUEST     : ERPK900035                                            *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM  ymodulepool_tablecontrol1.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: yvbap,  "Sales Document: Item Data&lt;/P&gt;&lt;P&gt;        vbak.   "Sales Document: Header Data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Controls&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS: my_table TYPE TABLEVIEW USING SCREEN 200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Global Variables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gv_lines    TYPE i,&lt;/P&gt;&lt;P&gt;      gv_lines1   type i,&lt;/P&gt;&lt;P&gt;      gv_temp     type i,&lt;/P&gt;&lt;P&gt;      gv_flag(20) TYPE c VALUE 'DISP',&lt;/P&gt;&lt;P&gt;      gv_mode1    TYPE c,&lt;/P&gt;&lt;P&gt;      gv_mode     TYPE c VALUE 'C'. " C: Change, D :Display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF gt_item OCCURS 0,&lt;/P&gt;&lt;P&gt;        vbeln LIKE vbap-vbeln,  "Sales Document Number&lt;/P&gt;&lt;P&gt;        posnr LIKE vbap-posnr,  "Sales Document Item&lt;/P&gt;&lt;P&gt;        matnr LIKE vbap-matnr,  "Material Number&lt;/P&gt;&lt;P&gt;        matkl LIKE vbap-matkl,  "Material Group&lt;/P&gt;&lt;P&gt;        arktx LIKE vbap-arktx,  "Short Text for Sales Order Item&lt;/P&gt;&lt;P&gt;        cflag,                  "Deletion Indicator&lt;/P&gt;&lt;P&gt;      END OF gt_item.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE status_0100 OUTPUT.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'ZTABLECONTROL' OF PROGRAM 'YMODULEPOOL_TABLECONTROL'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET TITLEBAR 'xxx'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_0100 INPUT.&lt;/P&gt;&lt;P&gt;  CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;    WHEN 'DISP'.&lt;/P&gt;&lt;P&gt;      SELECT single vbeln&lt;/P&gt;&lt;P&gt;                    erdat&lt;/P&gt;&lt;P&gt;                    angdt&lt;/P&gt;&lt;P&gt;                    bnddt&lt;/P&gt;&lt;P&gt;               FROM vbak&lt;/P&gt;&lt;P&gt;              INTO (vbak-vbeln,vbak-erdat,&lt;/P&gt;&lt;P&gt;                    vbak-angdt,vbak-bnddt)&lt;/P&gt;&lt;P&gt;              WHERE vbeln = vbak-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;*Fetch the table control data and place them in Internal Table&lt;/P&gt;&lt;P&gt;          SELECT vbeln&lt;/P&gt;&lt;P&gt;                 posnr&lt;/P&gt;&lt;P&gt;                 matnr&lt;/P&gt;&lt;P&gt;                 matkl&lt;/P&gt;&lt;P&gt;                 arktx&lt;/P&gt;&lt;P&gt;            FROM yvbap&lt;/P&gt;&lt;P&gt;            INTO TABLE gt_item&lt;/P&gt;&lt;P&gt;            WHERE vbeln = vbak-vbeln.&lt;/P&gt;&lt;P&gt;          IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;*NO OF line in the Internal Table&lt;/P&gt;&lt;P&gt;            DESCRIBE TABLE gt_item LINES gv_lines.&lt;/P&gt;&lt;P&gt;            my_table-lines = gv_lines + 20.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;*Call Screen 200.&lt;/P&gt;&lt;P&gt;        SET SCREEN 200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WHEN  'EXIT' OR 'BACK' OR 'CANCEL'.&lt;/P&gt;&lt;P&gt;*Exit from the Program&lt;/P&gt;&lt;P&gt;        CALL TRANSACTION 'SESSION_MANAGER'.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDMODULE.                 " USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;module STATUS_0200 output.&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'ZTABLECONTROL1'.&lt;/P&gt;&lt;P&gt;endmodule.                 " STATUS_0200  OUTPU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  copy_data  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module copy_data output.&lt;/P&gt;&lt;P&gt;*Fetch the current line data from the Table control&lt;/P&gt;&lt;P&gt;read table gt_item index my_table-current_line.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;*Populating data into screen fields&lt;/P&gt;&lt;P&gt;gt_item-vbeln = gt_item-vbeln.&lt;/P&gt;&lt;P&gt;gt_item-posnr = gt_item-posnr.&lt;/P&gt;&lt;P&gt;gt_item-matnr = gt_item-matnr.&lt;/P&gt;&lt;P&gt;gt_item-matkl = gt_item-matkl.&lt;/P&gt;&lt;P&gt;gt_item-arktx = gt_item-arktx.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SE51:CODE (SCREEN 100)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt; MODULE STATUS_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt; MODULE USER_COMMAND_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SE51 :CODE (SCREEN 200)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt; MODULE STATUS_0200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_item with control my_table cursor my_table-current_line.&lt;/P&gt;&lt;P&gt;module copy_data.&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 at gt_item.&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0200.&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;                         HAVE A NICE DAY..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Award points if helpful,&lt;/STRONG&gt;kiran kumar.G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Dec 2007 05:31:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-24T05:31:44Z</dc:date>
    <item>
      <title>how to show data through table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-show-data-through-table-control/m-p/3136955#M745424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created an table control through wizard using table EKKO.&lt;/P&gt;&lt;P&gt;I have to populate one internal table( type ekko ), and then show it in output  through table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise, how to do that and in where i have to write the codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will reward points for every suggestion&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 05:22:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-show-data-through-table-control/m-p/3136955#M745424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T05:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to show data through table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-show-data-through-table-control/m-p/3136956#M745425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check these programs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;demo_dynpro_tabcont_loop&lt;/P&gt;&lt;P&gt;demo_dynpro_tabcont_loop_at&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have a better idea on table controls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 05:26:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-show-data-through-table-control/m-p/3136956#M745425</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-12-24T05:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to show data through table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-show-data-through-table-control/m-p/3136957#M745426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi saubrab,&lt;/P&gt;&lt;P&gt;                This is kiran kumar.G.I am sending some sample code to populate data into table control check it once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will give input in 100 screen. and display table control in 200 screen.check it once once ..ok....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SE38 :(CODE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Module pool       YMODULEPOOL_TABLECONTROL1                         *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; DEVELOPER   : KIRAN KUMAR.G                                         *&lt;/P&gt;&lt;P&gt;*&amp;amp; PURPOSE     : TABLE CONTROL DEMO                                    *&lt;/P&gt;&lt;P&gt;*&amp;amp; CREATION DT : 17/12/2007                                            *&lt;/P&gt;&lt;P&gt;*&amp;amp; T.CODE      : YMODTABLECONTROL1                                     *&lt;/P&gt;&lt;P&gt;*&amp;amp; REQUEST     : ERPK900035                                            *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM  ymodulepool_tablecontrol1.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: yvbap,  "Sales Document: Item Data&lt;/P&gt;&lt;P&gt;        vbak.   "Sales Document: Header Data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Controls&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS: my_table TYPE TABLEVIEW USING SCREEN 200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Global Variables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gv_lines    TYPE i,&lt;/P&gt;&lt;P&gt;      gv_lines1   type i,&lt;/P&gt;&lt;P&gt;      gv_temp     type i,&lt;/P&gt;&lt;P&gt;      gv_flag(20) TYPE c VALUE 'DISP',&lt;/P&gt;&lt;P&gt;      gv_mode1    TYPE c,&lt;/P&gt;&lt;P&gt;      gv_mode     TYPE c VALUE 'C'. " C: Change, D :Display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF gt_item OCCURS 0,&lt;/P&gt;&lt;P&gt;        vbeln LIKE vbap-vbeln,  "Sales Document Number&lt;/P&gt;&lt;P&gt;        posnr LIKE vbap-posnr,  "Sales Document Item&lt;/P&gt;&lt;P&gt;        matnr LIKE vbap-matnr,  "Material Number&lt;/P&gt;&lt;P&gt;        matkl LIKE vbap-matkl,  "Material Group&lt;/P&gt;&lt;P&gt;        arktx LIKE vbap-arktx,  "Short Text for Sales Order Item&lt;/P&gt;&lt;P&gt;        cflag,                  "Deletion Indicator&lt;/P&gt;&lt;P&gt;      END OF gt_item.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE status_0100 OUTPUT.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'ZTABLECONTROL' OF PROGRAM 'YMODULEPOOL_TABLECONTROL'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET TITLEBAR 'xxx'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_0100 INPUT.&lt;/P&gt;&lt;P&gt;  CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;    WHEN 'DISP'.&lt;/P&gt;&lt;P&gt;      SELECT single vbeln&lt;/P&gt;&lt;P&gt;                    erdat&lt;/P&gt;&lt;P&gt;                    angdt&lt;/P&gt;&lt;P&gt;                    bnddt&lt;/P&gt;&lt;P&gt;               FROM vbak&lt;/P&gt;&lt;P&gt;              INTO (vbak-vbeln,vbak-erdat,&lt;/P&gt;&lt;P&gt;                    vbak-angdt,vbak-bnddt)&lt;/P&gt;&lt;P&gt;              WHERE vbeln = vbak-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;*Fetch the table control data and place them in Internal Table&lt;/P&gt;&lt;P&gt;          SELECT vbeln&lt;/P&gt;&lt;P&gt;                 posnr&lt;/P&gt;&lt;P&gt;                 matnr&lt;/P&gt;&lt;P&gt;                 matkl&lt;/P&gt;&lt;P&gt;                 arktx&lt;/P&gt;&lt;P&gt;            FROM yvbap&lt;/P&gt;&lt;P&gt;            INTO TABLE gt_item&lt;/P&gt;&lt;P&gt;            WHERE vbeln = vbak-vbeln.&lt;/P&gt;&lt;P&gt;          IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;*NO OF line in the Internal Table&lt;/P&gt;&lt;P&gt;            DESCRIBE TABLE gt_item LINES gv_lines.&lt;/P&gt;&lt;P&gt;            my_table-lines = gv_lines + 20.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;*Call Screen 200.&lt;/P&gt;&lt;P&gt;        SET SCREEN 200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WHEN  'EXIT' OR 'BACK' OR 'CANCEL'.&lt;/P&gt;&lt;P&gt;*Exit from the Program&lt;/P&gt;&lt;P&gt;        CALL TRANSACTION 'SESSION_MANAGER'.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDMODULE.                 " USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;module STATUS_0200 output.&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'ZTABLECONTROL1'.&lt;/P&gt;&lt;P&gt;endmodule.                 " STATUS_0200  OUTPU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  copy_data  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module copy_data output.&lt;/P&gt;&lt;P&gt;*Fetch the current line data from the Table control&lt;/P&gt;&lt;P&gt;read table gt_item index my_table-current_line.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;*Populating data into screen fields&lt;/P&gt;&lt;P&gt;gt_item-vbeln = gt_item-vbeln.&lt;/P&gt;&lt;P&gt;gt_item-posnr = gt_item-posnr.&lt;/P&gt;&lt;P&gt;gt_item-matnr = gt_item-matnr.&lt;/P&gt;&lt;P&gt;gt_item-matkl = gt_item-matkl.&lt;/P&gt;&lt;P&gt;gt_item-arktx = gt_item-arktx.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SE51:CODE (SCREEN 100)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt; MODULE STATUS_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt; MODULE USER_COMMAND_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SE51 :CODE (SCREEN 200)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt; MODULE STATUS_0200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_item with control my_table cursor my_table-current_line.&lt;/P&gt;&lt;P&gt;module copy_data.&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 at gt_item.&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0200.&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;                         HAVE A NICE DAY..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Award points if helpful,&lt;/STRONG&gt;kiran kumar.G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 05:31:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-show-data-through-table-control/m-p/3136957#M745426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T05:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to show data through table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-show-data-through-table-control/m-p/3136958#M745427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the STEP by STEP Procedure in the follwong Link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/022ba607-0301-0010-e382-fdedca553f5f" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/022ba607-0301-0010-e382-fdedca553f5f&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kanagaraja L.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 05:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-show-data-through-table-control/m-p/3136958#M745427</guid>
      <dc:creator>Kanagaraja_L</dc:creator>
      <dc:date>2007-12-24T05:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to show data through table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-show-data-through-table-control/m-p/3136959#M745428</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;we can create tablecontrol of a particular fields in EKKO table.&lt;/P&gt;&lt;P&gt;we select that fields in dictionary and design that table control. we activate and save the layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this layout we have a flow logic.&lt;/P&gt;&lt;P&gt;for that flow logic we have a PBO,PAI.&lt;/P&gt;&lt;P&gt;in this we write the code for table control.&lt;/P&gt;&lt;P&gt;in top include we write the logic for tablecontrol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To handle table controls in ABAP programs, you must declare a control in the declaration part of the program for each table control using the following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS &amp;lt;ctrl&amp;gt; TYPE TABLEVIEW USING SCREEN &amp;lt;scr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;ctrl&amp;gt; is the name of the table control on a screen in the ABAP program. The control allows the ABAP program to read the attributes of the table control and to influence the control. The statement also declares a deep structure of name &amp;lt;ctl&amp;gt;. The data type of the structure corresponds to the type CXTAB_CONTROL defined in the type group CXTAB in the ABAP Dictionary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At runtime the components of the structure contain the attributes of the table control. Several of the initial values are determined in the Screen Painter. The initial value for the control &amp;lt;ctl&amp;gt; is taken from the screen which is determined using the addition USING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you write the statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH CONTROL &amp;lt;ctrl&amp;gt; FROM SCREEN &amp;lt;scr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can initialize a table control at any time with the initial value of a screen &amp;lt;scr&amp;gt;. Values that are not taken from the settings in the Screen Painter, are set to the current status of the table control at PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following statement loops through an internal table and a screen table in parallel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT &amp;lt;internal table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In particular, LOOP AT loops through the portion of the internal table that is currently visible in the screen. You can use this form of the LOOP statement for both table controls and step loops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The complete syntax for this form of the LOOP statement is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT &amp;lt;internal table&amp;gt; CURSOR &amp;lt;scroll-var&amp;gt;&lt;/P&gt;&lt;P&gt;                            [WITH CONTROL &amp;lt;table-control&amp;gt; ]&lt;/P&gt;&lt;P&gt;                            [FROM &amp;lt;line1&amp;gt; ]  [TO &amp;lt;line2&amp;gt; ]. &lt;/P&gt;&lt;P&gt;      ...&amp;lt;actions&amp;gt;...&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This form of LOOP loops through the internal table, performing &amp;lt;actions&amp;gt; for each row. For each internal table row, the system transfers the relevant program fields to or from the corresponding screen table row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using step loops, omit the CURSOR parameter in the PAI event. The FROM and TO parameters are only possible with step loops. (For further information, refer to Using Step Loops.) The WITH CONTROL parameter is only for use with table controls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward points if it useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;satish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 05:41:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-show-data-through-table-control/m-p/3136959#M745428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T05:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to show data through table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-show-data-through-table-control/m-p/3136960#M745429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this link, hope this would help you to solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.niraj.tripod.com/id29.html" target="test_blank"&gt;http://sap.niraj.tripod.com/id29.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 05:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-show-data-through-table-control/m-p/3136960#M745429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T05:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to show data through table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-show-data-through-table-control/m-p/3136961#M745430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE CONTROL&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; These are the screen elements used to display tabular data they can be called&lt;/P&gt;&lt;P&gt;as screen tables( like STEP LOOP).To use table control we have to create it on the screen using SCREEN PAINTER(SE51) and declare a control variable of TYPE TABLEVIEW using CONTROLS statement in the ABAP program. We have to use LOOP .. ENDLOOP statement in both PBO and PAI with or without AT int_table parameter. IF AT int_table parameter is not used than we have to place a MODULE call between the LOOP...ENDLOOP statement to fill the screen table rows from the ABAP program in PBO and program our own scrolling functions&lt;/P&gt;&lt;P&gt;using OK_CODE field.&lt;/P&gt;&lt;P&gt;Having a parallel loop(at screen table rows &amp;amp; int table rows) by using parameter &lt;/P&gt;&lt;P&gt;AT int_table makes the ABAP code simple.&lt;/P&gt;&lt;P&gt;A special structure of type CXTAB_CONTROL is used to set/get various&lt;/P&gt;&lt;P&gt;attributes of table control at runtime like CURRENT_LINE ,TOP_LINE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ABAP declaration&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CONTROLS: tab_con TYPE TABLEVIEW  USING SCREEN nnnn&lt;/P&gt;&lt;P&gt;  Here tab_con is the same name we used in screen for the table control.&lt;/P&gt;&lt;P&gt;This ABAP statement will declare a control variable that will be used to access&lt;/P&gt;&lt;P&gt;the table control ,  and set it's various attributes like number of fixed columns(tab_con-FIXED_COLS) ,total number of records it will display(tab_con-LINES).It is of type CXTAB_CONTROL and is a deep structure(structure containing structures).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;REFRESH CONTROL  tab_con FROM SCREEN nnnn&lt;/P&gt;&lt;P&gt; This ABAP statement will initialize the table control on the screen nnnn to its initial values.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PBO processing&lt;/P&gt;&lt;P&gt;In PBO we have to use the screen LOOP ...ENDLOOP statement , with or without&lt;/P&gt;&lt;P&gt;intenal table.&lt;/P&gt;&lt;P&gt;   LOOP WITH  CONTROL tab_con.&lt;/P&gt;&lt;P&gt;   MODULE fill_tab_con.&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt;Here a module should be called between the loop endloop statement to transfer&lt;/P&gt;&lt;P&gt;data from th ABAP program to the screen table through a structure.This module&lt;/P&gt;&lt;P&gt;should use the CURRENT_LINE attribute of the table control variable to get the&lt;/P&gt;&lt;P&gt;current screen table record index to read the data from the internal table into a work area.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;READ TABLE int_table INDEX tab_con-CURRENT_LINE&lt;/P&gt;&lt;P&gt;The record read will be placed in the header line of the internal table and will be available to the similarly named  screen fields or if these are different it can be written explicitly. e.g.&lt;/P&gt;&lt;P&gt;screen_field_name = int_table-field_name&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;   LOOP AT int_table INTO workarea WITH CONTROL tab_con CURSOR i FROM  &lt;/P&gt;&lt;P&gt;   n1 TO n2.&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Here the module call is not required to fill the screen table.The CURSOR parameter is a integer of type I indicating which absolute internal table line&lt;/P&gt;&lt;P&gt;should be the first to display on the table control .FROM n1 TO n2 can be used&lt;/P&gt;&lt;P&gt;to restrict the starting line and ending line number of the internal table , they are of type SY-TABIX.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;In both cases before the LOOP statement a module should be called which&lt;/P&gt;&lt;P&gt;is generally for setting of status ,in which we should fill the LINES attribute&lt;/P&gt;&lt;P&gt;(tab_con-LINES ) of the control with the total number of internal table records,doing this ensures correct and automatic scrolling.&lt;/P&gt;&lt;P&gt;The ABAP statement DESCRIBE TABLE int_table LINES lines can be used&lt;/P&gt;&lt;P&gt;to get the total lines in an int table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI Processing&lt;/P&gt;&lt;P&gt; We have to use LOOP ... ENDLOOP in PAI so that data can transfer fro table control to ABAP program. If we want to write changes to the data we should&lt;/P&gt;&lt;P&gt;call a module between the LOOP ... ENDLOOP. The MODULE call to process user commands (SY-UCOM) should be called after the ENDLOOP statement.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT&lt;/P&gt;&lt;P&gt;MODULE mod AT EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;LOOP AT itab_table   or LOOP "depending on whether we are using AT int_table&lt;/P&gt;&lt;P&gt;MODULE modify_int_table.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;MODULE user_command.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;In the MODULE call modify_int_table we can use&lt;/P&gt;&lt;P&gt;MODIFY int_table FROM workarea INDEX tab_con-CURRENT_LINE&lt;/P&gt;&lt;P&gt;or we can use&lt;/P&gt;&lt;P&gt;int_table-field_name = screen_field_name.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 05:46:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-show-data-through-table-control/m-p/3136961#M745430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T05:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to show data through table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-show-data-through-table-control/m-p/3136962#M745431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Its a great help from you all.&lt;/P&gt;&lt;P&gt;All replies had cleared many of my doubts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 07:25:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-show-data-through-table-control/m-p/3136962#M745431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T07:25:19Z</dc:date>
    </item>
  </channel>
</rss>

