<?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: Module Pool - Push Button text change in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-push-button-text-change/m-p/5599967#M1276264</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create Button&lt;DEL&gt;&amp;gt;Give a Name&lt;/DEL&gt;&amp;gt;Group Name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN PAI.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SET FLAG = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF Flag = 'X'.
&amp;lt;Pushbutton Name&amp;gt; = 'NEW'.                  " Change the Display name of button

Loop at screen.
If Screeen-Group1 = 'AA'.
Screen-Invisible = 1.
ENDIF.
Modify Screen.
ENDloop.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 May 2009 11:22:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-07T11:22:20Z</dc:date>
    <item>
      <title>Module Pool - Push Button text change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-push-button-text-change/m-p/5599960#M1276257</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;According to the requirement, I need to change the text of the push button, can anybody help me to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PUSHBUTTON text as 'NEW' by defult and when it is pushed once, PUSHBOTTON text should be as 'MODIFY'. I do not want to add or disabled button. Can we change the text dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 11:06:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-push-button-text-change/m-p/5599960#M1276257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T11:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool - Push Button text change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-push-button-text-change/m-p/5599961#M1276258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can not change the text dynamically,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one thing that can be done is,&lt;/P&gt;&lt;P&gt;you create another push button, with a different name.&lt;/P&gt;&lt;P&gt;then you display any of the push button, as per the requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 11:09:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-push-button-text-change/m-p/5599961#M1276258</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2009-05-07T11:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool - Push Button text change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-push-button-text-change/m-p/5599962#M1276259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it very well. &lt;/P&gt;&lt;P&gt;Check the options in pushbutton where you can write comments.&lt;/P&gt;&lt;P&gt;assign that as sy-ucomm, bring the control to program again, change the text as per your requirement, pass the same fields to pushbutton comments. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would give you some idea to approach to the assignment. &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;BabuSrinath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 11:13:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-push-button-text-change/m-p/5599962#M1276259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T11:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool - Push Button text change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-push-button-text-change/m-p/5599963#M1276260</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;we can change push button text dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;look into below example, here TB_HEADER is push button name in the screen layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-name = 'TB_HEADER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CLEAR wa_sctx.&lt;/P&gt;&lt;P&gt;       READ TABLE tb_sctx INTO wa_sctx WITH KEY tech_name = screen-name&lt;/P&gt;&lt;P&gt;                                                          BINARY SEARCH.&lt;/P&gt;&lt;P&gt;        IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;          tb_header = wa_sctx-dfe_feild_desc.&lt;/P&gt;&lt;P&gt;          MODIFY SCREEN.&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;    ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 11:14:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-push-button-text-change/m-p/5599963#M1276260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T11:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool - Push Button text change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-push-button-text-change/m-p/5599964#M1276261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do it.&lt;/P&gt;&lt;P&gt;where you can write comments as per requirment ,check pushbutton options,&lt;/P&gt;&lt;P&gt;assign sy-ucomm, get the control to program again, change the text as per your requirement, pass the same fields to pushbutton comments.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 11:18:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-push-button-text-change/m-p/5599964#M1276261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T11:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool - Push Button text change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-push-button-text-change/m-p/5599965#M1276262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do it.&lt;/P&gt;&lt;P&gt;where you can write comments as per requirment ,check pushbutton options,&lt;/P&gt;&lt;P&gt;assign sy-ucomm, get the control to program again, change the text as per your requirement, pass the same fields to pushbutton comments.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 11:19:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-push-button-text-change/m-p/5599965#M1276262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T11:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool - Push Button text change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-push-button-text-change/m-p/5599966#M1276263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lavanya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR wa_sctx.&lt;/P&gt;&lt;P&gt;READ TABLE tb_sctx INTO wa_sctx WITH KEY tech_name = screen-name&lt;/P&gt;&lt;P&gt;BINARY SEARCH.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;tb_header = wa_sctx-dfe_feild_desc.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is tb_sctx ? where do we define TB_HEADER in the program ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 11:21:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-push-button-text-change/m-p/5599966#M1276263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T11:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool - Push Button text change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-push-button-text-change/m-p/5599967#M1276264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create Button&lt;DEL&gt;&amp;gt;Give a Name&lt;/DEL&gt;&amp;gt;Group Name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN PAI.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SET FLAG = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF Flag = 'X'.
&amp;lt;Pushbutton Name&amp;gt; = 'NEW'.                  " Change the Display name of button

Loop at screen.
If Screeen-Group1 = 'AA'.
Screen-Invisible = 1.
ENDIF.
Modify Screen.
ENDloop.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 11:22:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-push-button-text-change/m-p/5599967#M1276264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T11:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool - Push Button text change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-push-button-text-change/m-p/5599968#M1276265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BabuSrinath, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please explain in detail the process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 11:25:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-push-button-text-change/m-p/5599968#M1276265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T11:25:02Z</dc:date>
    </item>
  </channel>
</rss>

