<?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: Resizing a table control dynamically. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/resizing-a-table-control-dynamically/m-p/5850673#M1319571</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 "tc_recoverable_perc" the reference to ur table control? If yes then&lt;/P&gt;&lt;P&gt;Keep &lt;STRONG&gt;tc_recoverable_perc-LINES = 20 .&lt;/STRONG&gt; statement inside one of the module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U should have only modules in the Flow logic part and have to write the code in side the Modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bharat Kalagara.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2009 15:21:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-23T15:21:24Z</dc:date>
    <item>
      <title>Resizing a table control dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/resizing-a-table-control-dynamically/m-p/5850670#M1319568</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 I want to resize dynamically dependant on the number of lines I get back from MODULE tc_recover_perc_get_lines. Can one of you guru's assist. my code is as follows:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
* MODULE STATUS_0205.

  MODULE get_data_0205.

* Obtain number of lines on the table control.
  MODULE tc_recover_perc_get_lines.

* This binds the table control and the table memory.
  LOOP AT gtc_recperc INTO zrc_gui_tc_recperc
    WITH CONTROL tc_recoverable_perc.
  ENDLOOP.

  MODULE modify_screen_0205.
  MODULE hide_buttons.

*
PROCESS AFTER INPUT.
* MODULE USER_COMMAND_0205.

* Loop at the table rows.
  LOOP AT gtc_recperc.

    CHAIN.
*     Tranfer the screen field values to the ABAP work area.
      FIELD: zrc_gui_tc_recperc-selected,
             zrc_gui_tc_recperc-cost_group,
             zrc_gui_tc_recperc-cost_group_text,
             zrc_gui_tc_recperc-fec_category,
*             zrc_gui_tc_recperc-fec_rate_code,
             zrc_gui_tc_recperc-fr_perc,
             zrc_gui_tc_recperc-split_rule,
             zrc_gui_tc_recperc-split_limit1,
             zrc_gui_tc_recperc-fr_perc2.
      MODULE modify_gtc_recperc ON CHAIN-REQUEST.

    ENDCHAIN.


  ENDLOOP.

  MODULE user_command_0205.
  MODULE set_data_0205.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 14:57:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/resizing-a-table-control-dynamically/m-p/5850670#M1319568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T14:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing a table control dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/resizing-a-table-control-dynamically/m-p/5850671#M1319569</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;Use TABC-LINES = lv_lines. " Keep this in PBO module after determining the Number of lines&lt;/P&gt;&lt;P&gt;TABC is the Table control reference&lt;/P&gt;&lt;P&gt;lv_lines is the var that the number of line from that module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bharat Kalagara.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 15:10:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/resizing-a-table-control-dynamically/m-p/5850671#M1319569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T15:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing a table control dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/resizing-a-table-control-dynamically/m-p/5850672#M1319570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not sure what you mean I've modified my code to be as follows but it doesn't compile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Obtain number of lines on the table control.
  MODULE tc_recover_perc_get_lines.
  tc_recoverable_perc-LINES = 20 " RP 23.06.09 - 20 here being just an example&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 15:16:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/resizing-a-table-control-dynamically/m-p/5850672#M1319570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T15:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing a table control dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/resizing-a-table-control-dynamically/m-p/5850673#M1319571</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 "tc_recoverable_perc" the reference to ur table control? If yes then&lt;/P&gt;&lt;P&gt;Keep &lt;STRONG&gt;tc_recoverable_perc-LINES = 20 .&lt;/STRONG&gt; statement inside one of the module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U should have only modules in the Flow logic part and have to write the code in side the Modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bharat Kalagara.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 15:21:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/resizing-a-table-control-dynamically/m-p/5850673#M1319571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T15:21:24Z</dc:date>
    </item>
  </channel>
</rss>

