<?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: Pushbutton's text, can i change it dynamically? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-s-text-can-i-change-it-dynamically/m-p/3395823#M815390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! Everything works pefectly now.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2008 08:42:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-14T08:42:39Z</dc:date>
    <item>
      <title>Pushbutton's text, can i change it dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-s-text-can-i-change-it-dynamically/m-p/3395821#M815388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm using a module pool to create a dynpro as web interface. According to sy-tcode calling the dynpro I should be able to change the text of 3 pushbuttons. Is there a way to achieve that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, from screen painter I saw you can make an I/O field "sensible to double click", how is it possible to "catch" the click so that I can take an action as I'm doing with the pushbutton's function code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 17:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-s-text-can-i-change-it-dynamically/m-p/3395821#M815388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T17:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Pushbutton's text, can i change it dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-s-text-can-i-change-it-dynamically/m-p/3395822#M815389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By Web interface do you mean you are creating a WebDynpro Component ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if your query is related to a GUI transaction/module pool application then you can do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem 1: Changing the texts on the pushbuttons&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, say you have a button which shows "Display", "Create" and "Change" based on the Tcode you are accessing the transaction with. Then you &lt;STRONG&gt;create three buttons&lt;/STRONG&gt; in your dialog screen. One with each text , however having the &lt;STRONG&gt;same OKCODE&lt;/STRONG&gt;. Have separate modif IDs for them e.g. DIS, INS, CHG respectively and then based on sy-tcode you hide the not required buttons in PBO using LOOP AT SCREEN WHERE GROUP1 EQ ..... SCREEN-INVISIBLE = 1. SCREEN-ACTIVE = 0. &lt;STRONG&gt;MODIFY SCREEN&lt;/STRONG&gt;. ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI, now you would get the same OKCODE for all the buttons, but you can further segragate by SY_TCODE as so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case OKCODE.&lt;/P&gt;&lt;P&gt; WHEN 'BUTN'&lt;/P&gt;&lt;P&gt;   CASE SY-TCODE.  &lt;/P&gt;&lt;P&gt;     WHEN '......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem 2: Double Click&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you set the flag for double click, you also need to assign an OKCODE viz. &lt;STRONG&gt;PICK&lt;/STRONG&gt; to function key &lt;STRONG&gt;F2 in the PF status&lt;/STRONG&gt; of the screen. Hence when the user double clicks on the I/O field, the function code PICK is auto triggered by SAP and can be captured in PAI module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to know which field was double clicked on you can use &lt;STRONG&gt;GET CURSOR&lt;/STRONG&gt; command to get the screen name of the field double clicked and subsequently the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 17:54:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-s-text-can-i-change-it-dynamically/m-p/3395822#M815389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T17:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pushbutton's text, can i change it dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-s-text-can-i-change-it-dynamically/m-p/3395823#M815390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! Everything works pefectly now.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 08:42:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-s-text-can-i-change-it-dynamically/m-p/3395823#M815390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T08:42:39Z</dc:date>
    </item>
  </channel>
</rss>

