<?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: How to read internal table other program (assign?) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-internal-table-other-program-assign/m-p/1226988#M138156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;**** should read topic completely &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit is right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheerz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Mar 2006 14:04:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-24T14:04:23Z</dc:date>
    <item>
      <title>How to read internal table other program (assign?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-internal-table-other-program-assign/m-p/1226983#M138151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello techies,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem &amp;gt;&lt;/P&gt;&lt;P&gt;I have 2 Sap standard programs A &amp;amp; B&lt;/P&gt;&lt;P&gt;I'm editing a userexit in program B but I need to read&lt;/P&gt;&lt;P&gt;data from program A that is also running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While using the debugger, I can ask for the folowing&lt;/P&gt;&lt;P&gt;       (A)internaltable &lt;/P&gt;&lt;P&gt;        example : (SAPLMEPO)pot &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this shows the content of internal table "pot" of the program "SAPLMEPO".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question&amp;gt;&lt;/P&gt;&lt;P&gt;How can I copy the content of a table(ex. pot) in program "A"(ex. SAPLMEPO) to a internal table pot2 of program "B"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible sollution (does not work in 5.0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="13" type="ul"&gt;&lt;P&gt;CODE SAMPLE *************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Fields          **&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;data: w_name type char50,"help field&lt;/P&gt;&lt;P&gt;      w_recpot like ekpo."help structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Internal tables **&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;data: Begin of it_pot2 occurs 0.&lt;/P&gt;&lt;P&gt;   include structure it_pot2.&lt;/P&gt;&lt;P&gt;data: End of it_pot2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols &amp;lt;fs_pot&amp;gt; type any table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_structure_name = '(SAPLMEPO)pot'.&lt;/P&gt;&lt;P&gt;assign (w_structure_name) to &amp;lt;fs_pot&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at &amp;lt;fs_pot&amp;gt; into w_recpot.&lt;/P&gt;&lt;P&gt; it_pot2 = w_recpot.&lt;/P&gt;&lt;P&gt; append it_pot2&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="13" type="ul"&gt;&lt;P&gt;END CODE SAMPLE *************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Frederik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 13:50:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-internal-table-other-program-assign/m-p/1226983#M138151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T13:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to read internal table other program (assign?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-internal-table-other-program-assign/m-p/1226984#M138152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frederik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If the programs A and B&lt;/P&gt;&lt;P&gt;   are currently in memory&lt;/P&gt;&lt;P&gt;  (ie, A has called b, and b has user-exit)&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  ONLY THEN&lt;/P&gt;&lt;P&gt;  we can access variables of A, in user-exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. But if program A&lt;/P&gt;&lt;P&gt;   is not in memory&lt;/P&gt;&lt;P&gt;   (ie. its not called anywhere in the sequence, )&lt;/P&gt;&lt;P&gt;    then OFFLINE&lt;/P&gt;&lt;P&gt;   nothing can be done !&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 13:56:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-internal-table-other-program-assign/m-p/1226984#M138152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T13:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to read internal table other program (assign?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-internal-table-other-program-assign/m-p/1226985#M138153</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;very simple...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to create common data are with the same name in both program with this statement!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Content should be kept&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA - Defining Common Data Areas 


Basic form 
DATA: BEGIN OF COMMON PART c, 
        ... 
      END   OF COMMON PART. 



This statement is not allowed in an ABAP Objects context. See Shared data areas not allowed. 

Effect 
Defines one or more common data area in programs that are connected by external PERFORM calls. If there is only one common data area, you can omit the name c. You may have a single, unnamed COMMON are or one or more named COMMON areas. Named COMMON areas are assigned to each other by name. The construction of the data area must be the same in both the calling and the called program (otherwise the program terminates at runtime with a corresponding message). 
You must specify the name of a common data area as a direct value, without inverted commas. 



Notes 
Table work areas automatically belong to the common data area. 



The area created using COMMON is usually defined by a shared INCLUDE STRUCTURE definiert. Occasionally you might use the technique of an INCLUDE program containing just the definition of the COMMON PARTs. 



Field symbols cannot belong to a common data area, even if the FIELD-SYMBOLS statement comes between the DATA BEGIN OF COMMON PART and DATA END OF COMMON PART statements. 


Additional help 
Interface Work Areas 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 13:58:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-internal-table-other-program-assign/m-p/1226985#M138153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T13:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to read internal table other program (assign?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-internal-table-other-program-assign/m-p/1226986#M138154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or use import / export statement!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx for reward!&lt;/P&gt;&lt;P&gt;Stephan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 13:59:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-internal-table-other-program-assign/m-p/1226986#M138154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T13:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to read internal table other program (assign?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-internal-table-other-program-assign/m-p/1226987#M138155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In your case, u should use&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;[]&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : myitab LIKE TABLE OF t001 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA : w_struct_name(100) TYPE c.&lt;/P&gt;&lt;P&gt;  BREAK-POINT.&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS &amp;lt;fs_pot&amp;gt; TYPE ANY TABLE.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  w_struct_name = '(ZAM_TEMP0)ITAB[]'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  ASSIGN (w_struct_name) TO &amp;lt;fs_pot&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. No need to use Loop etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. *----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; In your case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="13" type="ul"&gt;&lt;P&gt;CODE SAMPLE *************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Fields **&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;data: w_name type char50,"help field&lt;/P&gt;&lt;P&gt;w_recpot like ekpo."help structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Internal tables **&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;data: Begin of it_pot2 occurs 0.&lt;/P&gt;&lt;P&gt;include structure it_pot2.&lt;/P&gt;&lt;P&gt;data: End of it_pot2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols &amp;lt;fs_pot&amp;gt; type any table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_structure_name = '&amp;lt;b&amp;gt;(SAPLMEPO)POT[]&amp;lt;/b&amp;gt;'.&lt;/P&gt;&lt;P&gt;assign (w_structure_name) to &amp;lt;fs_pot&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt; NOT REQUIRED&lt;/P&gt;&lt;P&gt;*loop at &amp;lt;fs_pot&amp;gt; into w_recpot.&lt;/P&gt;&lt;P&gt;*it_pot2 = w_recpot.&lt;/P&gt;&lt;P&gt;*append it_pot2&lt;/P&gt;&lt;P&gt;*Endloop.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="13" type="ul"&gt;&lt;P&gt;END CODE SAMPLE *************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 14:02:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-internal-table-other-program-assign/m-p/1226987#M138155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T14:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to read internal table other program (assign?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-internal-table-other-program-assign/m-p/1226988#M138156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;**** should read topic completely &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit is right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheerz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 14:04:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-internal-table-other-program-assign/m-p/1226988#M138156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T14:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to read internal table other program (assign?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-internal-table-other-program-assign/m-p/1226989#M138157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Frederik,&lt;/P&gt;&lt;P&gt;try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Fields **&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;data: w_name type char50,"help field&lt;/P&gt;&lt;P&gt;w_recpot like ekpo."help structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Internal tables **&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;data: Begin of it_pot2 occurs 0.&lt;/P&gt;&lt;P&gt;include structure it_pot2.&lt;/P&gt;&lt;P&gt;data: End of it_pot2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols &amp;lt;fs_pot&amp;gt; type any table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_structure_name = '(SAPLMEPO)pot[]'.&amp;lt;-changed&lt;/P&gt;&lt;P&gt;assign (w_structure_name) to &amp;lt;fs_pot&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at &amp;lt;fs_pot&amp;gt; into w_recpot.&lt;/P&gt;&lt;P&gt;it_pot2 = w_recpot.&lt;/P&gt;&lt;P&gt;append it_pot2&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;instead of loop .. endloop use &lt;/P&gt;&lt;P&gt;it_pot2[] = &amp;lt;fs_pot&amp;gt;[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 14:05:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-internal-table-other-program-assign/m-p/1226989#M138157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T14:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to read internal table other program (assign?)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-internal-table-other-program-assign/m-p/1226990#M138158</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;&lt;/P&gt;&lt;P&gt;I must thank you all for the quick responses. &lt;/P&gt;&lt;P&gt;Indeed the error was&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_structure_name = '(SAPLMEPO)pot[]'.&lt;/P&gt;&lt;P&gt;By adding the [] to the code it can look for tables and not only structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Frederik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2006 07:25:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-internal-table-other-program-assign/m-p/1226990#M138158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-27T07:25:46Z</dc:date>
    </item>
  </channel>
</rss>

