<?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: Export internal table from Function Module to the calling environment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-from-function-module-to-the-calling-environment/m-p/6587940#M1435386</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Arbind,&lt;/P&gt;&lt;P&gt;As u told to create a structure in se11, but the problem is we don't know the structure(components), the table will be know at only runtime(dynamic). so how to handle in that case..?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Feb 2010 06:03:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-02T06:03:15Z</dc:date>
    <item>
      <title>Export internal table from Function Module to the calling environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-from-function-module-to-the-calling-environment/m-p/6587931#M1435377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi GURUs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have scenario where we export the table name (say USR02) and Primary Key Value to the function module from main program.&lt;/P&gt;&lt;P&gt;So in this program i need to export the internal table from the funtion module to the main program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we've declared a variable, say t_result of type any as a export variable in FM. we &lt;/P&gt;&lt;P&gt;MOVE &amp;lt;t_table&amp;gt;  TO t_result..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here we are getting error saying "t_result is not a internal table"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls help..&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;&lt;/P&gt;&lt;P&gt;thnx in advance..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 04:41:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-from-function-module-to-the-calling-environment/m-p/6587931#M1435377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-25T04:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Export internal table from Function Module to the calling environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-from-function-module-to-the-calling-environment/m-p/6587932#M1435378</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;Please ellaborate our Question................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Since i  understand you want to export the  UR02 Structure from FM to Main Program....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 2 solutions for that ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a structure and enter the fields u want in FM  and export in by calling in Mai Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use Field Symbols Concept.&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;Affable&lt;/P&gt;&lt;P&gt;Arbind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 05:18:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-from-function-module-to-the-calling-environment/m-p/6587932#M1435378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-25T05:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Export internal table from Function Module to the calling environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-from-function-module-to-the-calling-environment/m-p/6587933#M1435379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If i understand correctly, u r calling a FM in your main program and passing the table name, primary key as input parameters.  This FM will return the mentioned table data as output right... If yes, then u can declare the table same as the function module output parameter type and use the output table directly in ur main program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 05:40:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-from-function-module-to-the-calling-environment/m-p/6587933#M1435379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-25T05:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Export internal table from Function Module to the calling environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-from-function-module-to-the-calling-environment/m-p/6587934#M1435380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;thank for the reply.&lt;/P&gt;&lt;P&gt;we tried using a field sybmols.&lt;/P&gt;&lt;P&gt;we are trying to take any table name and this is the following code what we tried .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION y713301_table.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(T_NAME) TYPE  C&lt;/P&gt;&lt;P&gt;*"     VALUE(PRIMARY_ID) TYPE  C&lt;/P&gt;&lt;P&gt;*"     VALUE(PRIMARY_VALUE) TYPE  C&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(FNAME) TYPE  C&lt;/P&gt;&lt;P&gt;*"     REFERENCE(T_RESULT) TYPE  ANY&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:lt_dd03l TYPE STANDARD TABLE OF dd03l,&lt;/P&gt;&lt;P&gt;  ls_dd03l TYPE dd03l.&lt;/P&gt;&lt;P&gt;  DATA: my_table TYPE REF TO data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;it_tname&amp;gt; TYPE STANDARD TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM dd03l INTO TABLE lt_dd03l&lt;/P&gt;&lt;P&gt;               WHERE tabname EQ t_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE DATA my_table LIKE TABLE OF lt_dd03l.&lt;/P&gt;&lt;P&gt;  ASSIGN my_table-&amp;gt;* TO &amp;lt;it_tname&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE &amp;lt;it_tname&amp;gt; TO t_result[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"  MOVE &amp;lt;it_tname&amp;gt; TO t_result[]." on this line we are getting a error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please provide the solution for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 05:51:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-from-function-module-to-the-calling-environment/m-p/6587934#M1435380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-25T05:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Export internal table from Function Module to the calling environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-from-function-module-to-the-calling-environment/m-p/6587935#M1435381</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 worked...&lt;/P&gt;&lt;P&gt;Please find the solution....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA : it_dd03l TYPE TABLE OF dd03l.

  DATA: w_tabname TYPE tabname VALUE 'DD03L',

  w_dref TYPE REF TO data.

  FIELD-SYMBOLS: &amp;lt;t_itab&amp;gt; TYPE ANY TABLE.

  CREATE DATA w_dref TYPE TABLE OF (w_tabname).

  ASSIGN w_dref-&amp;gt;* TO &amp;lt;t_itab&amp;gt;.


  SELECT *

      FROM (w_tabname) UP TO 20 ROWS

      INTO TABLE &amp;lt;t_itab&amp;gt;.

  MOVE &amp;lt;t_itab&amp;gt; TO it_dd03l.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know for any more solutions..........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 06:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-from-function-module-to-the-calling-environment/m-p/6587935#M1435381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-25T06:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Export internal table from Function Module to the calling environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-from-function-module-to-the-calling-environment/m-p/6587936#M1435382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, &lt;/P&gt;&lt;P&gt;Arbind Prasad,&lt;/P&gt;&lt;P&gt;i'm trying to fetch the records from the specified table with a specific primary key value.&lt;/P&gt;&lt;P&gt;so only one record will be retrieved from the table.&lt;/P&gt;&lt;P&gt;i'm creating a field symbol of type table.&lt;/P&gt;&lt;P&gt;once the records r fetched assign the rows to the export variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 06:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-from-function-module-to-the-calling-environment/m-p/6587936#M1435382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-25T06:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Export internal table from Function Module to the calling environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-from-function-module-to-the-calling-environment/m-p/6587937#M1435383</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;It's Simple my Friend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data :  w_dref TYPE REF TO data,
           w_tabname type tabname.

