<?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: how to test a function module? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-test-a-function-module/m-p/1673320#M297347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;by executing the function module and giving the required fields as input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Nov 2006 08:50:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-06T08:50:51Z</dc:date>
    <item>
      <title>how to test a function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-test-a-function-module/m-p/1673319#M297346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to test a function module?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 08:46:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-test-a-function-module/m-p/1673319#M297346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T08:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to test a function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-test-a-function-module/m-p/1673320#M297347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;by executing the function module and giving the required fields as input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 08:50:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-test-a-function-module/m-p/1673320#M297347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T08:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to test a function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-test-a-function-module/m-p/1673321#M297348</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;Go to SE37&lt;/P&gt;&lt;P&gt;enter FM name.&lt;/P&gt;&lt;P&gt;pass input parameters and table values where required and press F8.&lt;/P&gt;&lt;P&gt;this will show result in output parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 08:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-test-a-function-module/m-p/1673321#M297348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T08:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to test a function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-test-a-function-module/m-p/1673322#M297349</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;go to SE37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;click DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give proper values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test it.&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;Anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hlped pls mark points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 08:51:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-test-a-function-module/m-p/1673322#M297349</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-06T08:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to test a function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-test-a-function-module/m-p/1673323#M297350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SE37, Press F8 and give the required inputs...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 08:51:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-test-a-function-module/m-p/1673323#M297350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T08:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to test a function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-test-a-function-module/m-p/1673324#M297351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/801f36454211d189710000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/801f36454211d189710000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 08:54:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-test-a-function-module/m-p/1673324#M297351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T08:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to test a function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-test-a-function-module/m-p/1673325#M297352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Click on the debugger(F8)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 08:55:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-test-a-function-module/m-p/1673325#M297352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T08:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to test a function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-test-a-function-module/m-p/1673326#M297353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should use the test environment in the Function Builder to test new function modules before releasing them for general use. You can also use the test environment to examine functions written by other developers before calling these modules from within your own programs. The library's testing options let you determine if a function performs as it should and shows you if the module returns expected results. To run a test:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose Test from the Function Builder initial screen. &lt;/P&gt;&lt;P&gt;Specify the data you want to transfer from your program to the function module. &lt;/P&gt;&lt;P&gt;Choose Execute&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Function Builder contains more test options than simply running a function module. You can also run a test in the debugger or create a runtime analysis performance file for a function. To investigate a function module in debugging mode:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose Test from the Function Builder initial screen. &lt;/P&gt;&lt;P&gt;Specify the data you want to transfer from your program to the function module. &lt;/P&gt;&lt;P&gt;Select Debugging.&lt;/P&gt;&lt;P&gt;The system executes the function module in debugging mode. You can step through the function's code and use all the options offered within the Debugger &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a lok at below link.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/801f36454211d189710000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/801f36454211d189710000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 08:59:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-test-a-function-module/m-p/1673326#M297353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T08:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to test a function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-test-a-function-module/m-p/1673327#M297354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there,&lt;/P&gt;&lt;P&gt;ur query is quite old and i think some1 may hav answers it but still i feel this might help you if ur query is still  unanswered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its a total description of  how to create a fuction module and executre the same&lt;/P&gt;&lt;P&gt;its a simple example and might help you to understand  what and how the things are happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see this might be of some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to create function module you have to create a a function group.&lt;/P&gt;&lt;P&gt;and then you create function module.&lt;/P&gt;&lt;P&gt;in function module you have to give IMPORT , EXPORT PARAMETER and EXCEPTION.&lt;/P&gt;&lt;P&gt;and also the SOURCE CODE without which the function module will be sytaxtically correct but you will get processing error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the procedure of creating Function Group and Function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR Group&lt;/P&gt;&lt;P&gt;goto SE37 &lt;/P&gt;&lt;P&gt;move to GOTO and the to function groups and create .&lt;/P&gt;&lt;P&gt;just fill the fields poped up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR Module&lt;/P&gt;&lt;P&gt;now in the se37 screen put the name of the function module you want to create and press create .&lt;/P&gt;&lt;P&gt;there will be a pop asking for function group name now here put you function group name which you have created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now after pressing save you will have a screen in which you have to enter the import, export,exception and the source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in import parameter you can put this(for example)&lt;/P&gt;&lt;P&gt;parameter type associate type&lt;/P&gt;&lt;P&gt;num1 type i&lt;/P&gt;&lt;P&gt;num2 type i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;export parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter type associate type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;res type i &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exception&lt;/P&gt;&lt;P&gt;parameter type associate type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not a valid entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;source code&lt;/P&gt;&lt;P&gt;res = num1+num2.&lt;/P&gt;&lt;P&gt;if num1 eq 0&lt;/P&gt;&lt;P&gt;raise not a valid entry.&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save activate .&lt;/P&gt;&lt;P&gt;and exicute(press8)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;award pionts only if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anuj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 07:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-test-a-function-module/m-p/1673327#M297354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T07:06:59Z</dc:date>
    </item>
  </channel>
</rss>

