<?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: enabling the table control fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-the-table-control-fields/m-p/4009179#M957804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shanthi,&lt;/P&gt;&lt;P&gt;            I hope you have written some logic in PBO to make the 1st and 4th coloumn of current row in table control to be editable after pressing one push button.But you are not telling when you want the those coloumn to be in display mode.You should have some flag(some Condition) at the row level which can differentiate between 2 status(Display mode,Change mode).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have shown a Eg: Based on flag.&lt;/P&gt;&lt;P&gt;If flag = 'X'.&lt;/P&gt;&lt;P&gt;Make that 2 coloumn editable.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;Make it as display only&lt;/P&gt;&lt;P&gt;ENdif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you have to decide to set the flag as 'X' whenever you want to make the coloumn as editable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO:&lt;/P&gt;&lt;P&gt;Loop at itab with tc.&lt;/P&gt;&lt;P&gt;module set_screen_attribute.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module set_screen_attribute Output.&lt;/P&gt;&lt;P&gt;If itab-flag = 'X'.&lt;/P&gt;&lt;P&gt;   Loop at screen.&lt;/P&gt;&lt;P&gt;    If screen-name = 'ITAB-F1' or screen-name = 'ITAB-F4'. &lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;screen-input = '1'.&lt;/STRONG&gt;&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; Elseif itab-flag = space.&lt;/P&gt;&lt;P&gt;   loop at screen.&lt;/P&gt;&lt;P&gt;     If screen-name = 'ITAB-F1' or screen-name = 'ITAB-F4'. &lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;screen-input = '0'.&lt;/STRONG&gt;&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; Endif.&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;Regards,&lt;/P&gt;&lt;P&gt;Vigneswaran S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jun 2008 19:07:20 GMT</pubDate>
    <dc:creator>former_member491305</dc:creator>
    <dc:date>2008-06-16T19:07:20Z</dc:date>
    <item>
      <title>enabling the table control fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-the-table-control-fields/m-p/4009177#M957802</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table control with 5 fields. If i click a button, then the 1st and 4th column  of the current table control row gets enabled.   After that the user enters the data in the 1st and 4th column and press 'Enter' key and the corresponding data is fetched from the DB table and displayed in the current table control row.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But after displaying the data, the 1st and 4th column gets DISABLED again.  But i want that fields to be in ENABLE MODE again..  How to do this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls anyone give me the idea to achieve this........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shanthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 12:45:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-the-table-control-fields/m-p/4009177#M957802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T12:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: enabling the table control fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-the-table-control-fields/m-p/4009178#M957803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the PBO create a module..&lt;/P&gt;&lt;P&gt;module enable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inside that write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-ucomm eq 'ENTE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;   IF screen-name EQ 'NAME1'.&lt;/P&gt;&lt;P&gt;  &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;&lt;/P&gt;&lt;P&gt;this will make the fields  of coloumn NAME1 ur table controll editable.&lt;/P&gt;&lt;P&gt;Do the same thing for the other coloumn also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful....&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rudra Prasanna Mohapatra on Jun 16, 2008 3:00 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 13:00:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-the-table-control-fields/m-p/4009178#M957803</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2008-06-16T13:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: enabling the table control fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-the-table-control-fields/m-p/4009179#M957804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shanthi,&lt;/P&gt;&lt;P&gt;            I hope you have written some logic in PBO to make the 1st and 4th coloumn of current row in table control to be editable after pressing one push button.But you are not telling when you want the those coloumn to be in display mode.You should have some flag(some Condition) at the row level which can differentiate between 2 status(Display mode,Change mode).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have shown a Eg: Based on flag.&lt;/P&gt;&lt;P&gt;If flag = 'X'.&lt;/P&gt;&lt;P&gt;Make that 2 coloumn editable.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;Make it as display only&lt;/P&gt;&lt;P&gt;ENdif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you have to decide to set the flag as 'X' whenever you want to make the coloumn as editable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO:&lt;/P&gt;&lt;P&gt;Loop at itab with tc.&lt;/P&gt;&lt;P&gt;module set_screen_attribute.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module set_screen_attribute Output.&lt;/P&gt;&lt;P&gt;If itab-flag = 'X'.&lt;/P&gt;&lt;P&gt;   Loop at screen.&lt;/P&gt;&lt;P&gt;    If screen-name = 'ITAB-F1' or screen-name = 'ITAB-F4'. &lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;screen-input = '1'.&lt;/STRONG&gt;&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; Elseif itab-flag = space.&lt;/P&gt;&lt;P&gt;   loop at screen.&lt;/P&gt;&lt;P&gt;     If screen-name = 'ITAB-F1' or screen-name = 'ITAB-F4'. &lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;screen-input = '0'.&lt;/STRONG&gt;&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; Endif.&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;Regards,&lt;/P&gt;&lt;P&gt;Vigneswaran S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 19:07:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enabling-the-table-control-fields/m-p/4009179#M957804</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2008-06-16T19:07:20Z</dc:date>
    </item>
  </channel>
</rss>

