<?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: passing values to function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-values-to-function-module/m-p/2058802#M425243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;When u create the function module , we generally provide the import and export parameters.... &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Import parameters :&amp;lt;/b&amp;gt; Which we pass to the function module ..&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Export parameters:&amp;lt;/b&amp;gt; Which we receive from the function module...&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Tables parameters:&amp;lt;/b&amp;gt; Tables to pass and to receive to and from the function module...&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Changing Parameters:&amp;lt;/b&amp;gt; Which we pass to the function module and change these values in the function module and receive those from function module...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So define the fields&lt;/P&gt;&lt;P&gt;VBELN, POSNR, MATNR, ARKTX, KWMENG, VRKME, NETWR ,WAERK in the import parameters with LIKE declaration and corresponding type..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;Field  ||  Type  || Associated Type || Optional || Default ||&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;vbeln  || like  ||  vbak-vbeln ||&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Optional : &amp;lt;/b&amp;gt;If u check this then this field is not mandatory to receive the value..&lt;/P&gt;&lt;P&gt;If uncheck then we have to pass value to this field from the program !! otherwise it gives an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the &amp;lt;b&amp;gt;&amp;lt;u&amp;gt;source code&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt; tab u can write the list output related code with these imported and exported parameters !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To call the function module we use&amp;lt;b&amp;gt; PATTERN &amp;lt;/b&amp;gt;which is present on the application tool bar of the SE38-Editor screen..&lt;/P&gt;&lt;P&gt;Click on this .. u will get a popup ..IN this check the &amp;lt;b&amp;gt;CALL FUNCTION&amp;lt;/b&amp;gt; and in the input field of this,, give the function module name... and press enter ...Here u can give values for these imported fields... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if it helps u...&lt;/P&gt;&lt;P&gt;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Mar 2007 11:50:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-18T11:50:17Z</dc:date>
    <item>
      <title>passing values to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-values-to-function-module/m-p/2058800#M425241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everybody!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     I have defined a function group ZSUB_FGROUP1 and within that, I have defined a function module ZSUB_FMOD1. I wish to pass one set of values of following types:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBELN, POSNR, MATNR, ARKTX, KWMENG, VRKME, NETWR   from VBAP&lt;/P&gt;&lt;P&gt;and  WAERK from VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from my main report ZSUB_REP1 to ZSUB_FMOD1, which will then print those values in the form of a list. When I processed the list from within the main report, I used regular methods like top-of-page and all. But, I am not sure how to handle things from within the function module. Please help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Mar 2007 11:33:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-values-to-function-module/m-p/2058800#M425241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-18T11:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: passing values to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-values-to-function-module/m-p/2058801#M425242</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;These values will be your Importing Parameters of the function Module and inside the Function Module write a code for the list display exactly the same as you have written in a report using these values.&lt;/P&gt;&lt;P&gt;First pass all the values to an internal table.&lt;/P&gt;&lt;P&gt;Create Field catalog.&lt;/P&gt;&lt;P&gt;Create Layout.&lt;/P&gt;&lt;P&gt;Create Header.&lt;/P&gt;&lt;P&gt;Create events(if require).&lt;/P&gt;&lt;P&gt;Call FM REUSE_ALV_LIST_DISPLAY.&lt;/P&gt;&lt;P&gt;Catch exceptions and return it as exporting parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Mar 2007 11:47:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-values-to-function-module/m-p/2058801#M425242</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-03-18T11:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: passing values to function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-values-to-function-module/m-p/2058802#M425243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;When u create the function module , we generally provide the import and export parameters.... &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Import parameters :&amp;lt;/b&amp;gt; Which we pass to the function module ..&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Export parameters:&amp;lt;/b&amp;gt; Which we receive from the function module...&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Tables parameters:&amp;lt;/b&amp;gt; Tables to pass and to receive to and from the function module...&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Changing Parameters:&amp;lt;/b&amp;gt; Which we pass to the function module and change these values in the function module and receive those from function module...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So define the fields&lt;/P&gt;&lt;P&gt;VBELN, POSNR, MATNR, ARKTX, KWMENG, VRKME, NETWR ,WAERK in the import parameters with LIKE declaration and corresponding type..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;Field  ||  Type  || Associated Type || Optional || Default ||&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;vbeln  || like  ||  vbak-vbeln ||&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Optional : &amp;lt;/b&amp;gt;If u check this then this field is not mandatory to receive the value..&lt;/P&gt;&lt;P&gt;If uncheck then we have to pass value to this field from the program !! otherwise it gives an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the &amp;lt;b&amp;gt;&amp;lt;u&amp;gt;source code&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt; tab u can write the list output related code with these imported and exported parameters !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To call the function module we use&amp;lt;b&amp;gt; PATTERN &amp;lt;/b&amp;gt;which is present on the application tool bar of the SE38-Editor screen..&lt;/P&gt;&lt;P&gt;Click on this .. u will get a popup ..IN this check the &amp;lt;b&amp;gt;CALL FUNCTION&amp;lt;/b&amp;gt; and in the input field of this,, give the function module name... and press enter ...Here u can give values for these imported fields... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if it helps u...&lt;/P&gt;&lt;P&gt;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Mar 2007 11:50:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-values-to-function-module/m-p/2058802#M425243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-18T11:50:17Z</dc:date>
    </item>
  </channel>
</rss>

