<?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: Custom Function Module: Check if parameter specified by calling program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-function-module-check-if-parameter-specified-by-calling-program/m-p/6245347#M1382708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excellent, exactly what I need - I had not unearthed this is my search. Thanks alot - I appreciate your time and help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Damien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Sep 2009 09:55:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-28T09:55:50Z</dc:date>
    <item>
      <title>Custom Function Module: Check if parameter specified by calling program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-function-module-check-if-parameter-specified-by-calling-program/m-p/6245345#M1382706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm developing a custom function module that is going to be used by various different programs. For some programs the logic processed in the FM will be the same, but for some cases additional logic is required. I only want to run through this logic if it is required by the calling program. I 'm thinking i can determine whether or not logic should be processed based on whether or not an export parameter for the FM has been specified in the calling program. But I'm not sure what way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'Z_Function'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    pernr              = peras-pernr&lt;/P&gt;&lt;P&gt;    begda              = l_begda&lt;/P&gt;&lt;P&gt;    endda              = l_endda&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   param_a             = l_param_a&lt;/P&gt;&lt;P&gt;   param_b             = l_param_b&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   DATA_MISSING       = 1&lt;/P&gt;&lt;P&gt;   OTHERS             = 2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If both parameters above are specified then that's fine. However if only l_param_a or l_param_b is specified then i only want to process the logic to relevant to determing the value of that export parameter. The reason for this is that this function module will could run thousands of times (per employee basis) and i dont want to slow performance by retrieving data that is not required in some programs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So within the function module - is there a straightforward way i can check whether param_a or param_b has been speficied by the calling program ? Having to separate function modules is not an option for us. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot for your time&lt;/P&gt;&lt;P&gt;DK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2009 09:44:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-function-module-check-if-parameter-specified-by-calling-program/m-p/6245345#M1382706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-28T09:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Function Module: Check if parameter specified by calling program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-function-module-check-if-parameter-specified-by-calling-program/m-p/6245346#M1382707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out option IF ... IS SUPPLIED in ABAP help.&lt;/P&gt;&lt;P&gt; &lt;A href="http://help.sap.com/abapdocu_70/en/ABENLOGEXP_SUPPLIED.htm" target="test_blank"&gt;http://help.sap.com/abapdocu_70/en/ABENLOGEXP_SUPPLIED.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2009 09:46:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-function-module-check-if-parameter-specified-by-calling-program/m-p/6245346#M1382707</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-09-28T09:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Function Module: Check if parameter specified by calling program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-function-module-check-if-parameter-specified-by-calling-program/m-p/6245347#M1382708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excellent, exactly what I need - I had not unearthed this is my search. Thanks alot - I appreciate your time and help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Damien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2009 09:55:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-function-module-check-if-parameter-specified-by-calling-program/m-p/6245347#M1382708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-28T09:55:50Z</dc:date>
    </item>
  </channel>
</rss>

