<?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: Checking optional tables parameter in function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-optional-tables-parameter-in-function/m-p/998320#M75763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angelika,&lt;/P&gt;&lt;P&gt;You can also use the code as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ITAB[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;**DO SOMETHING&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;**DO SOMETHING&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Aug 2005 10:50:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-17T10:50:04Z</dc:date>
    <item>
      <title>Checking optional tables parameter in function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-optional-tables-parameter-in-function/m-p/998315#M75758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;is there any possibility to check whether an optional tables parameter has actually been passed to a function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;function xxx&lt;/P&gt;&lt;P&gt;  TABLES  tab1 OPTIONAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do I know within the function code if the parameter tab1 has been specified when calling the function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for help.&lt;/P&gt;&lt;P&gt;AP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Angelika Pokorny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Angelika Pokorny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2005 10:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-optional-tables-parameter-in-function/m-p/998315#M75758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-17T10:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Checking optional tables parameter in function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-optional-tables-parameter-in-function/m-p/998316#M75759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome to SDN,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes you can do it, IS SUPPLIED is the key word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if tab1 &amp;lt;b&amp;gt;IS SUPPLIED&amp;lt;/b&amp;gt;. &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;do something&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;endif .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;docuementation from ABAP key word documenataion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;log_exp - IS SUPPLIED &lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;... p IS [NOT] SUPPLIED ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The logical expression checks whether a formal parameter p of a procedure is filled or requested. The expression is true if at the call an actual parameter was assigned to the formal parameter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This logical expression is possible only in function modules and methods. For p, you can specify all optional formal parameters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With addition NOT, the expression is true if at the call no actual parameter was assigned to the formal parameter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;The logical expression with IS SUPPLIED cannot be used in function modules that are called with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION ... IN UPDATE TASK ... &lt;/P&gt;&lt;P&gt;CALL FUNCTION ... STARTING NEW TASK ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For function modules called with Remote Function Call, the application servers of calling and called program must have at least release 4.6. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your question is answered, kindly mark the thread as answered and reward the points for helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2005 10:15:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-optional-tables-parameter-in-function/m-p/998316#M75759</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-08-17T10:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Checking optional tables parameter in function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-optional-tables-parameter-in-function/m-p/998317#M75760</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;When you pass an internal table to your FM and if it has some entries in that table then inside FM code you can check for if that parameter is initial. If it is initial then it means nothing is passed to optional table parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2005 10:18:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-optional-tables-parameter-in-function/m-p/998317#M75760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-17T10:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Checking optional tables parameter in function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-optional-tables-parameter-in-function/m-p/998318#M75761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i guess the poster has asked whether a particular optional parameter is passed or not &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the parameter holds a value or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2005 10:31:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-optional-tables-parameter-in-function/m-p/998318#M75761</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-08-17T10:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Checking optional tables parameter in function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-optional-tables-parameter-in-function/m-p/998319#M75762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you're right&lt;/P&gt;&lt;P&gt;thanks for your hint&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just trying the "is supplied" keyword.&lt;/P&gt;&lt;P&gt;but it looks good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Angelika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2005 10:36:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-optional-tables-parameter-in-function/m-p/998319#M75762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-17T10:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Checking optional tables parameter in function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-optional-tables-parameter-in-function/m-p/998320#M75763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angelika,&lt;/P&gt;&lt;P&gt;You can also use the code as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ITAB[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;**DO SOMETHING&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;**DO SOMETHING&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2005 10:50:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-optional-tables-parameter-in-function/m-p/998320#M75763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-17T10:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Checking optional tables parameter in function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-optional-tables-parameter-in-function/m-p/998321#M75764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;suddenly the post is not marked as question any more. did you remove the check box mark as question. set it back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your intention is to mark it as answered, click on the radio button solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Durairaj Athavan Raja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2005 11:28:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-optional-tables-parameter-in-function/m-p/998321#M75764</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-08-17T11:28:29Z</dc:date>
    </item>
  </channel>
</rss>

