<?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>Question Re: change button text dynamically in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/change-button-text-dynamically/qaa-p/1047589#M415178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mattias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; It can be done!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am assuming u have screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Intially the text will be 'START' in the button and when u press that button, It should change to STOP???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idea: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   1. Create only ONE Button in the Screen 100.&lt;/P&gt;&lt;P&gt;   2. Name the button as BUTTONNAME and assign a FCODe &lt;/P&gt;&lt;P&gt;      as 'PRES'.&lt;/P&gt;&lt;P&gt;   3. In the main program, have &lt;/P&gt;&lt;P&gt;        data: buttonName(20).&lt;/P&gt;&lt;P&gt;   4. Have a FLag &lt;/P&gt;&lt;P&gt;        data: clicked type c value 'N'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   5. In the PBO. &lt;/P&gt;&lt;P&gt;        If clicked eq 'N'.&lt;/P&gt;&lt;P&gt;             buttonName = 'START'.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;             buttonName = 'STOP'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   6.  In the PAI.&lt;/P&gt;&lt;P&gt;        case okCode.&lt;/P&gt;&lt;P&gt;          when 'PRES'. &lt;/P&gt;&lt;P&gt;             clicked = 'Y'.&lt;/P&gt;&lt;P&gt;             .............&lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;P&gt;           when others.&lt;/P&gt;&lt;P&gt;                leave program.&lt;/P&gt;&lt;P&gt;        endcase.      &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  This could help and it is not a good programming practice. Instead , have a Second Screen 200(just a copy of Screen 100). When u press START in screen 100, get the okCode and call Screen 200(having STOP Button). When the User press STOP in Screen 200, u could Stop the transaction or leave the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Allot points for all worthful postings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Nov 2005 10:20:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-23T10:20:34Z</dc:date>
    <item>
      <title>change button text dynamically</title>
      <link>https://community.sap.com/t5/technology-q-a/change-button-text-dynamically/qaq-p/1047584</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;Situation:&lt;/P&gt;&lt;P&gt;I have a 2 Buttons on a dynpro, which are labelled &amp;lt;i&amp;gt;start&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;stop&amp;lt;/i&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aim:&lt;/P&gt;&lt;P&gt;The aim is to have only one button, which changes the label when pushed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;is there a way to change the text on a button (on a dynpro)  dynamically? (I don't talk about GUI-Status Buttons).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Matthias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2005 09:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/change-button-text-dynamically/qaq-p/1047584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-23T09:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: change button text dynamically</title>
      <link>https://community.sap.com/t5/technology-q-a/change-button-text-dynamically/qaa-p/1047585#M415174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;JUST CREATE TWO BUTTONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. START&lt;/P&gt;&lt;P&gt;2. STOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOW..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wriite a module &amp;lt;b&amp;gt;loop_screen&amp;lt;/b&amp;gt; at pbo. here you set one button visible, another invisible, depending o condiion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am just giving you one report program..where the selection screen get changed dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the code of the &amp;lt;b&amp;gt;modify_screen&amp;lt;/b&amp;gt; perform in your &amp;lt;b&amp;gt;loop_screen&amp;lt;/b&amp;gt; module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run this code..and select radio buttons, see the screen change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for better understanding..just create 3 text-element, before running this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text-100 = COPY&lt;/P&gt;&lt;P&gt;text-200 = MOVE&lt;/P&gt;&lt;P&gt;text-300 = DELEET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zxx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-parameters----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen:&lt;/P&gt;&lt;P&gt;         Begin of block r1 with frame title text-006.&lt;/P&gt;&lt;P&gt;   parameters:&lt;/P&gt;&lt;P&gt;            p_cp1  radiobutton group rb1 default 'X' USER-COMMAND RND,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           p_cp2  radiobutton group rb1,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            p_mv1  radiobutton group rb1,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           p_mv2  radiobutton group rb1,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            p_ren  radiobutton group rb1,&lt;/P&gt;&lt;P&gt;            p_del1 radiobutton group rb1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           p_del2 radiobutton group rb1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;selection-screen:&lt;/P&gt;&lt;P&gt;         End of block r1.&lt;/P&gt;&lt;P&gt;selection-screen:&lt;/P&gt;&lt;P&gt;          begin of block b1 with frame title text-004.&lt;/P&gt;&lt;P&gt;   parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       loc1(128) obligatory lower case   "Location1&lt;/P&gt;&lt;P&gt;                    default 'E:\usr\sap\put' modif id 1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       file(128) obligatory  lower case    "Filename&lt;/P&gt;&lt;P&gt;               default 'E:\usr\sap\put\ekpo.dat' modif id 2,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       newname(128) obligatory  lower case "Filname&lt;/P&gt;&lt;P&gt;                     default 'abcd.txt' modif id 3,&lt;/P&gt;&lt;P&gt;       loc2(128) obligatory lower case   "Location2&lt;/P&gt;&lt;P&gt;               default 'E:\usr\sap\D12\SYS\gen' modif id 4.&lt;/P&gt;&lt;P&gt;   selection-screen:&lt;/P&gt;&lt;P&gt;   skip,&lt;/P&gt;&lt;P&gt;    PUSHBUTTON /05(23) TEXT-001 USER-COMMAND ZCOPY modif id 5,"COPY&lt;/P&gt;&lt;P&gt;    PUSHBUTTON  30(23) TEXT-002 USER-COMMAND ZMOV modif id 6, "CUT&lt;/P&gt;&lt;P&gt;    PUSHBUTTON  55(23) TEXT-003 USER-COMMAND ZDELETE modif id 7, "DELTE&lt;/P&gt;&lt;P&gt;       skip,&lt;/P&gt;&lt;P&gt;    PUSHBUTTON /30(23) TEXT-005 USER-COMMAND ZREN modif id 8, "RENAME&lt;/P&gt;&lt;P&gt;       end of block b1.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  at selection-screen output .&lt;/P&gt;&lt;P&gt;      perform modify_screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  modify_screen&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form modify_screen.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;         if p_cp1 eq 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             if screen-group1 = '3' or&lt;/P&gt;&lt;P&gt;                screen-group1 = '6' or&lt;/P&gt;&lt;P&gt;                screen-group1 = '7' or&lt;/P&gt;&lt;P&gt;                screen-group1 = '8'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                screen-active = 0.&lt;/P&gt;&lt;P&gt;             endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         elseif p_mv1 eq 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             if screen-group1 = '3' or&lt;/P&gt;&lt;P&gt;                screen-group1 = '5' or&lt;/P&gt;&lt;P&gt;                screen-group1 = '7' or&lt;/P&gt;&lt;P&gt;                screen-group1 = '8'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                screen-active = 0.&lt;/P&gt;&lt;P&gt;             endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         elseif p_del1 eq 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             if screen-group1 = '3' or&lt;/P&gt;&lt;P&gt;                screen-group1 = '4' or&lt;/P&gt;&lt;P&gt;                screen-group1 = '5' or&lt;/P&gt;&lt;P&gt;                screen-group1 = '6' or&lt;/P&gt;&lt;P&gt;                screen-group1 = '8'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                screen-active = 0.&lt;/P&gt;&lt;P&gt;             endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         elseif p_ren eq 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             if screen-group1 = '4' or&lt;/P&gt;&lt;P&gt;                screen-group1 = '5' or&lt;/P&gt;&lt;P&gt;                screen-group1 = '6' or&lt;/P&gt;&lt;P&gt;                screen-group1 = '7'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                screen-active = 0.&lt;/P&gt;&lt;P&gt;             endif.&lt;/P&gt;&lt;P&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;&lt;/P&gt;&lt;P&gt;endform.                    " modify_screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward points if it helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2005 09:54:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/change-button-text-dynamically/qaa-p/1047585#M415174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-23T09:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: change button text dynamically</title>
      <link>https://community.sap.com/t5/technology-q-a/change-button-text-dynamically/qaa-p/1047586#M415175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anid again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right now I am using 2 buttons, which in fact i show/hide during pbo loop at screen.&lt;/P&gt;&lt;P&gt;The problem with this is, that i can't place the buttons in the same place (same screen coordinates).&lt;/P&gt;&lt;P&gt;btw, i am on a dynpro in the layout-mode of screen painter, where I set up the butts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I can use 2 butts lying above each other or manipulate the label, when using only one, I shall be close to perfect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matthias kasig&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2005 10:11:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/change-button-text-dynamically/qaa-p/1047586#M415175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-23T10:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: change button text dynamically</title>
      <link>https://community.sap.com/t5/technology-q-a/change-button-text-dynamically/qaa-p/1047587#M415176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya.i can understand the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you can't put one object (here BUTTON) over another in screen painter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;visible/invisible is the solution as per my idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one cumbersome method is..(funny, stil it works) &lt;/P&gt;&lt;P&gt;1. just keep one button in that screen(100 say)&lt;/P&gt;&lt;P&gt;2.create a duplicate screen 200 with one button, the lable being different.&lt;/P&gt;&lt;P&gt;3.now call appropriate screen  depending on condition, for better look and feel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2005 10:16:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/change-button-text-dynamically/qaa-p/1047587#M415176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-23T10:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: change button text dynamically</title>
      <link>https://community.sap.com/t5/technology-q-a/change-button-text-dynamically/qaa-p/1047588#M415177</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 a global variable in TOP include as gv_pb_text(20). And then have one push button in the screen with name gv_pb_text and then mark it as Output only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your PBO, fill gv_pb_text based on your conditions,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF gv_button_clicked EQ 'X'. &lt;/P&gt;&lt;P&gt;  gv_pb_text = 'Start'(001).&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  gv_pb_text = 'Stop'(002).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your USER_COMMAND Module in PAI (or whatever your Fcode handling module is), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WHEN 'STARTSTOP'. "Assuming this pb's function code&lt;/P&gt;&lt;P&gt;    IF gv_button_clicked EQ 'X'.&lt;/P&gt;&lt;P&gt;      CLEAR gv_button_clicked.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      gv_button_clicked = 'X'.&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;Sri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Pinnamaneni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2005 10:16:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/change-button-text-dynamically/qaa-p/1047588#M415177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-23T10:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: change button text dynamically</title>
      <link>https://community.sap.com/t5/technology-q-a/change-button-text-dynamically/qaa-p/1047589#M415178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mattias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; It can be done!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am assuming u have screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Intially the text will be 'START' in the button and when u press that button, It should change to STOP???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idea: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   1. Create only ONE Button in the Screen 100.&lt;/P&gt;&lt;P&gt;   2. Name the button as BUTTONNAME and assign a FCODe &lt;/P&gt;&lt;P&gt;      as 'PRES'.&lt;/P&gt;&lt;P&gt;   3. In the main program, have &lt;/P&gt;&lt;P&gt;        data: buttonName(20).&lt;/P&gt;&lt;P&gt;   4. Have a FLag &lt;/P&gt;&lt;P&gt;        data: clicked type c value 'N'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   5. In the PBO. &lt;/P&gt;&lt;P&gt;        If clicked eq 'N'.&lt;/P&gt;&lt;P&gt;             buttonName = 'START'.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;             buttonName = 'STOP'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   6.  In the PAI.&lt;/P&gt;&lt;P&gt;        case okCode.&lt;/P&gt;&lt;P&gt;          when 'PRES'. &lt;/P&gt;&lt;P&gt;             clicked = 'Y'.&lt;/P&gt;&lt;P&gt;             .............&lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;P&gt;           when others.&lt;/P&gt;&lt;P&gt;                leave program.&lt;/P&gt;&lt;P&gt;        endcase.      &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  This could help and it is not a good programming practice. Instead , have a Second Screen 200(just a copy of Screen 100). When u press START in screen 100, get the okCode and call Screen 200(having STOP Button). When the User press STOP in Screen 200, u could Stop the transaction or leave the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Allot points for all worthful postings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2005 10:20:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/change-button-text-dynamically/qaa-p/1047589#M415178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-23T10:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: change button text dynamically</title>
      <link>https://community.sap.com/t5/technology-q-a/change-button-text-dynamically/qaa-p/1047590#M415179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;There is a simple way to do this:&lt;/P&gt;&lt;P&gt;1. Add a button with the screen painter and name it perhaps "HARRY".&lt;/P&gt;&lt;P&gt;2. In the properties set the button to "Output"&lt;/P&gt;&lt;P&gt;3. Create a variable in TOP or somewhere else which is also named "HARRY" perhaps by "DATA: HARRY(16) TYPE C."&lt;/P&gt;&lt;P&gt;4. Change HARRY to contain something by "HARRY = 'harry'." in the PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the sample coding &lt;/P&gt;&lt;P&gt;REPORT  z_dietzha_test_000000000000085.&lt;/P&gt;&lt;P&gt;DATA: testbutton TYPE c, okcode TYPE syucomm.&lt;/P&gt;&lt;P&gt;CALL SCREEN 0100.&lt;/P&gt;&lt;P&gt;INCLUDE z_dietzha_test_00000000000085i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***INCLUDE Z_DIETZHA_TEST_00000000000085I .&lt;/P&gt;&lt;P&gt;MODULE user_command_0100 INPUT.&lt;/P&gt;&lt;P&gt;  IF sy-ucomm = 'EXIT'. LEAVE TO SCREEN 0. ENDIF.&lt;/P&gt;&lt;P&gt;  IF testbutton = '1'. testbutton = '2'. ELSE. testbutton = '1'. ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the screen 0100 the TESTBUTTON has the field "Output" checked in the "General attr." tab.&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;Harry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2005 10:34:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/change-button-text-dynamically/qaa-p/1047590#M415179</guid>
      <dc:creator>harry_dietz</dc:creator>
      <dc:date>2005-11-23T10:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: change button text dynamically</title>
      <link>https://community.sap.com/t5/technology-q-a/change-button-text-dynamically/qaa-p/1047591#M415180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check this post... you will definitely get it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://theabap.blogspot.in/2013/06/changing-label-of-push-button.html"&gt;http://theabap.blogspot.in/2013/06/changing-label-of-push-button.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 07:08:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/change-button-text-dynamically/qaa-p/1047591#M415180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-25T07:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: change button text dynamically</title>
      <link>https://community.sap.com/t5/technology-q-a/change-button-text-dynamically/qaa-p/1047592#M415181</link>
      <description>&lt;P&gt;It's Perfect,&lt;/P&gt;&lt;P&gt;and clear.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 14:16:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/change-button-text-dynamically/qaa-p/1047592#M415181</guid>
      <dc:creator>Techouest_B</dc:creator>
      <dc:date>2022-11-22T14:16:18Z</dc:date>
    </item>
  </channel>
</rss>

