<?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: Read internal table of diff program in another program. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-of-diff-program-in-another-program/m-p/3212766#M765960</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to EXPORT the internal table from another program &amp;amp; IMPORT the same in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ANother program.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;EXPORT ITAB TO MEMORY ID 'ZID'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Your program&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IMPORT ITAB FROM MEMORY ID 'ZID'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Dec 2007 12:35:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-12T12:35:56Z</dc:date>
    <item>
      <title>Read internal table of diff program in another program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-of-diff-program-in-another-program/m-p/3212765#M765959</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;I have written the following code in BADI.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;types: tp_t_drseg type standard table of drseg initial size 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS :  &amp;lt;y_it_drsego&amp;gt; TYPE tp_t_drseg.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                            &amp;lt;y_it_drseg&amp;gt; type ANY.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA:     y_it_drseg(40) type c,&lt;/P&gt;&lt;P&gt;               y_lv_it_drseg type standard table of drseg,&lt;/P&gt;&lt;P&gt;               wa_y_lv_it_drseg type drseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;                  y_it_drseg = '(SAPLMRMP)T_DRSEG[]'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  ASSIGN (y_it_drseg) to &amp;lt;y_it_drsego&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  If sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;                      ---  Statements.&lt;/P&gt;&lt;P&gt;                  Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here the value of sy-subrc = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with &lt;/P&gt;&lt;P&gt;                  y_it_drseg = '(SAPLMRMP)T_DRSEG'.&lt;/P&gt;&lt;P&gt;                  ASSIGN (y_it_drseg) to &amp;lt;y_it_drsego&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For structure it is working fine.  But for internal table it is returning 4.   Your help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 11:52:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-of-diff-program-in-another-program/m-p/3212765#M765959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T11:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table of diff program in another program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-of-diff-program-in-another-program/m-p/3212766#M765960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to EXPORT the internal table from another program &amp;amp; IMPORT the same in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ANother program.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;EXPORT ITAB TO MEMORY ID 'ZID'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Your program&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IMPORT ITAB FROM MEMORY ID 'ZID'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 12:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-of-diff-program-in-another-program/m-p/3212766#M765960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T12:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table of diff program in another program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-of-diff-program-in-another-program/m-p/3212767#M765961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prashan,&lt;/P&gt;&lt;P&gt;    Thanks for reply.  As the program SAPLMRMP is standard program I am avoiding to modify it as it requires access key. Because of this I am writing this code in BADI to change the value of T_DRSEG table.    Please let me know whether it is possible by using field-symbol or not or is there any other method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 14:19:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-of-diff-program-in-another-program/m-p/3212767#M765961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T14:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table of diff program in another program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-of-diff-program-in-another-program/m-p/3212768#M765962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;replace your below statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS : &amp;lt;y_it_drsego&amp;gt; TYPE tp_t_drseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS : &amp;lt;y_it_drsego&amp;gt; TYPE TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jan 2011 10:37:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-of-diff-program-in-another-program/m-p/3212768#M765962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-18T10:37:53Z</dc:date>
    </item>
  </channel>
</rss>

