<?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 access other program's internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208579#M1005735</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 XD01 transaction u have user exit EXIT_SAPMF02D_001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this u have all the internal tables available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this user exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export table &amp;lt;itab&amp;gt; to Memory ID 'ur (T-code)'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Calling program use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import table &amp;lt;itab&amp;gt; from Memory id 'ur (T-code)'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of ITAB use internal table what ever u want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for memeory id try to use ur t-code so that it &lt;/P&gt;&lt;P&gt;will not over write with other.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Aug 2008 04:17:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-13T04:17:03Z</dc:date>
    <item>
      <title>how to access other program's internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208570#M1005726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Experts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how  to read other program ' s  internal  table ?&lt;/P&gt;&lt;P&gt;I use  BTE  to  do  some things. But i do not know how to access internal table in  other program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for  example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use BTE 'CRM0_200'   to   get   customer info , I can  get  kna1  ,but  how to get  adr6  and  adrc ???&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;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 11:09:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208570#M1005726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T11:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to access other program's internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208571#M1005727</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;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export table &amp;lt;itab&amp;gt; to  Memory ID 'ABC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Calling program use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import table &amp;lt;itab&amp;gt; from Memory id 'ABC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sumit Agarwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 11:13:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208571#M1005727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T11:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to access other program's internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208572#M1005728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pls  help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 11:13:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208572#M1005728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T11:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to access other program's internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208573#M1005729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can not edit SAP's program    like   'xd01'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 11:15:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208573#M1005729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T11:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to access other program's internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208574#M1005730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii!&lt;/P&gt;&lt;P&gt;   Check out these two sample codes. Here I'm transferring table t_spfli to memory Id 'ABC'. and then I'm retrieving this table from same memory Id in program 2.&lt;/P&gt;&lt;P&gt;PROGRAM1&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  z_abap_memory.
DATA:
  w_carrid TYPE spfli-carrid,
  BEGIN OF fs_spfli,
    carrid LIKE spfli-carrid,
    connid LIKE spfli-connid,
    fltime LIKE spfli-fltime,
  END OF fs_spfli.
DATA:
  t_spfli LIKE
    TABLE OF
          fs_spfli.

SELECT-OPTIONS:
  s_carrid FOR w_carrid.

START-OF-SELECTION.
  PERFORM get_spfli.
  PERFORM disp_spfli.
AT LINE-SELECTION.
  IF sy-lsind EQ 1.
    EXPORT t_spfli TO MEMORY ID 'ABC'.
    SUBMIT z_ABAP_MEMORY1 AND RETURN.
  ENDIF.
END-OF-SELECTION.
  PERFORM disp_spfli.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  get_spfli
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM get_spfli .
  SELECT carrid
         connid
         fltime
    FROM spfli
    INTO TABLE t_spfli
   WHERE carrid IN s_carrid.

ENDFORM.                    " get_spfli
*&amp;amp;---------------------------------------------------------------------
*
*&amp;amp;      Form  disp_spfli
*&amp;amp;---------------------------------------------------------------------
*
*       text
*----------------------------------------------------------------------
*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------
*
FORM disp_spfli .
  LOOP AT t_spfli INTO fs_spfli.
    WRITE: / fs_spfli-carrid,
             fs_spfli-connid,
             fs_spfli-fltime.
  ENDLOOP.
  HIDE:
    fs_spfli-carrid,
    fs_spfli-connid.
ENDFORM.                    " disp_spfli
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM 2&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  z_abap_memory1.

DATA:
  BEGIN OF fs_spfli,
    carrid LIKE spfli-carrid,
    connid LIKE spfli-connid,
    fltime LIKE spfli-fltime,
  END OF fs_spfli,
  fs_fl LIKE fs_spfli.
DATA:
  BEGIN OF fs_flight,
    carrid LIKE sflight-carrid,
    connid LIKE sflight-connid,
    fldate LIKE sflight-fldate,
  END OF fs_flight.

DATA:
  t_spfli LIKE
    TABLE OF
          fs_spfli.

DATA:
  t_fl LIKE t_spfli.

DATA:
  t_flight LIKE
     TABLE OF
           fs_flight.

IMPORT t_spfli FROM MEMORY ID 'ABC'.
t_fl = t_spfli.

SELECT carrid
       connid
       fldate
  FROM sflight
  INTO TABLE t_flight
  FOR ALL ENTRIES IN t_spfli
 WHERE carrid = t_spfli-carrid
   AND connid = t_spfli-connid.


LOOP AT t_flight INTO fs_flight.
  WRITE: / fs_flight-carrid,
           fs_flight-connid,
           fs_flight-fldate.
ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 11:16:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208574#M1005730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T11:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to access other program's internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208575#M1005731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Geng,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You can achieve this by using Export and Import parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/ab020.htm" target="test_blank"&gt;http://www.sap-img.com/ab020.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link for sample program on Export:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://saplab.blogspot.com/2007/10/sample-abap-program-to-export-list-to_18.html" target="test_blank"&gt;http://saplab.blogspot.com/2007/10/sample-abap-program-to-export-list-to_18.html&lt;/A&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;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 11:17:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208575#M1005731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T11:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to access other program's internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208576#M1005732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : text(50).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols : &amp;lt;fs&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text = '(SAPMF02D)ADRC'.&lt;/P&gt;&lt;P&gt;assign (text) to &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;here &amp;lt;fs&amp;gt; will contain the value of ADRC.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the concept is '(PROG NAME)TABLE/STRUCTURE NAME of the program which you want to access'. So as per your requirement you may have to change the STRUCTURE or TABLE NAME as per your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 11:33:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208576#M1005732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T11:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to access other program's internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208577#M1005733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pls give a solution for get customer info (customer code is gived internal)&lt;/P&gt;&lt;P&gt;in BADI  or  BTE  ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 10:21:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208577#M1005733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-11T10:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to access other program's internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208578#M1005734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pls&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 02:37:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208578#M1005734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T02:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to access other program's internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208579#M1005735</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 XD01 transaction u have user exit EXIT_SAPMF02D_001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this u have all the internal tables available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this user exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export table &amp;lt;itab&amp;gt; to Memory ID 'ur (T-code)'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Calling program use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import table &amp;lt;itab&amp;gt; from Memory id 'ur (T-code)'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of ITAB use internal table what ever u want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for memeory id try to use ur t-code so that it &lt;/P&gt;&lt;P&gt;will not over write with other.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 04:17:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208579#M1005735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T04:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to access other program's internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208580#M1005736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use badi 'address_update'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 08:50:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-other-program-s-internal-table/m-p/4208580#M1005736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T08:50:40Z</dc:date>
    </item>
  </channel>
</rss>

