<?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 method call: only pass supplied parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-call-only-pass-supplied-parameters/m-p/9122427#M1707766</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dear colleagues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to call a method within my method, but only pass the parameters that are supplied.&lt;/P&gt;&lt;P&gt;E.g. method1 has 3 optional parameters and method2 has the same 3 optional parameters.&lt;/P&gt;&lt;P&gt;From within method1, I want to call method2, but only passing the parameters that are supplied (because in method2 I want to use the IF &amp;lt;parameter&amp;gt; IS SUPPLIED. statement).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently solving this by using the PARAMETERS-TABLE:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;IF imv_param1 IS SUPPLIED.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; lw_param-name = 'IMV_PARAM1'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; lw_param-kind = cl_abap_objectdescr=&amp;gt;exporting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; GET REFERENCE OF imv_param1 INTO lw_param-value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; INSERT lw_param INTO TABLE li_params.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;IF imv_param2 IS SUPPLIED.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; lw_param-name = 'IMV_PARAM2'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; lw_param-kind = cl_abap_objectdescr=&amp;gt;exporting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; GET REFERENCE OF imv_param2 INTO lw_param-value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; INSERT lw_param INTO TABLE li_params.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;IF imv_param3 IS SUPPLIED.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; lw_param-name = 'IMV_PARAM3'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; lw_param-kind = cl_abap_objectdescr=&amp;gt;exporting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; GET REFERENCE OF imv_param3 INTO lw_param-value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; INSERT lw_param INTO TABLE li_params.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CALL METHOD ('my_object-&amp;gt;method2')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; PARAMETER-TABLE li_params.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I was hoping that there is maybe an easier solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Dec 2012 15:19:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-12-06T15:19:36Z</dc:date>
    <item>
      <title>method call: only pass supplied parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-call-only-pass-supplied-parameters/m-p/9122427#M1707766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dear colleagues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to call a method within my method, but only pass the parameters that are supplied.&lt;/P&gt;&lt;P&gt;E.g. method1 has 3 optional parameters and method2 has the same 3 optional parameters.&lt;/P&gt;&lt;P&gt;From within method1, I want to call method2, but only passing the parameters that are supplied (because in method2 I want to use the IF &amp;lt;parameter&amp;gt; IS SUPPLIED. statement).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently solving this by using the PARAMETERS-TABLE:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;IF imv_param1 IS SUPPLIED.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; lw_param-name = 'IMV_PARAM1'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; lw_param-kind = cl_abap_objectdescr=&amp;gt;exporting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; GET REFERENCE OF imv_param1 INTO lw_param-value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; INSERT lw_param INTO TABLE li_params.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;IF imv_param2 IS SUPPLIED.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; lw_param-name = 'IMV_PARAM2'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; lw_param-kind = cl_abap_objectdescr=&amp;gt;exporting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; GET REFERENCE OF imv_param2 INTO lw_param-value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; INSERT lw_param INTO TABLE li_params.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;IF imv_param3 IS SUPPLIED.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; lw_param-name = 'IMV_PARAM3'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; lw_param-kind = cl_abap_objectdescr=&amp;gt;exporting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; GET REFERENCE OF imv_param3 INTO lw_param-value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; INSERT lw_param INTO TABLE li_params.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CALL METHOD ('my_object-&amp;gt;method2')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; PARAMETER-TABLE li_params.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I was hoping that there is maybe an easier solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 15:19:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-call-only-pass-supplied-parameters/m-p/9122427#M1707766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-06T15:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: method call: only pass supplied parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-call-only-pass-supplied-parameters/m-p/9122428#M1707767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bjorn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you already have an elegant solution. A less elegant solution that uses fewer lines of code could be to use &lt;STRONG&gt;IS NOT INITIAL&lt;/STRONG&gt; in method2 instead of &lt;STRONG&gt;IS SUPPLIED&lt;/STRONG&gt;. Then you could pass all parameters indiscriminately from method1 to method2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Amy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 20:02:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-call-only-pass-supplied-parameters/m-p/9122428#M1707767</guid>
      <dc:creator>amy_king</dc:creator>
      <dc:date>2012-12-06T20:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: method call: only pass supplied parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-call-only-pass-supplied-parameters/m-p/9122429#M1707768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Amy, I also thought of doing that, but I also want to use it for exporting parameters. These are most of the time initial.&lt;/P&gt;&lt;P&gt;The main problem is that I'm using dynamic tables, so I need to know if the table was supplied before I can add a line to it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;IF exi_table IS SUPPLIED.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; APPEND INITIAL LINE TO exi_table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ASSIGNING &amp;lt;lw_table_line&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;*Fill in the data for &amp;lt;lw_table_line&amp;gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 06:42:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-call-only-pass-supplied-parameters/m-p/9122429#M1707768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-07T06:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: method call: only pass supplied parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-call-only-pass-supplied-parameters/m-p/9122430#M1707769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bjorn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest to import the reference of the itab. E. g. you could have a parameter im_my_itab_ref type ref to table and check if it is bound.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/164339" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 08:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-call-only-pass-supplied-parameters/m-p/9122430#M1707769</guid>
      <dc:creator>wol</dc:creator>
      <dc:date>2012-12-10T08:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: method call: only pass supplied parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-call-only-pass-supplied-parameters/m-p/9122431#M1707770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bjorn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with &lt;A __default_attr="303883" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;SPAN&gt; that your's is an elegant solution. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1079/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But i'm a lil' bit confused &lt;SPAN __jive_emoticon_name="confused" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1079/images/emoticons/confused.gif"&gt;&lt;/SPAN&gt;, for method1 the params are importing &amp;amp; for method2 they are exporting - please correct me if i am wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Suhas&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 13:04:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-call-only-pass-supplied-parameters/m-p/9122431#M1707770</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2012-12-10T13:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: method call: only pass supplied parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-call-only-pass-supplied-parameters/m-p/9122432#M1707771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I'm sorry, my mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's because I have method1 and method2, where the parameters are importing and I have method3 and method4 where the parameters are exporting.&lt;/P&gt;&lt;P&gt;In method2, I can do IF imv_param1 IS NOT INITIAL....&lt;/P&gt;&lt;P&gt;But in method4, I can't use IF exv_param1 IS NOT INITIAL, because in my program, if I provide the parameters, they will always be empty. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 13:35:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-call-only-pass-supplied-parameters/m-p/9122432#M1707771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-10T13:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: method call: only pass supplied parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-call-only-pass-supplied-parameters/m-p/9122433#M1707772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;But in method4, I can't use IF exv_param1 IS NOT INITIAL, because in my program, if I provide the parameters, they will always be empty.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;That's the reason i was confused &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1079/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; So your requirement is that if the IMPORTING param tables (of methods 1 &amp;amp; 2) are not SUPPLIED, you don't want to pass them as the actual param to the EXPORTING tables of methods 3 &amp;amp; 4 - hope i understand your requirement correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that these methods do not belong to the same class. If possible you can post relevant portion of your code for better analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 14:35:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-call-only-pass-supplied-parameters/m-p/9122433#M1707772</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2012-12-10T14:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: method call: only pass supplied parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-call-only-pass-supplied-parameters/m-p/9122434#M1707773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, actually method1 calls method2 (both have IMPORTING parameters) and method3 calls method4 (both have EXPORTING parameters) and indeed method2 is in a different class than method1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's some more info:&lt;/P&gt;&lt;P&gt;- Class1 is a public class. Class2 is a protected class, with class1 defined as friend. &lt;/P&gt;&lt;P&gt;- Suppose Class2 has 3 attributes AT_IOD_TABLE1, AT_IOD_TABLE2 and AT_IOD_TABLE3, which are private and TYPE REF TO DATA (with an internal table with a dynamic structure behind each of them)&lt;/P&gt;&lt;P&gt;- In class2, there is a protected method ME_IO_GET_DATA with tree exporting parameters EXI_DATA1, EXI_DATA2, EXI_DATA3 of type STANDARD TABLE and an importing parameter IMV_ID. EXI_DATA1 should contain data from AT_IOD_TABLE1, EXI_DATA2 should contain data from AT_IOD_TABLE2 and EXI_DATA3 should contain data from AT_IOD_TABLE3, but only if the parameters are supplied. Here is where I do:&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;IF exi_data1 IS SUPPLIED.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; APPEND INITIAL LINE TO exi_data1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ASSIGNING &amp;lt;lw_table_line&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;*Fill in the data for &amp;lt;lw_table_line&amp;gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;*reading lines from AT_IOD_TABLE1 based on IMV_ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;- In class1, there is a public method ME_IU_GET_DATA, with the same three exporting parameters (+ some other exporting parameters that are irrelevant here) and also an importing parameter IMV_ID. Here I want to call method ME_IO_GET_DATA of class2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 16:05:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-call-only-pass-supplied-parameters/m-p/9122434#M1707773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-10T16:05:03Z</dc:date>
    </item>
  </channel>
</rss>

