<?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: Fumnction Module with Input Parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fumnction-module-with-input-parameter/m-p/3239255#M772988</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagulan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll solved the problem with two popups. The first ist your own popup. If the answer YES the call the popup POPUP_GET_VALUES. You can get typed values and you get the F4-Value Help if available for the field.&lt;/P&gt;&lt;P&gt;I.E. you filled the table parameter "FIELDS" in this FM with:&lt;/P&gt;&lt;P&gt;TABNAME = T001&lt;/P&gt;&lt;P&gt;FIELDNAME = BUKRS&lt;/P&gt;&lt;P&gt;You get a popup for value request of company code. If you press F4 you can select the possible company codes as value request. The field VALUE in the table parameter is for default values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Jan 2008 17:50:44 GMT</pubDate>
    <dc:creator>DirkAltmann</dc:creator>
    <dc:date>2008-01-13T17:50:44Z</dc:date>
    <item>
      <title>Fumnction Module with Input Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fumnction-module-with-input-parameter/m-p/3239252#M772985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;               I have a Popup window in which a message displays with a value and &lt;STRONG&gt;Yes or No Option&lt;/STRONG&gt;. if No is clicked  i have to Display a list of data, if its Yes is clicked  i have to &lt;STRONG&gt;get a value as a Parameter in pop up window (i,e User should enter the value )&lt;/STRONG&gt;. Is there any FM to get this. This is an ALV Report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YES       NO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if YES&lt;/P&gt;&lt;P&gt;    ENTER THE VALUE : ______________&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;   Display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be Rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagulan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jan 2008 08:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fumnction-module-with-input-parameter/m-p/3239252#M772985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-13T08:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Fumnction Module with Input Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fumnction-module-with-input-parameter/m-p/3239253#M772986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can make one screen in se51 and call it in ur prog. using&lt;/P&gt;&lt;P&gt;call screen scn no. starting at 10 10 ending at 20 20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On this screen you can declare two push buttons.&lt;/P&gt;&lt;P&gt;after capturing sy-ucomm, u can do wat ever u want to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jan 2008 10:53:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fumnction-module-with-input-parameter/m-p/3239253#M772986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-13T10:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Fumnction Module with Input Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fumnction-module-with-input-parameter/m-p/3239254#M772987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagulan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes there is a function module by name  &lt;STRONG&gt;'C14A_POPUP_SAVE_WITH_CANCEL'&lt;/STRONG&gt; which displays a pop up as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I had a similar requirement in my project.This is the code that I used.You can refer to it and write your own code.&lt;/STRONG&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 transaction will be exited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the function module,&lt;STRONG&gt;answer&lt;/STRONG&gt; holds the user command.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;e_answer needs to be created by user.The statement for it is :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA :e_answer type c.&lt;/STRONG&gt;   &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In the function module as you can see, J indicates Yes and N indicates No.J and N are predefined for Yes and No respectively.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PAI module of that Screen,you need to 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 transaction&lt;/STRONG&gt;****&lt;/P&gt;&lt;P&gt;LEAVE TRANSACTION.&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;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert for any querries.&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;Kashyap Ivaturi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jan 2008 17:14:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fumnction-module-with-input-parameter/m-p/3239254#M772987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-13T17:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Fumnction Module with Input Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fumnction-module-with-input-parameter/m-p/3239255#M772988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagulan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll solved the problem with two popups. The first ist your own popup. If the answer YES the call the popup POPUP_GET_VALUES. You can get typed values and you get the F4-Value Help if available for the field.&lt;/P&gt;&lt;P&gt;I.E. you filled the table parameter "FIELDS" in this FM with:&lt;/P&gt;&lt;P&gt;TABNAME = T001&lt;/P&gt;&lt;P&gt;FIELDNAME = BUKRS&lt;/P&gt;&lt;P&gt;You get a popup for value request of company code. If you press F4 you can select the possible company codes as value request. The field VALUE in the table parameter is for default values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jan 2008 17:50:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fumnction-module-with-input-parameter/m-p/3239255#M772988</guid>
      <dc:creator>DirkAltmann</dc:creator>
      <dc:date>2008-01-13T17:50:44Z</dc:date>
    </item>
  </channel>
</rss>

