<?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 Testing custom function modules in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/testing-custom-function-modules/m-p/4986956#M1161770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  As I am new to ABAP testing , I need help in knowing how to test custom function modules .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is how I am trying :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Step : 1 -- &amp;gt;  Open Tcode &lt;STRONG&gt;SE37&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  Step : 2 --&amp;gt;  Display the function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Step : 3 --&amp;gt; Do its syntax check.....activate it..... execute it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   What if no test data is available???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to execute directly where it gives a return parameter for some function modules saying No Entry \ No data available for this ID etc.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am in a confusion whether its correct or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want some ideas regarding this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                             - Swapna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2009 12:47:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-05T12:47:13Z</dc:date>
    <item>
      <title>Testing custom function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/testing-custom-function-modules/m-p/4986956#M1161770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  As I am new to ABAP testing , I need help in knowing how to test custom function modules .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is how I am trying :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Step : 1 -- &amp;gt;  Open Tcode &lt;STRONG&gt;SE37&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  Step : 2 --&amp;gt;  Display the function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Step : 3 --&amp;gt; Do its syntax check.....activate it..... execute it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   What if no test data is available???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to execute directly where it gives a return parameter for some function modules saying No Entry \ No data available for this ID etc.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am in a confusion whether its correct or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want some ideas regarding this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                             - Swapna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 12:47:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/testing-custom-function-modules/m-p/4986956#M1161770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T12:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Testing custom function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/testing-custom-function-modules/m-p/4986957#M1161771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;check the execptions if you mentioned any. if there is a syntax error then it will not allow you to active.&lt;/P&gt;&lt;P&gt;and to test you have to take the test data. it would be useful to you if you post your code.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;anupama.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 12:50:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/testing-custom-function-modules/m-p/4986957#M1161771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T12:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Testing custom function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/testing-custom-function-modules/m-p/4986958#M1161772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swapna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First know the functionality of the FM.&lt;/P&gt;&lt;P&gt;Then , check wheather suitable data is available or not and try to execute the steps, which the FM is meant to do by yourself.&lt;/P&gt;&lt;P&gt;if the process gives some output, then chek the same input to test ur FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or else create test data if possible or ask ur functional peer to do it for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if your FM has any exception condition then check for them and see proper message is triggered or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagards, &lt;/P&gt;&lt;P&gt;Anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 12:53:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/testing-custom-function-modules/m-p/4986958#M1161772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T12:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Testing custom function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/testing-custom-function-modules/m-p/4986959#M1161773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anupama...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thank u a ton for the quick reply...but I have another doubt..if I execute without giving any selection parameter data...it says &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;&lt;EM&gt;No data stored for in the selected period&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                -Swapna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 12:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/testing-custom-function-modules/m-p/4986959#M1161773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T12:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Testing custom function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/testing-custom-function-modules/m-p/4986960#M1161774</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;Please check this link will hep you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also pass the required parameter what you have asked for. then goto the debug mode and then find the data which has been there in the internal table or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 12:58:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/testing-custom-function-modules/m-p/4986960#M1161774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T12:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Testing custom function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/testing-custom-function-modules/m-p/4986961#M1161775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi Anupama...&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;   Thank u a ton for the quick reply...but I have another doubt..if I execute without giving any selection parameter data...it says &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;   &lt;STRONG&gt;&lt;EM&gt;No data stored for in the selected period&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;                                 -Swapna&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Ok, so that is what it does if you don't pass it any selection parameter data - I doubt very much if that is how it will be used in Production.  Any function module is just a bit of code that does what it has been programmed to do; to test it you just need to find out what it is supposed to do from whoever has asked for it to be built and then check that it does it.  If there is no test data set up, then you'll need to find out from your functional consultant how to set some up or get them to set it up for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 13:07:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/testing-custom-function-modules/m-p/4986961#M1161775</guid>
      <dc:creator>christine_evans</dc:creator>
      <dc:date>2009-01-05T13:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Testing custom function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/testing-custom-function-modules/m-p/4986962#M1161776</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;     How did you given the import and export parameters, if you checked as mandatory you need to give the corresponding values in the selection criteria. and once you given the values. u can save the test values as normal variants. and when you execute you can check this value and execute..&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;Praveen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 13:09:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/testing-custom-function-modules/m-p/4986962#M1161776</guid>
      <dc:creator>praveen_kumar132</dc:creator>
      <dc:date>2009-01-05T13:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Testing custom function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/testing-custom-function-modules/m-p/4986963#M1161777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I thanku for all ur responses. I will definitely test the Fms as u all suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                                             -Swapna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 03:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/testing-custom-function-modules/m-p/4986963#M1161777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T03:53:55Z</dc:date>
    </item>
  </channel>
</rss>

