<?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: table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2926412#M689406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Table control used in module pool program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This syntax is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS: &amp;lt;in screen designing you can declare the control name (that name you can declare here&amp;gt; TYPE TABLEVIEW USING SCREEN &amp;lt;screen number&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example: in screen designing I can declare that VCONTROL So I can use that name here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS : VCONTROL TYPE TABLEVIEW USING SCREEN 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the main loginc in table control&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2007 11:14:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-24T11:14:33Z</dc:date>
    <item>
      <title>table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2926409#M689403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;syntax for table control&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 10:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2926409#M689403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T10:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2926410#M689404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shankar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax of loop with control in table control is as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if helpful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP [AT itab [INTO wa] [CURSOR top_line] [FROM n1] [TO n2]] &lt;/P&gt;&lt;P&gt;     WITH CONTROL contrl. &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;Also check out transaction 'ABAPDOCU' for more information on table contol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 10:17:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2926410#M689404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T10:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2926411#M689405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Table Control is used in Module Pool Programming.&lt;/P&gt;&lt;P&gt;Table Control is used to display data of any internal table of ur program or the data from dictionary table directly ino a table format. Using table control with the help of screen painter, data can be easily displayed.It can be created manually through coding or using Table Control Wizard given in the sreen painter.&lt;/P&gt;&lt;P&gt;Table Controls are labeled screen elements to display and process table-type data on dynpros. In a table control, a maximum of 255 screen elements is summarized in a table control row, which can be repeated multiple times within the table control on the screen. The fields of a row have to be created only once as dynpro fields in the dynpro and as global data objects in the ABAP program. Table controls provide an area on the screen for editing the displayed table control rows which offers column headers, marking of rows and columns, horizontal and vertical scrolling with scroll bars, the definition of lead columns and saving of the current settings (see DEMO_DYNPRO). Parts of the user actions in table controls are processed on the presentation server. Vertical scrolling, saving of settings, and changes of screen size (if the resizing properties have been set accordingly when defining the table controls) trigger the event PAI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A column of the table controls can be defined as marking column , in which the screen element is displayed like a pushbutton and treated like a checkbox (see the first column of the table control in DEMO_DYNPRO). A checked selection key sets the content of the assigned dynpro-field to "X", an unchecked key sets the content to " ". The state of the selection key is transported at the event PAI to a data object of the same name in the ABAP-program and at PBO, you can set the marker via the content of the data object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table Controls encapsulate step loops and make their independent use obsolete. The processing of table controls in the dynpro flow logic accordingly bases on the step loop technique using the statement LOOP. In contrary to the processing of independent step loops, the loops of the dynpro flow logic are linked with the addition WITH CONTROL with the table controls of the dynpros during the processing of table controls. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the ABAP-program, table controls must be declared with the statement CONTROLS, whereat a special structure for handling of table controls is created. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;PROGRAM ZTABLECON.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: LFA1, EKKO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: OKCODE1 LIKE SY-UCOMM,&lt;/P&gt;&lt;P&gt;OKCODE2 LIKE SY-UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS TABC TYPE TABLEVIEW USING SCREEN 1001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;MANDT LIKE EKKO-MANDT,&lt;/P&gt;&lt;P&gt;EBELN LIKE EKKO-EBELN,&lt;/P&gt;&lt;P&gt;BSTYP LIKE EKKO-BSTYP,&lt;/P&gt;&lt;P&gt;BSART LIKE EKKO-BSART,&lt;/P&gt;&lt;P&gt;END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_1000 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE OKCODE1.&lt;/P&gt;&lt;P&gt;WHEN 'BACK'.&lt;/P&gt;&lt;P&gt;SET SCREEN 0.&lt;/P&gt;&lt;P&gt;WHEN 'NEXT'.&lt;/P&gt;&lt;P&gt;SET SCREEN 1001.&lt;/P&gt;&lt;P&gt;SELECT * FROM EKKO INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE&lt;/P&gt;&lt;P&gt;LIFNR = LFA1-LIFNR.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. " USER_COMMAND_1001 INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE MOVE_DATA OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EKKO-MANDT = ITAB-MANDT.&lt;/P&gt;&lt;P&gt;EKKO-EBELN = ITAB-EBELN.&lt;/P&gt;&lt;P&gt;EKKO-BSTYP = ITAB-BSTYP.&lt;/P&gt;&lt;P&gt;EKKO-BSART = ITAB-BSART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. " MOVE_DATA OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_1001 INPUT.&lt;/P&gt;&lt;P&gt;CASE OKCODE2.&lt;/P&gt;&lt;P&gt;WHEN 'BACK'.&lt;/P&gt;&lt;P&gt;SET SCREEN 1000.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMODULE. " USER_COMMAND_1001 OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE STATUS_1001 OUTPUT.&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'MENU'.&lt;/P&gt;&lt;P&gt;SET TITLEBAR 'TIT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. " STATUS_1001 OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE STATUS_1000 OUTPUT.&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'DMENU'.&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_1000 OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ON_CTMENU_FORM1 USING CMENU TYPE REF TO CL_CTMENU.&lt;/P&gt;&lt;P&gt;CALL METHOD CMENU-&amp;gt;LOAD_GUI_STATUS&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;PROGRAM = ' ZBHTCTRL'&lt;/P&gt;&lt;P&gt;STATUS = 'CMENU'&lt;/P&gt;&lt;P&gt;MENU = CMENU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD CMENU-&amp;gt;ADD_FUNCTION&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FCODE = 'RX'&lt;/P&gt;&lt;P&gt;TEXT = 'RECIEVE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLOW LOGIC:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;MODULE STATUS_1000.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;MODULE STATUS_1001.&lt;/P&gt;&lt;P&gt;LOOP AT ITAB WITH CONTROL TABC CURSOR TABC-TOP_LINE.&lt;/P&gt;&lt;P&gt;MODULE MOVE_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;MODULE USER_COMMAND_1001.&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Useful Sites&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_45b/helpdata/en/d1/801bdf454211d189710000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_45b/helpdata/en/d1/801bdf454211d189710000e8322d00/content.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapmaterial.com/tablecontrol_sap.html" target="test_blank"&gt;http://www.sapmaterial.com/tablecontrol_sap.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;REWARD POINTS IF USEFUL&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gokul &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Close the Thread if your question is answered&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 10:38:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2926411#M689405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T10:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2926412#M689406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Table control used in module pool program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This syntax is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS: &amp;lt;in screen designing you can declare the control name (that name you can declare here&amp;gt; TYPE TABLEVIEW USING SCREEN &amp;lt;screen number&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example: in screen designing I can declare that VCONTROL So I can use that name here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS : VCONTROL TYPE TABLEVIEW USING SCREEN 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the main loginc in table control&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 11:14:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2926412#M689406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T11:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2926413#M689407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in main program declare&lt;/P&gt;&lt;P&gt; CONTROLS: table control name TYPE TABLEVIEW USING SCREEN (screen no).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO you have to write::&lt;/P&gt;&lt;P&gt;LOOP AT   Internal table WITH CONTROL Table control name&lt;/P&gt;&lt;P&gt;       CURSOR Table control name-current_line.&lt;/P&gt;&lt;P&gt;   MODULE zz_split_code_move&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;double click on this module::&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING internal table name  TO screen field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI you must have to write &lt;/P&gt;&lt;P&gt;LOOP&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 13:06:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2926413#M689407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T13:06:30Z</dc:date>
    </item>
  </channel>
</rss>

