<?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: Calling push button dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-push-button-dynamically/m-p/10743744#M1875213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the problem with error message is that its stop the further processing. If you show a status or information message in your logic, and then make second tab as active tab it will navigate to second tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Dec 2014 12:32:29 GMT</pubDate>
    <dc:creator>dani_mn</dc:creator>
    <dc:date>2014-12-01T12:32:29Z</dc:date>
    <item>
      <title>Calling push button dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-push-button-dynamically/m-p/10743738#M1875207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to call a push button at run time or through code?&amp;nbsp; Suppose in my module pool program in a particular screen having two push button , i.e. Button1 and Button2 . When user click on Button1 then inside program or code it should call Button2&amp;nbsp; as if user clicked on Button2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am asking this question because I have to jump to or call a particular Tab when some error occurred in another tab in the same screen . My screen having 5 nos of tabs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Pk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 11:42:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-push-button-dynamically/m-p/10743738#M1875207</guid>
      <dc:creator>pkb</dc:creator>
      <dc:date>2014-12-01T11:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calling push button dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-push-button-dynamically/m-p/10743739#M1875208</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;You can simply call the Form routine behind "Button 2". why you are thinking so complex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case sy-ucomm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when 'BUT1'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Perform&amp;nbsp;&amp;nbsp; F1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when 'BUT2'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Perform F2.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form F1.&lt;/P&gt;&lt;P&gt;"your logic&lt;/P&gt;&lt;P&gt;Perform F2.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form F2.&lt;/P&gt;&lt;P&gt;"logic&lt;/P&gt;&lt;P&gt;Endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 11:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-push-button-dynamically/m-p/10743739#M1875208</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2014-12-01T11:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calling push button dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-push-button-dynamically/m-p/10743740#M1875209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You can directly set a SY-UCOMM Value&amp;nbsp; Where ever you want...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex,you are in Button 1&lt;/P&gt;&lt;P&gt; inside this you can use &lt;/P&gt;&lt;P&gt;&amp;nbsp; sy-ucomm = 'BUTTON2'. ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 11:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-push-button-dynamically/m-p/10743740#M1875209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-01T11:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calling push button dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-push-button-dynamically/m-p/10743741#M1875210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Wasim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&amp;nbsp; My actual requirement is stated in second part of my post. I have a screen with 5 nos of tabs . User can enter data in first tab screen and without going to second tab screen he can save data. But now we have inserted few checks in second tab . So Now when user entered data in first tab and try to save records with out visiting second tab , system shows error message because of our validation check . But my client wants that when user response to error message then cursor should automatically move to second tab's field where we have given the check for compulsory data.&lt;/P&gt;&lt;P&gt;Here the second tab in my screen is nothing but a push button which is I want to call dynamically when error occurred for validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So , Wasim can you help in this regards?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-PK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 12:18:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-push-button-dynamically/m-p/10743741#M1875210</guid>
      <dc:creator>pkb</dc:creator>
      <dc:date>2014-12-01T12:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calling push button dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-push-button-dynamically/m-p/10743742#M1875211</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;To go to a tab of the tabstrip you need to set the field activetab of the tabstrip control to the function code of the tab that you want to be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PAI,&lt;/P&gt;&lt;P&gt;tab_cntrl-activetab = 'FCT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's all. This will go to the tab which has function code as FCT.&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;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 12:27:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-push-button-dynamically/m-p/10743742#M1875211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-01T12:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calling push button dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-push-button-dynamically/m-p/10743743#M1875212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Ranjit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&amp;nbsp; I have tried as you have suggested . I have inserted SY-UCOMM = FctCode just after the error message&amp;nbsp; but found that Sy-UCOMM is holding value of enter key since we have responded to error message by pressing enter key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My actual requirement is stated in&amp;nbsp; the reply to Wasim .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranjit can you help to solve by problem as stated in reply to Wasim ?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Pk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 12:27:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-push-button-dynamically/m-p/10743743#M1875212</guid>
      <dc:creator>pkb</dc:creator>
      <dc:date>2014-12-01T12:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calling push button dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-push-button-dynamically/m-p/10743744#M1875213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the problem with error message is that its stop the further processing. If you show a status or information message in your logic, and then make second tab as active tab it will navigate to second tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 12:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-push-button-dynamically/m-p/10743744#M1875213</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2014-12-01T12:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calling push button dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-push-button-dynamically/m-p/10743745#M1875214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that what you are searching for is this function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: bold; color: #005066;"&gt;CALL FUNCTION&lt;/SPAN&gt; &lt;SPAN style="color: #4da619;"&gt;‘SAPGUI_SET_FUNCTIONCODE’&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-weight: bold; color: #500066;"&gt;EXPORTING&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; functioncode &lt;SPAN style="color: #800080;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #4da619;"&gt;‘/i′&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-weight: bold; color: #500066;"&gt;EXCEPTIONS&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; function_not_supported &lt;SPAN style="color: #800080;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #3399ff;"&gt;1&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-weight: bold; color: #500066;"&gt;OTHERS&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #3399ff;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080;"&gt;For example this code will make that when the source code reach this fm the sessión will be closed. You can put any function code, so if you need to execute a push buton just put the function code associated to that button.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080;"&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 12:36:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-push-button-dynamically/m-p/10743745#M1875214</guid>
      <dc:creator>Rodrigo-Giner</dc:creator>
      <dc:date>2014-12-01T12:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calling push button dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-push-button-dynamically/m-p/10743746#M1875215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ashish ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your reply helps us a lot . Tabstrip Activation is the actual way to go to a particular screen's tab after responding an error message by user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again Ashish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-pk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 06:19:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-push-button-dynamically/m-p/10743746#M1875215</guid>
      <dc:creator>pkb</dc:creator>
      <dc:date>2014-12-02T06:19:29Z</dc:date>
    </item>
  </channel>
</rss>

