<?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: functionality of buttons in table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/functionality-of-buttons-in-table-control/m-p/2518885#M569983</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;Declare one flag variable and set it as 'X' when u press 'EDIT',and then in PBO,do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;MODULE tc2_change_tc_attr.&lt;/P&gt;&lt;P&gt;LOOP AT it_marc INTO x_marc WITH CONTROL tc2 CURSOR tc2-current_line.&lt;/P&gt;&lt;P&gt;MODULE tc2_get_lines.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE tc2_get_lines OUTPUT.&lt;/P&gt;&lt;P&gt;g_tc2_lines = sy-loopc.&lt;/P&gt;&lt;P&gt;IF x_marc-sel  = 'X' and flag_edit = 'X'.&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF screen-group1 = 'G1'. -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;lt;" Set the group name1 as G1 for all the table control fields----&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;screen-input = 1.&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;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2007 05:43:45 GMT</pubDate>
    <dc:creator>former_member491305</dc:creator>
    <dc:date>2007-07-11T05:43:45Z</dc:date>
    <item>
      <title>functionality of buttons in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/functionality-of-buttons-in-table-control/m-p/2518883#M569981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;in my requirement i have displayed data in tablecontrol. now when i select a particular record and press button "EDIT' that should be in editable mode and all other records of table control should be in display mode. how would i do that.can you suggest any example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 05:37:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/functionality-of-buttons-in-table-control/m-p/2518883#M569981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T05:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: functionality of buttons in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/functionality-of-buttons-in-table-control/m-p/2518884#M569982</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 will give you a way to do this one,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can write the code in the PBO module, you need to use the LOOP AT SCREEN code. here in the PBO use the GET CURSOR to get the Cursor position and the field name so that you come to know which field you need to edit, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then write the LOOP AT SCREEN and ENDLOOP, in between this you can put the ACTIVE = 1 and DISPLAY = 0 to enable that field. for the field you need to use the field name which you got from the GET CURSOR&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 05:40:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/functionality-of-buttons-in-table-control/m-p/2518884#M569982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T05:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: functionality of buttons in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/functionality-of-buttons-in-table-control/m-p/2518885#M569983</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;Declare one flag variable and set it as 'X' when u press 'EDIT',and then in PBO,do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;MODULE tc2_change_tc_attr.&lt;/P&gt;&lt;P&gt;LOOP AT it_marc INTO x_marc WITH CONTROL tc2 CURSOR tc2-current_line.&lt;/P&gt;&lt;P&gt;MODULE tc2_get_lines.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE tc2_get_lines OUTPUT.&lt;/P&gt;&lt;P&gt;g_tc2_lines = sy-loopc.&lt;/P&gt;&lt;P&gt;IF x_marc-sel  = 'X' and flag_edit = 'X'.&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF screen-group1 = 'G1'. -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;lt;" Set the group name1 as G1 for all the table control fields----&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;screen-input = 1.&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;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 05:43:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/functionality-of-buttons-in-table-control/m-p/2518885#M569983</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2007-07-11T05:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: functionality of buttons in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/functionality-of-buttons-in-table-control/m-p/2518886#M569984</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;Just put some char1 fields in your table structure, change the type in attributes to 'radiobuttion' and assign a group.&lt;/P&gt;&lt;P&gt;Compare dynpro 8022 of program SAPLMGD2 (hope this is part of your system, too).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you like to have the radiobuttions not in one line, but in one column, then you go better for the 'mark' column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other option&lt;/P&gt;&lt;P&gt;**********************&lt;/P&gt;&lt;P&gt;CHeck this &amp;lt;b&amp;gt;demo program RSDEMO02&amp;lt;/b&amp;gt; here you can see checkbox in table control, instead of radio button you can use checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 05:55:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/functionality-of-buttons-in-table-control/m-p/2518886#M569984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T05:55:28Z</dc:date>
    </item>
  </channel>
</rss>

