<?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: Function Module for a pop up window in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265732#M780429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try this FM&lt;/P&gt;&lt;P&gt;POPUP_INFORMATION_WITH_SET_GET.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plzz reward if it helps.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jan 2008 10:15:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-14T10:15:12Z</dc:date>
    <item>
      <title>Function Module for a pop up window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265731#M780428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to display a pop up with yes,no and cancel options when I click on save button in my screen.&lt;/P&gt;&lt;P&gt;Is there any function module for it.&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;It is urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:12:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265731#M780428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T10:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for a pop up window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265732#M780429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try this FM&lt;/P&gt;&lt;P&gt;POPUP_INFORMATION_WITH_SET_GET.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plzz reward if it helps.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:15:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265732#M780429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T10:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for a pop up window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265733#M780430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this Function Module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C14A_POPUP_SAVE_WITH_CANCEL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:15:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265733#M780430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T10:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for a pop up window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265734#M780431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the FM "POPUP_TO_CONFIRM".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ Ranganath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:15:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265734#M780431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T10:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for a pop up window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265735#M780432</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 following FM:&lt;/P&gt;&lt;P&gt;Popup Related Function Modules: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_TO_DISPLAY_TEXT &amp;#150; display 2 line text. &lt;/P&gt;&lt;P&gt;POPUP_TO_CONFIRM_STEP &lt;/P&gt;&lt;P&gt;POPUP_TO_CONFIRM_WITH_VALUE (with Back and Exit) &lt;/P&gt;&lt;P&gt;POPUP_TO_CONFIRM_LOSS_OF_DATA (with Cancel). &lt;/P&gt;&lt;P&gt;POPUP_TO_CONFIRM_WITH_MESSAGE &lt;/P&gt;&lt;P&gt;POPUP_TO_DECIDE &lt;/P&gt;&lt;P&gt;POPUP_TO_DECIDE_WITH_MESSAGE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:16:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265735#M780432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T10:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for a pop up window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265736#M780433</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;try these function modules :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LC_POPUP_TO_CONFIRM_STEP&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LC_POPUP_TO_CONFIRM_STEP_JNA&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Rgds,&lt;/P&gt;&lt;P&gt;S.Barani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:18:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265736#M780433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T10:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for a pop up window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265737#M780434</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 following site. We will certanly find what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://www.sapdev.co.uk/fmodules/fmssap.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:18:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265737#M780434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T10:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for a pop up window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265738#M780435</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;Thanks for the quick replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this Function Module,&lt;/P&gt;&lt;P&gt;C14A_POPUP_SAVE_WITH_CANCEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me how to write the code for my requirements using this Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is :&lt;/P&gt;&lt;P&gt;If is click on Yes ,the data needs to be updated in the ZTable.&lt;/P&gt;&lt;P&gt;If I click on No, the the program should exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:28:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265738#M780435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T10:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for a pop up window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265739#M780436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this code a function module is called to display the popup.The popup contains three options-Yes,No and Cancel.When selecting Yes,The details present in the input fields will be saved in the Ztables.If NO is selected in the popup,then the program will be exited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the function module,answer holds the user command.&lt;/P&gt;&lt;P&gt;e_answer needs to be created by user.The statement for it is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :e_answer type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the function module as you can see, J indicates Yes and N indicates No.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PAI module of that Screen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;when SAVE.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'C14A_POPUP_SAVE_WITH_CANCEL'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;e_answer = answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF answer = 'N'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;Leaving the program&lt;/STRONG&gt;****&lt;/P&gt;&lt;P&gt;LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF answer = 'J'.&lt;/P&gt;&lt;P&gt;***The right side of the equation is the name of the input field in the screen.The left hand side of the ****&lt;STRONG&gt;equation is the field name in the ZTable ztm09_ekpo.&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ztm09_ekpo-ebeln = ztm09_ekko-ebeln. "ztm09_ekko is the name of the Z Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY ztm09_ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kaushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:34:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265739#M780436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T10:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for a pop up window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265740#M780437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use this FM &lt;STRONG&gt;POPUP_TO_CONFIRM_STEP&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This will give you popup with "Yse", "No" and "Cancel" button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can call this FM like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-ucomm = 'SAVE'.&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;      DEFAULTOPTION        = 'Y'&lt;/P&gt;&lt;P&gt;       textline1            = 'DATA WILL BE SAVED!'&lt;/P&gt;&lt;P&gt;       textline2            = 'CONTINUE?'&lt;/P&gt;&lt;P&gt;       titel                = 'SAVE CONFIRMATION POPUP'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;         answer               = lv_answer&lt;/P&gt;&lt;P&gt;                    .&lt;/P&gt;&lt;P&gt;  IF lv_answer = 'J' OR lv_answer = 'Y'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Your Save logic     &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   ELSEIF lv_answer = 'N'.&lt;/P&gt;&lt;P&gt;*Your logic when the user doesn't want to save&lt;/P&gt;&lt;P&gt; ELSEIF lv_answer = 'A'.&lt;/P&gt;&lt;P&gt;*Your logic when the user clicks cancel&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use the additional parameters &lt;/P&gt;&lt;P&gt;START_COLUMN&lt;/P&gt;&lt;P&gt;START_ROW&lt;/P&gt;&lt;P&gt;CANCEL_DISPLAY&lt;/P&gt;&lt;P&gt;to good use in positioning the popup and to hide the "Cancel" button in the popup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Anupam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 11:06:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265740#M780437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T11:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for a pop up window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265741#M780438</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;Thanks for your replies.&lt;/P&gt;&lt;P&gt;The code putforth by kaushik worked perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 11:07:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-a-pop-up-window/m-p/3265741#M780438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T11:07:32Z</dc:date>
    </item>
  </channel>
</rss>

