<?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 Function call on a pushbutton click in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-call-on-a-pushbutton-click/m-p/3734679#M898865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can anybody guide me to find a solution of the following problem&lt;/P&gt;&lt;P&gt;I have a push button and i want to call a function to transfer a file from one folder to another .&lt;/P&gt;&lt;P&gt;The problem is how to call that function on the click of the button.&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>Tue, 06 May 2008 09:31:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-06T09:31:14Z</dc:date>
    <item>
      <title>Function call on a pushbutton click</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-call-on-a-pushbutton-click/m-p/3734679#M898865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can anybody guide me to find a solution of the following problem&lt;/P&gt;&lt;P&gt;I have a push button and i want to call a function to transfer a file from one folder to another .&lt;/P&gt;&lt;P&gt;The problem is how to call that function on the click of the button.&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>Tue, 06 May 2008 09:31:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-call-on-a-pushbutton-click/m-p/3734679#M898865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T09:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Function call on a pushbutton click</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-call-on-a-pushbutton-click/m-p/3734680#M898866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well in the PAI section of your dynpro you either already have some staement like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
case sy-ucomm.
  when 'xxxx'.

  when others.

endcase.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there insert a when with your funtion code and the do your coding.&lt;/P&gt;&lt;P&gt;e-G- call function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 09:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-call-on-a-pushbutton-click/m-p/3734680#M898866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T09:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Function call on a pushbutton click</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-call-on-a-pushbutton-click/m-p/3734681#M898867</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;When you click on the pushbutton.&lt;/P&gt;&lt;P&gt;you have assigned any function code to that or if it a selection screen you have assigned any user-command to that pushbutton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write the code for the same &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;when 'PUSH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perform your action here.( YOUR FUNCTION MODULE CALL )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Encase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 09:35:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-call-on-a-pushbutton-click/m-p/3734681#M898867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T09:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Function call on a pushbutton click</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-call-on-a-pushbutton-click/m-p/3734682#M898868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I actually created a user defined function in that i am calling a function module .&lt;/P&gt;&lt;P&gt;But when i write a perform statement in CASE-ENDCASE block it do not executes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 09:47:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-call-on-a-pushbutton-click/m-p/3734682#M898868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T09:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Function call on a pushbutton click</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-call-on-a-pushbutton-click/m-p/3734683#M898869</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;Check the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools icon.&lt;/P&gt;&lt;P&gt;data: v_flag type c.&lt;/P&gt;&lt;P&gt;tables: sscrfields.&lt;/P&gt;&lt;P&gt;selection-screen begin of block file with frame.&lt;/P&gt;&lt;P&gt;selection-screen skip.&lt;/P&gt;&lt;P&gt;selection-screen pushbutton 1(30) xdatatxt user-command &lt;STRONG&gt;selx&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;selection-screen skip.&lt;/P&gt;&lt;P&gt;selection-screen end of block file  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt; xdatatxt+5 = 'Physical file'.&lt;/P&gt;&lt;P&gt; xdatatxt+0(5) = icon_address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if sscrfields-ucomm = 'SELX'.&lt;/P&gt;&lt;P&gt;  v_flag = 'X'.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;if v_flag = 'X'.&lt;/P&gt;&lt;P&gt;write:/ 'selected'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;do what ever you want here&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write:/ 'No'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 10:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-call-on-a-pushbutton-click/m-p/3734683#M898869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T10:43:19Z</dc:date>
    </item>
  </channel>
</rss>

