<?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: Row selection on Table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-on-table-control/m-p/4683258#M1101098</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Parag, you can change the atribute of a table control using Loop at screen, also you can add words to the fiels to control the behavior or filter by the fields names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;        IF   screen-group1 = 'CRE'&lt;/P&gt;&lt;P&gt;          OR screen-group2 = 'CHG'.&lt;/P&gt;&lt;P&gt;          screen-input = 1.&lt;/P&gt;&lt;P&gt;          IF screen-group3 = 'REQ'.&lt;/P&gt;&lt;P&gt;            screen-required  = 1.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;          MODIFY SCREEN.&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;Very important here, this have to be include in the PBO into the table control loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PBO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT   t_itab&lt;/P&gt;&lt;P&gt;       WITH CONTROL tc_XXXX&lt;/P&gt;&lt;P&gt;       CURSOR tc_XXXX-current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MODULE tc_status.   " here you include the code above&lt;/P&gt;&lt;P&gt; ENDLOOP.&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;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Oct 2008 20:21:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-17T20:21:46Z</dc:date>
    <item>
      <title>Row selection on Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-on-table-control/m-p/4683256#M1101096</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 have a requirement wherein i need to display 2 screen navigation.&lt;/P&gt;&lt;P&gt;The first screen contain selection parameters and based on that selection parameters data get displayed in second screen. The second screen contain table control wherein i have displayed fields from custom table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is that if internal table is not initial then data should be displayed on table contol in display mode. The table control contain one selection field. When user select one of line on table control then table control must be changed from display mode to change mode and allow user to change existing data .&lt;/P&gt;&lt;P&gt;Now problem is i am unable to change table control from display mode to change mode.&lt;/P&gt;&lt;P&gt;plz help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Parag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 13:28:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-on-table-control/m-p/4683256#M1101096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T13:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Row selection on Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-on-table-control/m-p/4683257#M1101097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Parag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put one FCT code for the table line and use the following code may help you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In &lt;STRONG&gt;PBO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;WHEN 'CODE'. "FCT code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-NAME = 'ZORMA-YIAMN'.&lt;/P&gt;&lt;P&gt;SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&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;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-NAME = 'ZORMA-YIAMQ'.&lt;/P&gt;&lt;P&gt;SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&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;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-NAME = 'ZORMA-YIAME'.&lt;/P&gt;&lt;P&gt;SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;In &lt;STRONG&gt;PAI&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;WHEN 'CODE'. "FCT code&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-NAME = 'ZORMA-YIAMN'. "field which has to&lt;/P&gt;&lt;P&gt;SCREEN-INPUT = 1.&lt;/P&gt;&lt;P&gt;SCREEN-ACTIVE = 1.&lt;/P&gt;&lt;P&gt;SCREEN-OUTPUT = 1.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&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;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-NAME = 'ZORMA-YIAMQ'. "field which has to&lt;/P&gt;&lt;P&gt;SCREEN-INPUT = 1.&lt;/P&gt;&lt;P&gt;SCREEN-ACTIVE = 1.&lt;/P&gt;&lt;P&gt;SCREEN-OUTPUT = 1.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&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;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-NAME = 'ZORMA-YIAME'. "field which has to&lt;/P&gt;&lt;P&gt;SCREEN-INPUT = 1.&lt;/P&gt;&lt;P&gt;SCREEN-ACTIVE = 1.&lt;/P&gt;&lt;P&gt;SCREEN-OUTPUT = 1.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this logic else revert me back i will try to help you coding with some other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 13:43:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-on-table-control/m-p/4683257#M1101097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T13:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Row selection on Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-on-table-control/m-p/4683258#M1101098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Parag, you can change the atribute of a table control using Loop at screen, also you can add words to the fiels to control the behavior or filter by the fields names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;        IF   screen-group1 = 'CRE'&lt;/P&gt;&lt;P&gt;          OR screen-group2 = 'CHG'.&lt;/P&gt;&lt;P&gt;          screen-input = 1.&lt;/P&gt;&lt;P&gt;          IF screen-group3 = 'REQ'.&lt;/P&gt;&lt;P&gt;            screen-required  = 1.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;          MODIFY SCREEN.&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;Very important here, this have to be include in the PBO into the table control loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PBO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT   t_itab&lt;/P&gt;&lt;P&gt;       WITH CONTROL tc_XXXX&lt;/P&gt;&lt;P&gt;       CURSOR tc_XXXX-current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MODULE tc_status.   " here you include the code above&lt;/P&gt;&lt;P&gt; ENDLOOP.&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;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 20:21:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-on-table-control/m-p/4683258#M1101098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T20:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Row selection on Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-on-table-control/m-p/4683259#M1101099</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;Create a group which contains all your fields in table control &lt;/P&gt;&lt;P&gt;which you want to enable. For creating group, go to screen layout, double click on any field and mention the group name in first box, let say 'G1'. similarly mention the same group name 'G1' for every field in table control.&lt;/P&gt;&lt;P&gt;   Now in PBO create a module , let say 'Activate' and put this code inside it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module activate.&lt;/P&gt;&lt;P&gt;IF &amp;lt; YOUR CONDITION &amp;gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF SCREEN-GROUP1 = 'G1'.&lt;/P&gt;&lt;P&gt;      SCREEN-INPUT = 1.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 04:53:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-on-table-control/m-p/4683259#M1101099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T04:53:04Z</dc:date>
    </item>
  </channel>
</rss>

