<?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: Push button click event in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-click-event/m-p/1429087#M205355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that your are using Dialog programming,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. While creating the button you might have given a function code to that button. Am I right ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Now what ever you do on the screen with the UI elements, the corresponding function code would be captured in the PAI event ( Process After Input) in the system variable sy-ucomm. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Now create a module like MODULE_GET_FCODE under the event PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Now check for the sy-ucomm ( This variable will hold the function code of the UI element that you had clicked)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Using this variable, you can call FM's like POPUP_TO_CONFIRM etc.,, or else you can handle you own process here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs,&lt;/P&gt;&lt;P&gt;Venkat Ramanan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Venkat Ramanan Natarajan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jun 2006 04:17:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-15T04:17:17Z</dc:date>
    <item>
      <title>Push button click event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-click-event/m-p/1429083#M205351</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;&lt;/P&gt;&lt;P&gt;I am using a push button in screen.&lt;/P&gt;&lt;P&gt;What should i do to click event for it.&lt;/P&gt;&lt;P&gt;I want a popup message when i click that button.&lt;/P&gt;&lt;P&gt;How should i proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrds,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 03:25:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-click-event/m-p/1429083#M205351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T03:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Push button click event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-click-event/m-p/1429084#M205352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am assuming you are talking about DIALOG pprogramming.&lt;/P&gt;&lt;P&gt;In the PAI event of the screen, you will have to handle all the function codes. You can assign a function code to the button in the screen editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PAI.&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;   MESSAGE XXXXXXXX&lt;/P&gt;&lt;P&gt;    Or call a POPUP function to display a POP UP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 03:32:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-click-event/m-p/1429084#M205352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T03:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Push button click event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-click-event/m-p/1429085#M205353</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;In the PAI event, you will check which button has been clicked. If the 'next' button is clicked, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;display the message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Jothi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 03:37:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-click-event/m-p/1429085#M205353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T03:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Push button click event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-click-event/m-p/1429086#M205354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;Check this event under Screen Flow Logic .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;PROCESS AFTER INPUT.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt; MODULE USER_COMMAND_1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_1000 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  okcode = sy-ucomm.&lt;/P&gt;&lt;P&gt;  CLEAR sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE okcode.&lt;/P&gt;&lt;P&gt;    WHEN 'CHANGE'.&lt;/P&gt;&lt;P&gt;    Call Function module &lt;/P&gt;&lt;P&gt;    &amp;lt;b&amp;gt;POPUP_TO_CONFORM&amp;lt;/b&amp;gt; or &lt;/P&gt;&lt;P&gt;    &amp;lt;b&amp;gt;POPUP_DISPLAY_MESSAGE&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that it helps u .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkat.O&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 03:56:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-click-event/m-p/1429086#M205354</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2006-06-15T03:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Push button click event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-click-event/m-p/1429087#M205355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that your are using Dialog programming,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. While creating the button you might have given a function code to that button. Am I right ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Now what ever you do on the screen with the UI elements, the corresponding function code would be captured in the PAI event ( Process After Input) in the system variable sy-ucomm. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Now create a module like MODULE_GET_FCODE under the event PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Now check for the sy-ucomm ( This variable will hold the function code of the UI element that you had clicked)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Using this variable, you can call FM's like POPUP_TO_CONFIRM etc.,, or else you can handle you own process here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs,&lt;/P&gt;&lt;P&gt;Venkat Ramanan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Venkat Ramanan Natarajan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 04:17:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-click-event/m-p/1429087#M205355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T04:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Push button click event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-click-event/m-p/1429088#M205356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;a) If u r talking about push button on selection-screen, &lt;/P&gt;&lt;P&gt;  1)SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN PUSHBUTTON 33(10) pushy USER-COMMAND DISPLAY.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  2) INITIALIZATION.&lt;/P&gt;&lt;P&gt;      PUSHY = 'DISPLAY'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  3) AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;     CASE sscrfields-ucomm.&lt;/P&gt;&lt;P&gt;      WHEN 'DISPLAY'.&lt;/P&gt;&lt;P&gt;       Display Message.&lt;/P&gt;&lt;P&gt;      ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) If u r talking about Module pool programming,&lt;/P&gt;&lt;P&gt;  1) U would have created a push button on the screen and function code attached to it say it is 'DISPLAY'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  2) In the PAI event&lt;/P&gt;&lt;P&gt;     MODULE user_command_xxx INPUT.&lt;/P&gt;&lt;P&gt;      CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;       WHEN 'DISPLAY'.&lt;/P&gt;&lt;P&gt;         Display error message.&lt;/P&gt;&lt;P&gt;      ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help u in some way. Thank u,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 05:11:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-click-event/m-p/1429088#M205356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T05:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Push button click event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-click-event/m-p/1429089#M205357</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;DAta wans type C.&lt;/P&gt;&lt;P&gt;In the PAI.&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;WHEN 'PUSH'.&lt;/P&gt;&lt;P&gt;Call the Function Module...&lt;/P&gt;&lt;P&gt;Call function 'POPUP_TO_CONFIRM_STEP'&lt;/P&gt;&lt;P&gt;               EXPORTING&lt;/P&gt;&lt;P&gt;              textline1      = 'Your Message'&lt;/P&gt;&lt;P&gt;                    titel          = 'FINAL'&lt;/P&gt;&lt;P&gt;                    cancel_display = ' '&lt;/P&gt;&lt;P&gt;               IMPORTING&lt;/P&gt;&lt;P&gt;                    answer         = wans.&lt;/P&gt;&lt;P&gt;          if wans = 'J'.&lt;/P&gt;&lt;P&gt;        PERFORM get_remarks.&lt;/P&gt;&lt;P&gt;          ELSE.&lt;/P&gt;&lt;P&gt;            LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it would solve your purpose...&lt;/P&gt;&lt;P&gt;  Kindly reward the points...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 05:31:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-click-event/m-p/1429089#M205357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T05:31:04Z</dc:date>
    </item>
  </channel>
</rss>

