<?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/1265266#M148876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A table control comes with the default feature of scrolling and Page up/down. No code is required for the same. &lt;/P&gt;&lt;P&gt;As for the insert/ delete functionality you will have to code for it. &lt;/P&gt;&lt;P&gt;Add 2 buttons on your screen for insert and delete, and check for their ok-code in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CASE ok_code.
WHEN 'INSERT'.
APPEND itab.

WHEN 'DELETE'.
DELETE itab WHERE sel = 'X'. "Add sel field in the tctrl
ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Mar 2006 12:35:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-16T12:35:54Z</dc:date>
    <item>
      <title>Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1265263#M148873</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;My requirement is to create a table control where the standard features of Scrolling , Page Up /Down, Adding/Deleting  rows should be included.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone provide me with the code snippet for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Aviroop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 12:26:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1265263#M148873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T12:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1265264#M148874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aviroop,&lt;/P&gt;&lt;P&gt; refer these for the steps..&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_nw04/helpdata/en/d1/802338454211d189710000e8322d00/content.htm"&amp;gt;Creating and Modifying Table Controls&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_nw04/helpdata/en/6d/150d67da1011d3963800a0c94260a5/content.htm"&amp;gt;Using the Table Control Wizard&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 12:31:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1265264#M148874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T12:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1265265#M148875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;use this standard program and go through the code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;demo_dynpro_tabcont_loop&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;vikky.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 12:32:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1265265#M148875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T12:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1265266#M148876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A table control comes with the default feature of scrolling and Page up/down. No code is required for the same. &lt;/P&gt;&lt;P&gt;As for the insert/ delete functionality you will have to code for it. &lt;/P&gt;&lt;P&gt;Add 2 buttons on your screen for insert and delete, and check for their ok-code in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CASE ok_code.
WHEN 'INSERT'.
APPEND itab.

WHEN 'DELETE'.
DELETE itab WHERE sel = 'X'. "Add sel field in the tctrl
ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 12:35:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1265266#M148876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T12:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1265267#M148877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aviroop ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the sample code for the same:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table control  : TC1&lt;/P&gt;&lt;P&gt;Internal table : it_zsd00003&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*In the attributes of the table control, select w/SelColumn to get a selection column on the table control, and give a name &lt;/P&gt;&lt;P&gt; (In this example IT_ZSD00003-LINESEL).&lt;/P&gt;&lt;P&gt;*Remember to include the field IT_ZSD00003-LINESEL in the internal table ( linesel(1)       type c, ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*When used with an internal table, remember to program&lt;/P&gt;&lt;P&gt;the update functionality of the database tables. Update and validation can be done when leaving the screen or in PAI using controlname- current_line (E.g. TC1-current_line ) to indentify the entry in the internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;process before output.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt; module status_0100.&lt;/P&gt;&lt;P&gt;  loop at it_zsd00003 with control tc1 cursor tc1-&lt;/P&gt;&lt;P&gt;current_line.&lt;/P&gt;&lt;P&gt;    module tc1_set_field_attr.     "Optional&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module status_0100 output.&lt;/P&gt;&lt;P&gt;  set pf-status 'SCREEN0100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OPTIONAL: If it_zsd00003 hasn't allready been filled with&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data, you can do it the first time PBO is called&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  module read_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Setting the number of lines of the table control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  describe table it_zsd00003 lines tc1-lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Optional: Place the cursor on line  g_current_line e.g. after a&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;validation error has occured &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if not ( g_current_line is initial ).&lt;/P&gt;&lt;P&gt;    tc1-top_line =  g_current_line.&lt;/P&gt;&lt;P&gt;    clear g_current_line.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.                 " STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module read_data.&lt;/P&gt;&lt;P&gt;  if flag is initial.&lt;/P&gt;&lt;P&gt;    perform read_data.&lt;/P&gt;&lt;P&gt;    flag = 1.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endmodule.        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module tc1_set_field_attr output.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Optional: Protect some of the columns on the&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;table control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    loop at screen.&lt;/P&gt;&lt;P&gt;      if screen-group1 = 'X'.&lt;/P&gt;&lt;P&gt;        screen-input = 0.&lt;/P&gt;&lt;P&gt;        modify screen.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endmodule.                 " tc1_set_field_attr  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;process after input.&amp;lt;/b&amp;gt;  &lt;/P&gt;&lt;P&gt; loop at it_zsd00003.&lt;/P&gt;&lt;P&gt;     module modify_tc1.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  module user_command_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module modify_tc1 input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modify an existing entry&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  modify it_zsd00003 index tc1-current_line.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OR&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Appending a new entry&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  append it_zsd00003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.                 " modify_tc1  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Deleting a single line selected with the selection column: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form delete_record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at it_zsd00003.&lt;/P&gt;&lt;P&gt;    if it_zsd00003-linesel = 'X'.&lt;/P&gt;&lt;P&gt;       exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;   delete from zsd00003&lt;/P&gt;&lt;P&gt;     where  zdriftscenter     = it_zsd00003-zdriftscenter&lt;/P&gt;&lt;P&gt;endform.                        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While &amp;lt;b&amp;gt;scrolling do remember &amp;lt;/b&amp;gt; to put this code in PBO.&lt;/P&gt;&lt;P&gt;in PBO, code like this.&lt;/P&gt;&lt;P&gt;select the total number of records which u r outputting.&lt;/P&gt;&lt;P&gt;now.&lt;/P&gt;&lt;P&gt;TC1-LINES = SY-DBCNT  (Where TC1  is ur control name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this will suffice your need.&lt;/P&gt;&lt;P&gt;If you are satisfied , please close this thread by rewarding appropriate points to the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 12:55:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1265267#M148877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T12:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1265268#M148878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aviroop,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the form etiquettes .&lt;/P&gt;&lt;P&gt;If satisfied,Please close this thread by rewarding appropraite points to the helpful answers .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 05:28:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1265268#M148878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-17T05:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1265269#M148879</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;Check this link for sample code.Kindly reward points if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap-code-samples/table" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap-code-samples/table&lt;/A&gt; control in abap.pdf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 06:33:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1265269#M148879</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-03-17T06:33:32Z</dc:date>
    </item>
  </channel>
</rss>

