<?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/4651170#M1094477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check whether you kept the module for insert in the loop, if it is keep the module outside the loop in PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;prakash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Oct 2008 07:06:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-10T07:06:50Z</dc:date>
    <item>
      <title>table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4651164#M1094471</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;I am displaying records data in table control, I wanted to insert new record in last row of the table control.&lt;/P&gt;&lt;P&gt;I am using loop at screen with sel 'Mark' but it will open all column i wanted to open single row only to inserting record in table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can  any one suggest me properly.How i done this?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pravin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 05:40:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4651164#M1094471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T05:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4651165#M1094472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This code may help u...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE user_command_9001 INPUT.
    WHEN 'INSERT'.
      insert = 'X'.
ENDMODULE.  

MODULE status_9001 OUTPUT.
"First get the no of rows
  DESCRIBE TABLE it_rfqi.
"Open the lines
  IF insert = 'X'.
    sy-tfill = sy-tfill + 1.
    APPEND ' ' TO it_rfqi.
    insert = ' '.
  ENDIF.
  IF sy-tfill = 0.
    tab1-lines = 1.
  ELSE.
    tab1-lines = sy-tfill.
  ENDIF.
ENDMODULE.                 " STATUS_9001  OUTPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 05:51:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4651165#M1094472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T05:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4651166#M1094473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your question is not very clear. If u are displaying data in a table control and u want to display one additional row to insert a new record. You can set the 'LINES' of your table control with no of lines in ur int. table + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls do this code in ur PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DESCRIBE TABLE   g_tctrl_indir_itab LINES gv_filli.
  tctrl_indir-lines = gv_filli + 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sathar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 05:58:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4651166#M1094473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T05:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4651167#M1094474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Do do this you just disable the data in your table control and leave the blank lines as active. &lt;/P&gt;&lt;P&gt;To disable the table content:&lt;/P&gt;&lt;P&gt;IN PBO LOOP with control:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           module set_screen_disable&lt;/P&gt;&lt;P&gt;          endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set_screen_disable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = 'fld1'. screen-input = 0. modify screen. endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code will disable the screen fields whenever you insert new row and make other fields ready for input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 06:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4651167#M1094474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T06:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4651168#M1094475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pravin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the standard program DEMO_DYNPRO_TABCONT_LOOP_AT. it will be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your problem you need to make sure that when user clicks on a button for new records at that event other records in the table control should be set to display.&lt;/P&gt;&lt;P&gt;this can be done by making screen-input = '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at &amp;lt;tabctlrname&amp;gt;-cols into cols.&lt;/P&gt;&lt;P&gt;IF  cols-screen-input = '0'.&lt;/P&gt;&lt;P&gt;cols-screen-input = '1'.&lt;/P&gt;&lt;P&gt;elseif cols-screen-input = '1'.&lt;/P&gt;&lt;P&gt; cols-screen-input = '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above is a sample code for display/change toggle button.&lt;/P&gt;&lt;P&gt;implements the same logic for your requirement, it will work.sel 'mark' is used for change or delete, for adding a row u need to append a blank row to the table control which shud be in change mode, rest all can be in display mode.&lt;/P&gt;&lt;P&gt; also try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to SE38.&lt;/P&gt;&lt;P&gt;Select Environment Menu -&amp;gt;Examples -&amp;gt;Controls Examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find table control examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 06:09:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4651168#M1094475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T06:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4651169#M1094476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*when insert button is pressed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module user_command.&lt;/P&gt;&lt;P&gt;when 'insert'.&lt;/P&gt;&lt;P&gt;clear: wa.&lt;/P&gt;&lt;P&gt;insert wa into table itab." insert blank record in internal table&lt;/P&gt;&lt;P&gt;describe table itab lines tc-lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*to make this only line editable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in PBO&lt;/P&gt;&lt;P&gt;loop at itab into wa with table control tc&lt;/P&gt;&lt;P&gt;module xyz.&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;module xyz.&lt;/P&gt;&lt;P&gt;if wa-&amp;lt;somefield&amp;gt; is initial.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name cs 'wa-'&lt;/P&gt;&lt;P&gt;screen-input = 1.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 06:23:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4651169#M1094476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T06:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4651170#M1094477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check whether you kept the module for insert in the loop, if it is keep the module outside the loop in PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;prakash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 07:06:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4651170#M1094477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T07:06:50Z</dc:date>
    </item>
  </channel>
</rss>

