<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3215686#M766744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i think this may help you-&lt;/P&gt;&lt;P&gt;First assign screen group1 to  &amp;#145;GP1&amp;#146; to all fields of screen painter&amp;#146;s table control.&lt;/P&gt;&lt;P&gt;At se38 program declare a variable v_flag type c.&lt;/P&gt;&lt;P&gt;And wa_tablecontrolcols  type &amp;lt;tablecontrol-cols&amp;gt;.&lt;/P&gt;&lt;P&gt;Here table control have 3 attributes 1. screen, 2. selected, 3. index.&lt;/P&gt;&lt;P&gt;Then at PAI:-&lt;/P&gt;&lt;P&gt;Module user-command input.&lt;/P&gt;&lt;P&gt;Case sy-ucom.&lt;/P&gt;&lt;P&gt;When &amp;#145;CHAN&amp;#146;.&lt;/P&gt;&lt;P&gt; V_flag = &amp;#145;X&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At screen flow logic:-&lt;/P&gt;&lt;P&gt;Loop at itab with control &amp;lt;tablecontrol_name&amp;gt; into wa_itab.&lt;/P&gt;&lt;P&gt; Module assign_valuesto_tablecontrol.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module modify_screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At se38:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module assign_valuesto_tablecontrol output.&lt;/P&gt;&lt;P&gt;Move-corresponding  wa_itab to &amp;lt;screen fields ie tablecontrol fields&amp;gt;.&lt;/P&gt;&lt;P&gt;Endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Module modify_screen output.&lt;/P&gt;&lt;P&gt;If v_flag = &amp;#145;X&amp;#146;.&lt;/P&gt;&lt;P&gt; Loop at screen.&lt;/P&gt;&lt;P&gt;  If screen-group1 = &amp;#145;GP1&amp;#146;.&lt;/P&gt;&lt;P&gt;      screen-input = &amp;#145;1&amp;#146;.&lt;/P&gt;&lt;P&gt; Endif.&lt;/P&gt;&lt;P&gt;Modify screen.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else.&lt;/P&gt;&lt;P&gt; Loop at screen.&lt;/P&gt;&lt;P&gt;  If screen-group1 = &amp;#145;GP1&amp;#146;.&lt;/P&gt;&lt;P&gt;      screen-input = &amp;#145;1&amp;#146;.&lt;/P&gt;&lt;P&gt; Endif.&lt;/P&gt;&lt;P&gt;Modify screen.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module modify_screen output.&lt;/P&gt;&lt;P&gt;If v_flag = &amp;#145;X&amp;#146;.&lt;/P&gt;&lt;P&gt; Loop at tablecontrol-cols into wa_tablecontrolcols.&lt;/P&gt;&lt;P&gt;  If wa_tablecontrolcols-screen-group1 = &amp;#145;GP1&amp;#146;.&lt;/P&gt;&lt;P&gt;    wa_tablecontrolcols-screen-input = &amp;#145;1&amp;#146;.&lt;/P&gt;&lt;P&gt; Endif.&lt;/P&gt;&lt;P&gt;Modify tablecontrol-cols from wa_tablecontrolcols index sy-loopc.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else.&lt;/P&gt;&lt;P&gt; Loop at tablecontrol-cols into wa_tablecontrolcols.&lt;/P&gt;&lt;P&gt;  If wa_tablecontrolcols-screen-group1 = &amp;#145;GP1&amp;#146;.&lt;/P&gt;&lt;P&gt;    wa_tablecontrolcols-screen-input = &amp;#145;0&amp;#146;.&lt;/P&gt;&lt;P&gt; Endif.&lt;/P&gt;&lt;P&gt;Modify tablecontrol-cols from wa_tablecontrolcols index sy-loopc.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endmodule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Dec 2007 06:52:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-31T06:52:30Z</dc:date>
    <item>
      <title>Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3215684#M766742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  How to make one table control as editable and non-editable (simple display) via push button...? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e initally the data in table control should be non-editable(grey color) if i press a button called change.... then the data which is displaying as grey will change into editable mode...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Any inputs on this will be highly rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lakshmiraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2007 08:49:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3215684#M766742</guid>
      <dc:creator>abapdeveloper20</dc:creator>
      <dc:date>2007-12-29T08:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3215685#M766743</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;What you can do is assign a modif ID to every column in your table control. When you double click on the column, in the attributes, there are four GROUP fields for entry. In the first one (SCREEN-GROUP1) enter e.g. 'HID'. This becomes modif id for the field/column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, say the pushbutton generates code 'PUSH', then in PBO module wihtin LOOP and ENDLOOP of table control put following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF OKCODE EQ 'PUSH'.&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-GROUP1 EQ 'HID' AND V_EDIT EQ 'X'.&lt;/P&gt;&lt;P&gt;SCREEN-INPUT = '1'.&lt;/P&gt;&lt;P&gt;CLEAR V_EDIT.  "This tells system columns are non-editable&lt;/P&gt;&lt;P&gt;ELSEIF SCREEN-GROUP1 EQ 'HID' AND V_EDIT EQ 'X'.&lt;/P&gt;&lt;P&gt;SCREEN-INPUT = '0'.&lt;/P&gt;&lt;P&gt;V_EDIT = 'X'.  "This tells systems the columns are editable&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;SCREEN-ACTIVE  = '1'.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&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;Note: Declare V_EDIT as single character field.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2007 11:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3215685#M766743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-29T11:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3215686#M766744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i think this may help you-&lt;/P&gt;&lt;P&gt;First assign screen group1 to  &amp;#145;GP1&amp;#146; to all fields of screen painter&amp;#146;s table control.&lt;/P&gt;&lt;P&gt;At se38 program declare a variable v_flag type c.&lt;/P&gt;&lt;P&gt;And wa_tablecontrolcols  type &amp;lt;tablecontrol-cols&amp;gt;.&lt;/P&gt;&lt;P&gt;Here table control have 3 attributes 1. screen, 2. selected, 3. index.&lt;/P&gt;&lt;P&gt;Then at PAI:-&lt;/P&gt;&lt;P&gt;Module user-command input.&lt;/P&gt;&lt;P&gt;Case sy-ucom.&lt;/P&gt;&lt;P&gt;When &amp;#145;CHAN&amp;#146;.&lt;/P&gt;&lt;P&gt; V_flag = &amp;#145;X&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At screen flow logic:-&lt;/P&gt;&lt;P&gt;Loop at itab with control &amp;lt;tablecontrol_name&amp;gt; into wa_itab.&lt;/P&gt;&lt;P&gt; Module assign_valuesto_tablecontrol.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module modify_screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At se38:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module assign_valuesto_tablecontrol output.&lt;/P&gt;&lt;P&gt;Move-corresponding  wa_itab to &amp;lt;screen fields ie tablecontrol fields&amp;gt;.&lt;/P&gt;&lt;P&gt;Endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Module modify_screen output.&lt;/P&gt;&lt;P&gt;If v_flag = &amp;#145;X&amp;#146;.&lt;/P&gt;&lt;P&gt; Loop at screen.&lt;/P&gt;&lt;P&gt;  If screen-group1 = &amp;#145;GP1&amp;#146;.&lt;/P&gt;&lt;P&gt;      screen-input = &amp;#145;1&amp;#146;.&lt;/P&gt;&lt;P&gt; Endif.&lt;/P&gt;&lt;P&gt;Modify screen.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else.&lt;/P&gt;&lt;P&gt; Loop at screen.&lt;/P&gt;&lt;P&gt;  If screen-group1 = &amp;#145;GP1&amp;#146;.&lt;/P&gt;&lt;P&gt;      screen-input = &amp;#145;1&amp;#146;.&lt;/P&gt;&lt;P&gt; Endif.&lt;/P&gt;&lt;P&gt;Modify screen.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module modify_screen output.&lt;/P&gt;&lt;P&gt;If v_flag = &amp;#145;X&amp;#146;.&lt;/P&gt;&lt;P&gt; Loop at tablecontrol-cols into wa_tablecontrolcols.&lt;/P&gt;&lt;P&gt;  If wa_tablecontrolcols-screen-group1 = &amp;#145;GP1&amp;#146;.&lt;/P&gt;&lt;P&gt;    wa_tablecontrolcols-screen-input = &amp;#145;1&amp;#146;.&lt;/P&gt;&lt;P&gt; Endif.&lt;/P&gt;&lt;P&gt;Modify tablecontrol-cols from wa_tablecontrolcols index sy-loopc.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else.&lt;/P&gt;&lt;P&gt; Loop at tablecontrol-cols into wa_tablecontrolcols.&lt;/P&gt;&lt;P&gt;  If wa_tablecontrolcols-screen-group1 = &amp;#145;GP1&amp;#146;.&lt;/P&gt;&lt;P&gt;    wa_tablecontrolcols-screen-input = &amp;#145;0&amp;#146;.&lt;/P&gt;&lt;P&gt; Endif.&lt;/P&gt;&lt;P&gt;Modify tablecontrol-cols from wa_tablecontrolcols index sy-loopc.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endmodule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2007 06:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3215686#M766744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-31T06:52:30Z</dc:date>
    </item>
  </channel>
</rss>

