<?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 restricting rows in table control. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-rows-in-table-control/m-p/6025933#M1348451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I only want 4 rows in my table control but it is coming as a number of rows...I want to restrict row in my table control,Please tell me how do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Aug 2009 16:46:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-07T16:46:50Z</dc:date>
    <item>
      <title>restricting rows in table control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-rows-in-table-control/m-p/6025933#M1348451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I only want 4 rows in my table control but it is coming as a number of rows...I want to restrict row in my table control,Please tell me how do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 16:46:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-rows-in-table-control/m-p/6025933#M1348451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-07T16:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: restricting rows in table control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-rows-in-table-control/m-p/6025934#M1348452</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 the following&lt;/P&gt;&lt;P&gt;Say the tablecontrol has the name tabctrl in your program, set the property lines of the table control as 4.&lt;/P&gt;&lt;P&gt;tabctrl-lines = 4. in the PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 16:55:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-rows-in-table-control/m-p/6025934#M1348452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-07T16:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: restricting rows in table control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-rows-in-table-control/m-p/6025935#M1348453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi priya &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     I am sending the code which i used in my screen see weather it will suite you.if any doubts let me know as well this is for 10 lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE COUNT_UPDATE INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data cnt(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   DESCRIBE TABLE itab1 lines cnt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append itab1 TO ITAB2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT itab2.&lt;/P&gt;&lt;P&gt;   IF itab2-srno is INITIAL.&lt;/P&gt;&lt;P&gt;     cnt = cnt + 1.&lt;/P&gt;&lt;P&gt;     CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;         INPUT         = cnt&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        OUTPUT        = itab2-srno&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;    itab2-srno = cnt.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;   READ TABLE itab1 WITH TABLE KEY srno = itab2-srno aufnr = itab2-aufnr." vbeln = itab2-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     MOVE-CORRESPONDING itab2 to itab1.&lt;/P&gt;&lt;P&gt;    MODIFY itab2.&lt;/P&gt;&lt;P&gt;    MOVE itab2[] to itab1[].&lt;/P&gt;&lt;P&gt;   else.&lt;/P&gt;&lt;P&gt;     MOVE-CORRESPONDING itab2 to itab1.&lt;/P&gt;&lt;P&gt;    append itab1.&lt;/P&gt;&lt;P&gt;   ENDIF.&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; PERFORM operations.&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;REFRESH CONTROL 'TCL' FROM SCREEN '1000'.&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;tcl-lines = 10.&lt;/STRONG&gt;  " for 10 lines &lt;/P&gt;&lt;P&gt;clear itab2.&lt;/P&gt;&lt;P&gt;CLEAR itab2[].&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;ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 06:14:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-rows-in-table-control/m-p/6025935#M1348453</guid>
      <dc:creator>sravya_ch</dc:creator>
      <dc:date>2009-08-08T06:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: restricting rows in table control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-rows-in-table-control/m-p/6025936#M1348454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just Select 4 rows only into the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * from mara into itab up to 4 rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 09:25:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-rows-in-table-control/m-p/6025936#M1348454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T09:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: restricting rows in table control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-rows-in-table-control/m-p/6025937#M1348455</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;In the layout, resize the table control's height so that it shows only 4 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want only 4 rows to be editable on display, then use the following in the PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  LOOP AT gt_itab1 WITH CONTROL tabcontrol.
    MODULE check_control.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE check_control.
if gt_itab1[] is INITIAL.
  TABCONTROL-lines = 4.
endif.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 09:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-rows-in-table-control/m-p/6025937#M1348455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T09:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: restricting rows in table control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-rows-in-table-control/m-p/6025938#M1348456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the following link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdev.co.uk/dialog/tabcontrol/tc_basic.htm" target="test_blank"&gt;http://www.sapdev.co.uk/dialog/tabcontrol/tc_basic.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 10:03:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-rows-in-table-control/m-p/6025938#M1348456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T10:03:00Z</dc:date>
    </item>
  </channel>
</rss>

