<?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: Changing buttons texts dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-buttons-texts-dynamically/m-p/1646851#M287682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a report or an online program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Oct 2006 20:51:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-19T20:51:22Z</dc:date>
    <item>
      <title>Changing buttons texts dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-buttons-texts-dynamically/m-p/1646850#M287681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I change the button text dynamically on a screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one button with the text: "Overwrite = OFF" and I want to change to "Overwrite = ON" when the user click on it, and if the user click again it will change back to "Overwrite = OFF".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA. Mauro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Mauro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 20:26:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-buttons-texts-dynamically/m-p/1646850#M287681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T20:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Changing buttons texts dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-buttons-texts-dynamically/m-p/1646851#M287682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a report or an online program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 20:51:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-buttons-texts-dynamically/m-p/1646851#M287682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T20:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Changing buttons texts dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-buttons-texts-dynamically/m-p/1646852#M287683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that's kind of difficult cause you will have to search de properties of the screen. The best thing to do it could be to take a copy of the screen but with the text of the button you want, and set the screen in the event you want to catch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this idea be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 20:57:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-buttons-texts-dynamically/m-p/1646852#M287683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T20:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Changing buttons texts dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-buttons-texts-dynamically/m-p/1646853#M287684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mauro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Required
  TABLES:
    sscrfields.
  FIELD-SYMBOLS:
    &amp;lt;field&amp;gt; TYPE ANY,
    &amp;lt;value&amp;gt; TYPE ANY.
* Selection screen with one push button
  SELECTION-SCREEN:
    BEGIN OF BLOCK b1 WITH FRAME,
      PUSHBUTTON 3(20)  but1 USER-COMMAND cli1,
    END OF BLOCK b1.
* Event
  AT SELECTION-SCREEN.
    CASE sscrfields.
      WHEN 'CLI1'.
        LOOP AT SCREEN.
          IF screen-name EQ 'BUT1'.
            ASSIGN screen-name TO &amp;lt;field&amp;gt;.
            ASSIGN (&amp;lt;field&amp;gt;) TO &amp;lt;value&amp;gt;.
            IF &amp;lt;value&amp;gt; EQ 'Status = OFF'.
              &amp;lt;value&amp;gt; = 'Status = ON'.
            ELSE.
              &amp;lt;value&amp;gt; = 'Status = OFF'.
            ENDIF.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
    ENDCASE.
* Cleanup (don't forget)
  IF &amp;lt;field&amp;gt; IS ASSIGNED. UNASSIGN &amp;lt;field&amp;gt;. ENDIF.
  IF &amp;lt;value&amp;gt; IS ASSIGNED. UNASSIGN &amp;lt;value&amp;gt;. ENDIF.
* Initial value set
  INITIALIZATION.
    but1 = 'Status = OFF'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rob.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 21:03:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-buttons-texts-dynamically/m-p/1646853#M287684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T21:03:49Z</dc:date>
    </item>
  </channel>
</rss>

