<?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 Insert a line into a table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-line-into-a-table-control/m-p/3422794#M822072</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;I have a table control that is in the display mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a button called insert on top of the table control .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i click on the insert button , I should have a new row in the table control with change mode,i.e. I should be able to enter some values in the new row .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please could anyone help me out with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sushanth H.S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2008 09:12:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-20T09:12:44Z</dc:date>
    <item>
      <title>Insert a line into a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-line-into-a-table-control/m-p/3422794#M822072</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;I have a table control that is in the display mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a button called insert on top of the table control .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i click on the insert button , I should have a new row in the table control with change mode,i.e. I should be able to enter some values in the new row .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please could anyone help me out with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sushanth H.S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 09:12:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-line-into-a-table-control/m-p/3422794#M822072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T09:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Insert a line into a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-line-into-a-table-control/m-p/3422795#M822073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG&gt;Sushanth Srinivas&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your PBO, you can adjust the field properties using the usual "loop&lt;/P&gt;&lt;P&gt; at screen." style logic - but with a table control, you just need to do&lt;/P&gt;&lt;P&gt; this inside the table control loop e.g. along the lines of this (not&lt;/P&gt;&lt;P&gt; syntax checked):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Screen flow PBO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at gt_data1 into gs_data1 with control gtc_9999.
  module d9999_modify_screen_tc.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PBO module&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Module d9999_modify_screen_tc output.

if sy-ucomm eq 'INSERT'.

  loop at screen.              "for current row of TC
    if screen-name = 'XYZ'.    "for one cell
      screen-input  = 1.
    endif.
    modify screen.
  endloop.
endif.

endmodule.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mahi&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 09:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-line-into-a-table-control/m-p/3422795#M822073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T09:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Insert a line into a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-line-into-a-table-control/m-p/3422796#M822074</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;To add a new row you can do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;when 'INSERT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = 'TABLE_CINTROL'.&lt;/P&gt;&lt;P&gt;TABLE_CINTROL-count = TABLE_CINTROL-count + 1.&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;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 06:15:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-line-into-a-table-control/m-p/3422796#M822074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T06:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Insert a line into a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-line-into-a-table-control/m-p/3422797#M822075</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;&lt;/P&gt;&lt;P&gt;CASE OK_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'INSERT'.&lt;/P&gt;&lt;P&gt;      LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;        IF ITAB-MARK = 'X'.&lt;/P&gt;&lt;P&gt;          INSERT INITIAL LINE INTO ITAB.&lt;/P&gt;&lt;P&gt;          FLAG = '1'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;      IF FLAG &amp;lt;&amp;gt; '1'.&lt;/P&gt;&lt;P&gt;        APPEND INITIAL LINE TO ITAB.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this piece of code,it may be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sravanthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 11:52:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-line-into-a-table-control/m-p/3422797#M822075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T11:52:23Z</dc:date>
    </item>
  </channel>
</rss>

