<?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 Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/6471227#M1417299</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abhijit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            As per my requirement, I should place a push button so that whenever enduser clicks on it, it should add three lines for manual data entry. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written the push button code in the pbo status.  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CODE snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE ITAB LINES TABLECONTROL-LINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-UCOMM =  ' INSERT '.&lt;/P&gt;&lt;P&gt;TABLECONTROL-LINES = TABLECONTROL-LINES + 3.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is working fine and problem solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all of your views.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Murali Krishna T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jan 2010 10:21:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-12T10:21:45Z</dc:date>
    <item>
      <title>Table Control Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/6471219#M1417291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;          I had a issue where in when I display some records in the table control, it is showing the records and the rest of the records are going into grey mode. &lt;/P&gt;&lt;P&gt;For example, Iam getting 3 records into the table control.  From the fourth line of the table control, it is displaying the grey color.( I mean disable mode).&lt;/P&gt;&lt;P&gt;I have a requirement where the end user must have the facility to enter the records manually also.     &lt;/P&gt;&lt;P&gt;So, How to make the grids of the table control in such a way we can enter some data manually along with the imported data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me get some ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murali Krishna Tatoju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 11:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/6471219#M1417291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-11T11:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/6471220#M1417292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Murali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;In PBO.

module status_100.

loop at itab with control tc.

endlooop.

in program

module status_100.
describe table itab lines tc-lines. " This shows number of lines occupied on Table control
if tc-lines = 0.
tc-lines = 100. " intially 100 rows
else.
tc-lines = tc-lines + 100. " Occupied rows + 100 so user can always enter 
endif.
endmodule.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 11:58:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/6471220#M1417292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-11T11:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/6471221#M1417293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a guess,&lt;/P&gt;&lt;P&gt;dont set the property t_ctrl-lines.&lt;/P&gt;&lt;P&gt;Make the table control screen attributes to enable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 11:59:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/6471221#M1417293</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-11T11:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/6471222#M1417294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if there is a least chance to enter more than 200 rows, so i think its better not to set it.&lt;/P&gt;&lt;P&gt;or add a new entry to the internal table using a fucntion instead of displaying all the rows in editable mode&lt;/P&gt;&lt;P&gt;( here we can go for t_ctrl-lines).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 12:02:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/6471222#M1417294</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-11T12:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/6471223#M1417295</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;In PBO event ......create a module ....and increase the visible line count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE &amp;lt;table control table &amp;gt; LINES &amp;lt;lines&amp;gt;.&lt;/P&gt;&lt;P&gt;add 50 to &amp;lt;lines&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This wil solve your problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shailaja Ainala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 12:48:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/6471223#M1417295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-11T12:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/6471224#M1417296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;P&gt;          Iam  placing one push button (InsertLines) and when the enduser clicks, it should add 3 lines. Just like Keshav's idea, It will be more user freindly. when ever user wants to enter manually he/she can click on the push button and it will add lines for manual entry.&lt;/P&gt;&lt;P&gt;But for push button, do we need to write code in pai user command?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially,  I have tried with the    describe statement and added 100 lines ( as you suggested me).  But iam not getting the lines in the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me suggestions in this regard.&lt;/P&gt;&lt;P&gt;&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;Murali Krishna T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2010 05:48:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/6471224#M1417296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-12T05:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/6471225#M1417297</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;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADD pushbutton will add the lines to your table control.&lt;/P&gt;&lt;P&gt;So initially in the PBO, set your no of active lines in the table control to be 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
  LOOP AT gt_itab WITH CONTROL tabcontrol.
    MODULE check_control.
  ENDLOOP.

PROCESS AFTER INPUT.
  LOOP AT gt_itab1.
    MODULE GT_ITAB_MOD.
  ENDLOOP.
  MODULE ADD.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE CHECK_CONTROL OUTPUT
if gt_itab[] is INITIAL.
  TABCONTROL-lines = 1.    
endif.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code for the ADD button in the PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

MODULE ADD INPUT.
if OK_CODE eq 'ADD'.
tabcontrol-lines = tabcontrol-lines + 1.
endif.
ENDMODULE.                 " ADD  INPUT

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2010 05:56:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/6471225#M1417297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-12T05:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/6471226#M1417298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Murali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following logic in the PBO and it works fine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: tab_fill TYPE i,&lt;/P&gt;&lt;P&gt;        calc_fill TYPE i,&lt;/P&gt;&lt;P&gt;        add_fill type i,&lt;/P&gt;&lt;P&gt;        no_lines_add type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR: tab_fill, calc_fill, add_fill, no_lines_add.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;*check the current line number and the data filled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DESCRIBE TABLE g_tc_rate_card_itab LINES tab_fill.{color:red} "g_tc_rate_card_itab----&amp;gt; internal table{color}

  IF tab_fill GE 7.
    calc_fill = tab_fill MOD 7.   {color:red}" Initial 7 rows are available in the table for input u can change this as per you requirement or the no. of rows initially available in your screen{color}

    IF calc_fill = 0.

     add_fill = tab_fill / 7.

     add_fill = add_fill + 1.

     no_lines_add = 7 * add_fill.

      tc_rate_card-lines  =  no_lines_add.  {color; red}" tc_rate_card ----&amp;gt; Table control name{color}

    ENDIF.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By this way you can get rid of the ADD button since as soon as the 7th row is filled with data it adds up more 7 rows in the table control which are read for input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhijit G. Borakr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2010 06:33:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/6471226#M1417298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-12T06:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/6471227#M1417299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abhijit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            As per my requirement, I should place a push button so that whenever enduser clicks on it, it should add three lines for manual data entry. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written the push button code in the pbo status.  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CODE snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE ITAB LINES TABLECONTROL-LINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-UCOMM =  ' INSERT '.&lt;/P&gt;&lt;P&gt;TABLECONTROL-LINES = TABLECONTROL-LINES + 3.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is working fine and problem solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all of your views.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Murali Krishna T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2010 10:21:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/6471227#M1417299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-12T10:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/6471228#M1417300</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;Is your problem solved ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes then please close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhijit G. Borkar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2010 12:16:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/6471228#M1417300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-12T12:16:53Z</dc:date>
    </item>
  </channel>
</rss>

