<?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 Tables work area not stable when calling function module? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-work-area-not-stable-when-calling-function-module/m-p/12650056#M2014977</link>
    <description>&lt;P&gt;I am working on a user exit. The user exit is being called via CALL CUSTOMER-FUNCTION. Both main program and function group have a TABLES object:&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2135819-tables-xqqm.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Now, before the call, I have a value of 0001 in the field VKORG and ZQ in field ARTPR:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2135823-value-0001.png" /&gt;&lt;/P&gt;
  &lt;P&gt;stepping into the call, I notice that the value VKORG is gone, whilst ARTPR remains:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2135824-value-space.png" /&gt;&lt;/P&gt;
  &lt;P&gt;How can this be? Why is VKORG being cleared in this step and ARTPR (and other fields as well) keep their values?&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 13:24:14 GMT</pubDate>
    <dc:creator>jrgkraus</dc:creator>
    <dc:date>2023-02-08T13:24:14Z</dc:date>
    <item>
      <title>Tables work area not stable when calling function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-work-area-not-stable-when-calling-function-module/m-p/12650056#M2014977</link>
      <description>&lt;P&gt;I am working on a user exit. The user exit is being called via CALL CUSTOMER-FUNCTION. Both main program and function group have a TABLES object:&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2135819-tables-xqqm.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Now, before the call, I have a value of 0001 in the field VKORG and ZQ in field ARTPR:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2135823-value-0001.png" /&gt;&lt;/P&gt;
  &lt;P&gt;stepping into the call, I notice that the value VKORG is gone, whilst ARTPR remains:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2135824-value-space.png" /&gt;&lt;/P&gt;
  &lt;P&gt;How can this be? Why is VKORG being cleared in this step and ARTPR (and other fields as well) keep their values?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 13:24:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-work-area-not-stable-when-calling-function-module/m-p/12650056#M2014977</guid>
      <dc:creator>jrgkraus</dc:creator>
      <dc:date>2023-02-08T13:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Tables work area not stable when calling function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-work-area-not-stable-when-calling-function-module/m-p/12650057#M2014978</link>
      <description>&lt;P&gt;AFAIK, TABLES work area are shared within a program group. But "an additional program pool is always created when function pools and class pools are loaded" (&lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenprogram_groups.htm"&gt;ref&lt;/A&gt;). The Customer Exit is part of a function pool, so the VIQMEL of the Exit Function Group should not be the VIQMEL of the Main Program?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Could you try to add in Debug some watchpoint on structures or fields of VIQMEL(SAPMIWO0) and VIQMEL(SAPLXQQM) - I suppose VIQMEL(SAPLXQQM)-VKORG was cleared in another exit?&lt;/LI&gt;&lt;LI&gt;Note that every Customer Exit/Dynpro of the same function group could update VIQMEL(SAPLXQQM)&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 08 Feb 2023 13:47:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-work-area-not-stable-when-calling-function-module/m-p/12650057#M2014978</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2023-02-08T13:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Tables work area not stable when calling function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-work-area-not-stable-when-calling-function-module/m-p/12650058#M2014979</link>
      <description>&lt;P&gt;Global structure VIQMEL (declared with TABLES) is simply overwritten by the MOVE statement that you have  shown in fm EXIT_SAPMIWO0_009 - because this structure is used as an actiual parameter to formal parameter &lt;STRONG&gt;p_viqmel&lt;/STRONG&gt; (changing) of form user_exit_009_f90 which calls CALL CUSTOMER-FUNCTION '009' (importing p_viqmel).&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 15:24:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-work-area-not-stable-when-calling-function-module/m-p/12650058#M2014979</guid>
      <dc:creator>Maciej_DomagaBa</dc:creator>
      <dc:date>2023-02-08T15:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Tables work area not stable when calling function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-work-area-not-stable-when-calling-function-module/m-p/12650059#M2014980</link>
      <description>&lt;P&gt;Difficult to say, you show the values of VIQMEL, not P_VIQMEL, and also I don't see the arguments passed to USER_EXIT_009_F90. Maybe in LIQS0I90. Excerpt:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  PERFORM user_exit_009_f90(sapmiwo0) USING    xcount_pai
                                               tqtabs-tabcd
                                               xuserscr_pai
                                      CHANGING viqmel.
&lt;/CODE&gt;&lt;/PRE&gt;Excerpt from MIWO0F90:&lt;BR /&gt;&lt;PRE&gt;&lt;CODE&gt;FORM user_exit_009_f90 USING    p_xcount TYPE n
                                p_tabcd  LIKE tqtabs-tabcd
                                p_uscr_pai LIKE tq80-userscr1
                       CHANGING p_viqmel LIKE viqmel.

  CALL CUSTOMER-FUNCTION '009'
       EXPORTING
         i_viqmel = p_viqmel
         i_tabcd  = p_tabcd
         i_subnr  = p_xcount
         i_uscr   = p_uscr_pai
       IMPORTING
         e_viqmel = p_viqmel.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Feb 2023 16:02:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-work-area-not-stable-when-calling-function-module/m-p/12650059#M2014980</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-02-08T16:02:38Z</dc:date>
    </item>
  </channel>
</rss>

