<?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 enable and disable rows in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enable-and-disable-rows/m-p/7294101#M1533173</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 solved the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO i used the loop at screen to enable adn disable the input based on flag set in PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ambily&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Sep 2010 04:15:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-22T04:15:34Z</dc:date>
    <item>
      <title>Table control enable and disable rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enable-and-disable-rows/m-p/7294096#M1533168</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 want to keep the table control in disabled mode initially.&lt;/P&gt;&lt;P&gt;When user press the add button,the row next to where data is already present should alone be enabled for data entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO event i was able to disable the entire table control.but when i could not find a way to identify the first blank line to enable it for data entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ambily&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 14:04:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enable-and-disable-rows/m-p/7294096#M1533168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-16T14:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Table control enable and disable rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enable-and-disable-rows/m-p/7294097#M1533169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ambily,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;follow the below steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare a data : w_flag  type c. in the global &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and next write the code the PBO&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
* Module screen GUI-Screen&amp;amp;Status and Screen Logic
  MODULE status_&amp;lt;Screennum&amp;gt;.

* Table control for OUTPUT
  LOOP AT &amp;lt;table-control&amp;gt; .
    MODULE Modify_screen.
  ENDLOOP.


Module modify_screen output.
* Table control reading values from input screen &amp;amp; displaying on screen
  READ TABLE &amp;lt;table&amp;gt;   INDEX &amp;lt;tablecontrol&amp;gt;-current_line.

 If w_flag is initial.
    LOOP AT SCREEN.
      IF screen-name = &amp;lt;Tablecontrol Line&amp;gt;.
        screen-input = 0.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.
  ENDIF.
wndif.
Endmodule.
"next in PAI mark the w_flag to 'X'
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 14:18:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enable-and-disable-rows/m-p/7294097#M1533169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-16T14:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Table control enable and disable rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enable-and-disable-rows/m-p/7294098#M1533170</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;This only enables the rows which have data.&lt;/P&gt;&lt;P&gt;My requirement is bit different.&lt;/P&gt;&lt;P&gt;For eg: my table control have initially 3 rows.When the user press add button, the 4th row alone should be enabled for data entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help to do this enabling of specific row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ambily&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ambily R on Sep 16, 2010 5:28 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 14:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enable-and-disable-rows/m-p/7294098#M1533170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-16T14:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Table control enable and disable rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enable-and-disable-rows/m-p/7294099#M1533171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When ever user presses the add button, Append a initial line to the internal table. Then use the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When 'ADD'.&lt;/P&gt;&lt;P&gt;Append Initial line to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT IT INTO WA WITH CONTROL TBCTRL.
module Disable.
ENDLOOP.

MODULE DISABLE.
Check it[] is not initial."To restrict enabling of TBCTRL rows Initially in the first run
IF WA IS INITIAL." Where ever a initial line is found it enables
LOOP AT SCREEN.
SCREEN-INPUT = 1.
MODIFY SCREEN.
ENDLOOP.
else.                     "It disables
LOOP AT SCREEN.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDLOOP.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 16:52:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enable-and-disable-rows/m-p/7294099#M1533171</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-09-16T16:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Table control enable and disable rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enable-and-disable-rows/m-p/7294100#M1533172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a general way to make a particular field to be available to enter data.&lt;/P&gt;&lt;P&gt;I have created a group for the text field,and when that label is clicked only the corresponding text box is enabled gor input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt; IF UCOMM = 'APPEAR' AND SCREEN-GROUP1 = 'groupname'.&lt;/P&gt;&lt;P&gt;  SCREEN-ACTIVE = 1. SCREEN-INPUT = 1.&lt;/P&gt;&lt;P&gt;  MODIFY SCREEN.&lt;/P&gt;&lt;P&gt; ELSEIF  UCOMM = 'DISAPPEAR' AND SCREEN-GROUP1 = 'groupname'.&lt;/P&gt;&lt;P&gt;  SCREEN-ACTIVE = 0. SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;  MODIFY SCREEN.&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;Hope this helps your need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 06:40:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enable-and-disable-rows/m-p/7294100#M1533172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-21T06:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Table control enable and disable rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enable-and-disable-rows/m-p/7294101#M1533173</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 solved the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO i used the loop at screen to enable adn disable the input based on flag set in PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ambily&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 04:15:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enable-and-disable-rows/m-p/7294101#M1533173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-22T04:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Table control enable and disable rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enable-and-disable-rows/m-p/7294102#M1533174</link>
      <description>&lt;P&gt;You can do it using statement LOOP AT spfli_tab INTO spfli &lt;STRONG&gt;WITH CONTROL&lt;/STRONG&gt; flight_tab.&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;BR /&gt;MODULE prepare_tab.&lt;BR /&gt;&lt;STRONG&gt;LOOP AT spfli_tab INTO spfli WITH CONTROL flight_tab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;module disable_row. " you can write your logic inside module disable_row with statements loop at screen and screen-input = 0.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;BR /&gt;PROCESS AFTER INPUT.&lt;BR /&gt;LOOP AT spfli_tab.&lt;BR /&gt;MODULE modify_tab.&lt;BR /&gt;ENDLOOP.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 18:53:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-enable-and-disable-rows/m-p/7294102#M1533174</guid>
      <dc:creator>kzak</dc:creator>
      <dc:date>2020-02-19T18:53:31Z</dc:date>
    </item>
  </channel>
</rss>

