<?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: call function in update task empty variables error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521474#M1854124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works, I tested it as well and this is the way that the code is running right now, BUT do you agree that it shouldn't have to be that way? when you call a bapi, several functions 'in update task' are enqueued and they don't have the same problem!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Aug 2014 14:11:09 GMT</pubDate>
    <dc:creator>adrianos_campanhola</dc:creator>
    <dc:date>2014-08-19T14:11:09Z</dc:date>
    <item>
      <title>call function in update task empty variables error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521471#M1854121</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;I'm experiencing a weird error while using the addition "In update task".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Scenario is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the bapi_goodsmvt_create -&amp;gt; if there are no errors, fill some values and call my function and then commit everything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, when the function runs in update task, all import parameters are empty!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, this only happens in the following code structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CALL&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;METHOD&lt;/SPAN&gt; run_migo&lt;SPAN style="color: #800097;"&gt;(&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;IMPORTING&lt;/SPAN&gt; bapireturn&lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;t_bapireturn&lt;SPAN style="color: #800097;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #0000ff;"&gt;IF&lt;/SPAN&gt; t_bapireturn &lt;SPAN style="color: #0000ff;"&gt;IS&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INITIAL&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;CALL&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;METHOD&lt;/SPAN&gt; save_custom_tables&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt; &lt;EM style="color: #808080;"&gt;"this runs my function &lt;SPAN style="color: #4da616;"&gt;'IN UPDATE TASK'&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;CALL&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;FUNCTION&lt;/SPAN&gt; &lt;SPAN style="color: #4da616;"&gt;'BAPI_TRANSACTION_COMMIT'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wait&lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #4da616;"&gt;'X'&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #0000ff;"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I commit inside the method SAVE_CUSTOM_TABLES, the data is passed normally to the function, if I commit like the code above, everything is empty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 20:12:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521471#M1854121</guid>
      <dc:creator>adrianos_campanhola</dc:creator>
      <dc:date>2014-08-13T20:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: call function in update task empty variables error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521472#M1854122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use commit-work after "IN UPDATE TASK". I had the same problem while I made a test using FM, and it worked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 13:38:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521472#M1854122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-19T13:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: call function in update task empty variables error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521473#M1854123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you should add the data to be updated explicitely as parameters to the method save_custom_tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 13:42:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521473#M1854123</guid>
      <dc:creator>PeterJonker</dc:creator>
      <dc:date>2014-08-19T13:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: call function in update task empty variables error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521474#M1854124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works, I tested it as well and this is the way that the code is running right now, BUT do you agree that it shouldn't have to be that way? when you call a bapi, several functions 'in update task' are enqueued and they don't have the same problem!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 14:11:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521474#M1854124</guid>
      <dc:creator>adrianos_campanhola</dc:creator>
      <dc:date>2014-08-19T14:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: call function in update task empty variables error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521475#M1854125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Adriano S. Campanhola wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;It works, I tested it as well and this is the way that the code is running right now, BUT do you agree that &lt;SPAN style="text-decoration: underline;"&gt;it shouldn't have to be that way&lt;/SPAN&gt;? &lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Can you explain what you meant by that? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A few additional questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is it possible to share the code inside the method SAVE_CUSTOM_TABLES( )? &lt;/LI&gt;&lt;LI&gt;Did you try update debugging yet? If yes, what did you observer?&lt;/LI&gt;&lt;/UL&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>Tue, 19 Aug 2014 14:29:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521475#M1854125</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2014-08-19T14:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: call function in update task empty variables error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521476#M1854126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the idea? I'm using local tables for the update, but it should still save the parameters to VBLOG. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 14:36:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521476#M1854126</guid>
      <dc:creator>adrianos_campanhola</dc:creator>
      <dc:date>2014-08-19T14:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: call function in update task empty variables error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521477#M1854127</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;For me it looks as if, for some reason, the values passed to the update function got cleared after you left the method in which you called the update function. Are you by any chance passing local variables (declared in the method) to the update function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, make these variables instance ones in the class containing the method save_custom_tables and check then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 14:39:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521477#M1854127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-19T14:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: call function in update task empty variables error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521478#M1854128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I meant is, the standard code calls functions 'IN UPDATE TASK' several times and they don't have to commit work right away.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already did some update debug , inside the method SAVE_CUSTOM_TABLES, the information is filled in the header/item tables I need and I pass them to the function. When the function is called after, the table everything is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll copy the code later for you &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/994/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 14:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521478#M1854128</guid>
      <dc:creator>adrianos_campanhola</dc:creator>
      <dc:date>2014-08-19T14:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: call function in update task empty variables error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521479#M1854129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Adriano S. Campanhola wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;... but it should still save the parameters to VBLOG. &lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Only if you have not defined the update as local. (&lt;A href="http://help.sap.com/abapdocu_740/en/abapset_update_task_local.htm"&gt;SET UPDATE TASK LOCAL&lt;/A&gt;) &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/994/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 14:47:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521479#M1854129</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2014-08-19T14:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: call function in update task empty variables error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521480#M1854130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, but since I had no need for a local update task that shouldn't be the reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 17:02:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521480#M1854130</guid>
      <dc:creator>adrianos_campanhola</dc:creator>
      <dc:date>2014-08-19T17:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: call function in update task empty variables error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521481#M1854131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #0000ff;"&gt;METHOD&lt;/SPAN&gt; save_partial&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;DATA&lt;/SPAN&gt;: t_wegritm&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;LIKE&lt;/SPAN&gt; gt_wegritm&lt;SPAN style="color: #800080;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t_tegrp_parc &lt;SPAN style="color: #0000ff;"&gt;TYPE&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;TABLE&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;OF&lt;/SPAN&gt; ztegrp_parc&lt;SPAN style="color: #800080;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; w_tegrp_parc &lt;SPAN style="color: #0000ff;"&gt;TYPE&lt;/SPAN&gt; ztegrp_parc&lt;SPAN style="color: #800080;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; w_tegrk_parc &lt;SPAN style="color: #0000ff;"&gt;TYPE&lt;/SPAN&gt; ztegrk_parc&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;FIELD-SYMBOLS&lt;/SPAN&gt; &lt;SPAN style="color: #800097;"&gt;&amp;lt;&lt;/SPAN&gt;w_wegritm&lt;SPAN style="color: #800097;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;LIKE&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;LINE&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;OF&lt;/SPAN&gt; t_wegritm&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; t_wegritm&lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;gt_wegritm&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;DELETE&lt;/SPAN&gt; t_wegritm &lt;SPAN style="color: #0000ff;"&gt;WHERE&lt;/SPAN&gt; mengee &lt;SPAN style="color: #0000ff;"&gt;IS&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INITIAL&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;CHECK&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;NOT&lt;/SPAN&gt; t_wegritm &lt;SPAN style="color: #0000ff;"&gt;IS&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INITIAL&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #808080;"&gt;&lt;EM&gt;*--&amp;gt;save xml iten&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;LOOP&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;AT&lt;/SPAN&gt; t_wegritm &lt;SPAN style="color: #0000ff;"&gt;ASSIGNING&lt;/SPAN&gt; &lt;SPAN style="color: #800097;"&gt;&amp;lt;&lt;/SPAN&gt;w_wegritm&lt;SPAN style="color: #800097;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;MOVE-CORRESPONDING&lt;/SPAN&gt; &lt;SPAN style="color: #800097;"&gt;&amp;lt;&lt;/SPAN&gt;w_wegritm&lt;SPAN style="color: #800097;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;TO&lt;/SPAN&gt; w_tegrp_parc&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; w_tegrp_parc-id&lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;gw_tegrk-id&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; w_tegrp_parc-gr_docto&lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800097;"&gt;&amp;lt;&lt;/SPAN&gt;w_wegritm&lt;SPAN style="color: #800097;"&gt;&amp;gt;&lt;/SPAN&gt;-gr_docto&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; w_tegrp_parc-gr_mjahr&lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800097;"&gt;&amp;lt;&lt;/SPAN&gt;w_wegritm&lt;SPAN style="color: #800097;"&gt;&amp;gt;&lt;/SPAN&gt;-gr_mjahr&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; w_tegrp_parc-gr_zeile&lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800097;"&gt;&amp;lt;&lt;/SPAN&gt;w_wegritm&lt;SPAN style="color: #800097;"&gt;&amp;gt;&lt;/SPAN&gt;-gr_zeile&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;APPEND&lt;/SPAN&gt; w_tegrp_parc &lt;SPAN style="color: #0000ff;"&gt;TO&lt;/SPAN&gt; t_tegrp_parc&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;ENDLOOP&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;MOVE-CORRESPONDING&lt;/SPAN&gt; gw_tegrk &lt;SPAN style="color: #0000ff;"&gt;TO&lt;/SPAN&gt; w_tegrk_parc&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;CALL&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;FUNCTION&lt;/SPAN&gt; &lt;SPAN style="color: #4da616;"&gt;'Z_SAVE_PARTIAL'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;IN&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;UPDATE&lt;/SPAN&gt; TASK&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iw_tegrk_parc&lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;w_tegrk_parc&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;TABLES&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_tegrp_parc&lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;t_tegrp_parc&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #0000ff;"&gt;ENDMETHOD&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to re-create this scenario with a local class, but the code that I originally sent worked(the commit work outside of the routine).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 17:11:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521481#M1854131</guid>
      <dc:creator>adrianos_campanhola</dc:creator>
      <dc:date>2014-08-19T17:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: call function in update task empty variables error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521482#M1854132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the variables are all local, but that shouldn't matter since:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - The variables in an update function are all pass by value&lt;/P&gt;&lt;P&gt;2 - The parameters should be sent to table 'VBLOG'(Since it's not a local update task, as pointed by &lt;A __default_attr="167632" __jive_macro_name="user" class="jive_macro_user jive_macro" data-objecttype="3" data-orig-content="Suhas Saha" href="https://community.sap.com/"&gt;&lt;/A&gt;).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 17:17:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521482#M1854132</guid>
      <dc:creator>adrianos_campanhola</dc:creator>
      <dc:date>2014-08-19T17:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: call function in update task empty variables error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521483#M1854133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are using TABLES parameter in Z_SAVE_PARTIAL FM.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_702/en/abapcall_function_parameter.htm#!ABAP_ADDITION_4@4@" title="http://help.sap.com/abapdocu_702/en/abapcall_function_parameter.htm#!ABAP_ADDITION_4@4@"&gt;Documentation&lt;/A&gt; says TABLES is pass by reference with the exception of RFC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a wild search and found that only a handful of update FMs use TABLES parameter, and those FMs don't appear to be used anywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you can try passing the internal table as EXPORTING parameter of table type instead of TABLES. Try and let us know the result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 19:15:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521483#M1854133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-19T19:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: call function in update task empty variables error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521484#M1854134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code was just like you said before I messed it up since the tables addition is obsolete, it was just a try to see if something would change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if that was the problem, the structure iw_tegrk_parc would have the values, but it doesn't &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/994/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 19:26:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521484#M1854134</guid>
      <dc:creator>adrianos_campanhola</dc:creator>
      <dc:date>2014-08-19T19:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: call function in update task empty variables error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521485#M1854135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no harm in trying out. Create a DDIC table type having line type as ztegrp_parc and use same table type in FM interface as well as to declare the local internal table.&lt;SPAN style="color: #800080;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 19:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521485#M1854135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-19T19:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: call function in update task empty variables error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521486#M1854136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I meant is, the function call was just like you said when I first noticed the problem above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;CALL&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;FUNCTION&lt;/SPAN&gt; &lt;SPAN style="color: #4da616;"&gt;'Z_SAVE_PARTIAL'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;IN&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;UPDATE&lt;/SPAN&gt; TASK&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iw_tegrk_parc&lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;w_tegrk_parc&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_tegrp_parc&lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;t_tegrp_parc&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just got lazy and didn't revert it after the change to TABLES &lt;SPAN __jive_emoticon_name="silly" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/994/images/emoticons/silly.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 19:42:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-update-task-empty-variables-error/m-p/10521486#M1854136</guid>
      <dc:creator>adrianos_campanhola</dc:creator>
      <dc:date>2014-08-19T19:42:08Z</dc:date>
    </item>
  </channel>
</rss>

