<?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: fetching internal table structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796964#M1310976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Rainer,&lt;/P&gt;&lt;P&gt;&amp;gt; I want the structure of the variables in an active program..&lt;/P&gt;&lt;P&gt;&amp;gt; I dont want to fetch data from it..&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks,&lt;/P&gt;&lt;P&gt;&amp;gt; Sreekanth&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that you dont want to fetch content but structiure. Thats what my answer was about.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jul 2009 10:06:28 GMT</pubDate>
    <dc:creator>rainer_hbenthal</dc:creator>
    <dc:date>2009-07-03T10:06:28Z</dc:date>
    <item>
      <title>fetching internal table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796959#M1310971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;My requirement is to fetch the structure of the internal table declared in a program from another program.&lt;/P&gt;&lt;P&gt;For Eg:&lt;/P&gt;&lt;P&gt;Program Pgm1 has internal table which has fields(f1 , f2).&lt;/P&gt;&lt;P&gt;In another program Pgm2, I nede to get the fields f1 and f2 if I give the program name and the internal table name as inout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried cl_abap_typedescr=&amp;gt;describe_by_data, but it returns only the structure inside the same program..&lt;/P&gt;&lt;P&gt;The FM GET_GLOBAL_SYMBOLS can be used to fetch the internal tables from another program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to retrive the structure of an internal table from another program???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks,&lt;/P&gt;&lt;P&gt;Sreekanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 09:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796959#M1310971</guid>
      <dc:creator>SreekanthKrishn</dc:creator>
      <dc:date>2009-07-03T09:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: fetching internal table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796960#M1310972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe you can workaround with satement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Loop at component of structure.

endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 09:51:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796960#M1310972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-03T09:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: fetching internal table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796961#M1310973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You only can read in the source text and analyze this... i dont think this will really work. run time analysis will work inside a program frame (global, funciton module and methods) only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 09:53:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796961#M1310973</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-07-03T09:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: fetching internal table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796962#M1310974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; maybe you can workaround with satement&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;
&amp;gt; Loop at component of structure.
&amp;gt; 
&amp;gt; endloop.
&amp;gt; &lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will not work to get the structure defined internally in report a into report b.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 09:54:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796962#M1310974</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-07-03T09:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: fetching internal table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796963#M1310975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florian,&lt;/P&gt;&lt;P&gt;I am not so sure of loop.. of statement.&lt;/P&gt;&lt;P&gt;can u pls provide the syntax..&lt;/P&gt;&lt;P&gt;thanks, &lt;/P&gt;&lt;P&gt;Sreekanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rainer,&lt;/P&gt;&lt;P&gt;I want the structure of the variables in an active program..&lt;/P&gt;&lt;P&gt;I dont want to fetch data from it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sreekanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 09:57:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796963#M1310975</guid>
      <dc:creator>SreekanthKrishn</dc:creator>
      <dc:date>2009-07-03T09:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: fetching internal table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796964#M1310976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Rainer,&lt;/P&gt;&lt;P&gt;&amp;gt; I want the structure of the variables in an active program..&lt;/P&gt;&lt;P&gt;&amp;gt; I dont want to fetch data from it..&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks,&lt;/P&gt;&lt;P&gt;&amp;gt; Sreekanth&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that you dont want to fetch content but structiure. Thats what my answer was about.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 10:06:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796964#M1310976</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-07-03T10:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: fetching internal table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796965#M1310977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rainer,&lt;/P&gt;&lt;P&gt;Can u explain a bit about the process on reading the source text..&lt;/P&gt;&lt;P&gt;Do we need to use read report here??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sreekanth Krishnan on Jul 3, 2009 12:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 10:09:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796965#M1310977</guid>
      <dc:creator>SreekanthKrishn</dc:creator>
      <dc:date>2009-07-03T10:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: fetching internal table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796966#M1310978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well the statement &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Loop at component of structure XXX.

endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loops over the fields of the structure, one by one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sure it doesnt help you to determine of which structure your structure is, but you can skim through it field by field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe a runtimetypeanalysis works for your single field then. that was my though on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 10:10:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796966#M1310978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-03T10:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: fetching internal table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796967#M1310979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florian, he wants to have the type definition from report a in report b!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 10:14:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796967#M1310979</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-07-03T10:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: fetching internal table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796968#M1310980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sreekanth...try to do it in reverse manner....instead of trying to get structure by calling the program passing internal table name and program name....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather try to get the structure itself...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. Call the second program to get structure....&lt;/P&gt;&lt;P&gt;This is how you should do..call the second program passing internal table name and program name...calculate the structure inside the second program and get the structure in program 1....Use the Export and Import statement for this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain...or write codes...of how you are doing it...&lt;/P&gt;&lt;P&gt;May be I am not clear on your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 10:14:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796968#M1310980</guid>
      <dc:creator>former_member212005</dc:creator>
      <dc:date>2009-07-03T10:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: fetching internal table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796969#M1310981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeah i got his requirement, but if he can go through the structure field by field, &lt;/P&gt;&lt;P&gt;and getting the types of this field, he can easily rebuild the structure in report b.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 10:20:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796969#M1310981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-03T10:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: fetching internal table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796970#M1310982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you handeles SDN quite niceley and only posted where you ran into problems. Thank you for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in your case it really would be nice to know what you are aiming, or why you need to do such.&lt;/P&gt;&lt;P&gt;maybe there is an easier way to achieve what you need than to insist on that solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 10:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796970#M1310982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-03T10:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: fetching internal table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796971#M1310983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vin, Florian, Rainer,&lt;/P&gt;&lt;P&gt;thanks for reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requiremnt is:&lt;/P&gt;&lt;P&gt;Suppose there ia a program with an internal table.&lt;/P&gt;&lt;P&gt;say:: &lt;STRONG&gt;ZTEST1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF typ_mara.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       employeeid TYPE i,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       empname TYPE c,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        INCLUDE STRUCTURE mara.&lt;/P&gt;&lt;P&gt;TYPES: END OF typ_mara.&lt;/P&gt;&lt;P&gt;DATA:  wa_mara TYPE typ_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now say I have Program  &lt;STRONG&gt;ZTEST2&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;i have called FM "GET_COMPONENT_LIST" to get the field names "wa_mara".&lt;/P&gt;&lt;P&gt;now I want the fields in the structure "wa_mara" in this program thru some statement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sreekanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 10:28:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796971#M1310983</guid>
      <dc:creator>SreekanthKrishn</dc:creator>
      <dc:date>2009-07-03T10:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: fetching internal table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796972#M1310984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont think it is possible!...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 10:32:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796972#M1310984</guid>
      <dc:creator>former_member212005</dc:creator>
      <dc:date>2009-07-03T10:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: fetching internal table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796973#M1310985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so your TYP_MARA can change?&lt;/P&gt;&lt;P&gt;is it somewhat dynamical?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not, why dont you just use a dictonary structure for it? this would be available in report2 as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 10:35:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796973#M1310985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-03T10:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: fetching internal table structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796974#M1310986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually i am developing a tool which will automatically fetches the structure of data from any program(given as input)..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 10:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-internal-table-structure/m-p/5796974#M1310986</guid>
      <dc:creator>SreekanthKrishn</dc:creator>
      <dc:date>2009-07-03T10:43:50Z</dc:date>
    </item>
  </channel>
</rss>