w_tabname = Import Parameter.
 
FIELD-SYMBOLS: &amp;lt;t_itab&amp;gt; TYPE ANY .
 
CREATE DATA w_dref TYPE  (w_tabname).
 
  ASSIGN w_dref-&amp;gt;* TO &amp;lt;t_itab&amp;gt;.
 
 
  SELECT *
 
      FROM (w_tabname)  
      INTO  &amp;lt;t_itab&amp;gt;.
 
  MOVE &amp;lt;t_itab&amp;gt; TO it_dd03l.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just try to manipulate the same code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Affable&lt;/P&gt;&lt;P&gt;Arbind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 06:45:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-from-function-module-to-the-calling-environment/m-p/6587937#M1435383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-25T06:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Export internal table from Function Module to the calling environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-from-function-module-to-the-calling-environment/m-p/6587938#M1435384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Arbind,&lt;/P&gt;&lt;P&gt;the above code u mentioned ll work when ur trying to retreive the rows of the table in the main program.&lt;/P&gt;&lt;P&gt;i tried the following with somes changes which works fine in the main prg.&lt;/P&gt;&lt;P&gt;but when i'm trying  to execute code  in FM with some changes, it doesn't work.&lt;/P&gt;&lt;P&gt;so request u to help me out to get out this black hole....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 05:25:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-from-function-module-to-the-calling-environment/m-p/6587938#M1435384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T05:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Export internal table from Function Module to the calling environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-from-function-module-to-the-calling-environment/m-p/6587939#M1435385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srimal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done the same ..&lt;/P&gt;&lt;P&gt;It works for me....&lt;/P&gt;&lt;P&gt;Since u r using Field Symbols after getting the values in FM u have to move it to a structure , so make a structure in se11  and move it.&lt;/P&gt;&lt;P&gt;it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try and let me know if there some probelm ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arbind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 05:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-from-function-module-to-the-calling-environment/m-p/6587939#M1435385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T05:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Export internal table from Function Module to the calling environment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-from-function-module-to-the-calling-environment/m-p/6587940#M1435386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Arbind,&lt;/P&gt;&lt;P&gt;As u told to create a structure in se11, but the problem is we don't know the structure(components), the table will be know at only runtime(dynamic). so how to handle in that case..?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 06:03:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-internal-table-from-function-module-to-the-calling-environment/m-p/6587940#M1435386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T06:03:15Z</dc:date>
    </item>
  </channel>
</rss>

