<?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: Alternative to Nested Loops ??? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271346#M150438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't have any common field, then on what basis are you building a relationship between the two. How will know if you have to do a loop at itab1 first and then itab2 or vice-versa? May be it will help if you post your current loop statements along with the internal table definitions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Mar 2006 03:46:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-23T03:46:39Z</dc:date>
    <item>
      <title>Alternative to Nested Loops ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271336#M150428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys &lt;/P&gt;&lt;P&gt;I just wanted to know if there is any alternative to LOOP inside LOOP (nested loops) if there is no primary key available ?&lt;/P&gt;&lt;P&gt;Help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 12:09:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271336#M150428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T12:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to Nested Loops ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271337#M150429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the exact scenario ??&lt;/P&gt;&lt;P&gt;One alternative for a nested loop case is:&lt;/P&gt;&lt;P&gt;loop at vbak.&lt;/P&gt;&lt;P&gt; loop at vbap where vbeln = vbak-vbeln.&lt;/P&gt;&lt;P&gt;  ......&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;Instead of this, we can write..&lt;/P&gt;&lt;P&gt;loop at vbap.&lt;/P&gt;&lt;P&gt;  read table vbak with key vbeln = vbap-vbeln.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 12:15:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271337#M150429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T12:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to Nested Loops ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271338#M150430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt; i dont think you need a primary key &lt;/P&gt;&lt;P&gt; to use LOOP..&lt;/P&gt;&lt;P&gt; can you be more clear..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 12:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271338#M150430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T12:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to Nested Loops ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271339#M150431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can use read statement inside loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab2 by fld1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab1.

  read table itab2 with key fld1 = itab1-fld1 binary search.
  if sy-subrc eq 0.
  endif.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 12:16:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271339#M150431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T12:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to Nested Loops ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271340#M150432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;read table itab1 with key x = itab-x binary search.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 12:18:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271340#M150432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T12:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to Nested Loops ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271341#M150433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depends on what exactly is the processing you want to do. Could you please explain?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 12:19:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271341#M150433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T12:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to Nested Loops ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271342#M150434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Reddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you mean by &amp;lt;i&amp;gt;Primary Key&amp;lt;/i&amp;gt; here ? Are you saying that the two internal tables have got no common fields at all ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that's the case, then you have no other alternative. By the way, it would really help if you colud state your problem with much more detail...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kinshuk Saxena.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 12:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271342#M150434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T12:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to Nested Loops ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271343#M150435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Reddy garu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using Read table statement with binary search option instead of loops. This will optimise the performance also. Do not forget to sort the internal table before using the binary search&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;some tips:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)u can use modify itab transporting f1 f2 inside a loop if u want to modify only few fields instead of just saying modify itab.&lt;/P&gt;&lt;P&gt;2) if unable to avoid loops then first do a read table with key and then do a loop from sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not &amp;lt;b&amp;gt;Use the inner join conditions to avoid loops&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Srikanth.&lt;/P&gt;&lt;P&gt;Please reward points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 12:21:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271343#M150435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T12:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to Nested Loops ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271344#M150436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wrote a &amp;lt;a href="/people/rob.burbank/blog/2006/02/07/performance-of-nested-loops"&amp;gt;blog&amp;lt;/a&amp;gt; on exactly this topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 14:54:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271344#M150436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T14:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to Nested Loops ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271345#M150437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for respondng.&lt;/P&gt;&lt;P&gt;Yes Kinshuk, &lt;/P&gt;&lt;P&gt;I do not have any common field in the two internal tables. Had there been a common field I would have used the read statement (as suggested by others, and I already knew that)&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2006 03:40:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271345#M150437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-23T03:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to Nested Loops ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271346#M150438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't have any common field, then on what basis are you building a relationship between the two. How will know if you have to do a loop at itab1 first and then itab2 or vice-versa? May be it will help if you post your current loop statements along with the internal table definitions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2006 03:46:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271346#M150438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-23T03:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to Nested Loops ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271347#M150439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is My Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT I_PRGLIST_FIN.&lt;/P&gt;&lt;P&gt;    W_PROGNAME = I_PRGLIST_FIN-NAME.&lt;/P&gt;&lt;P&gt;    READ REPORT W_PROGNAME INTO I_PRGCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DELETE I_PRGCODE WHERE LINE IS INITIAL.&lt;/P&gt;&lt;P&gt;    DELETE I_PRGCODE WHERE LINE+0(1) = '*'.&lt;/P&gt;&lt;P&gt;    DELETE I_PRGCODE WHERE LINE CS 'REPORT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR : I_PRGCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Searching for the tables used in the programs&lt;/P&gt;&lt;P&gt;    CLEAR I_DD02L_FINAL.&lt;/P&gt;&lt;P&gt;    LOOP AT I_DD02L_FINAL.&lt;/P&gt;&lt;P&gt;     	 CLEAR : I_RESULT_TAB.&lt;/P&gt;&lt;P&gt;     	 SEARCH I_PRGCODE FOR I_DD02L_FINAL-TABNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     	 IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;        		I_RESULT_TAB-NAME = W_PROGNAME.&lt;/P&gt;&lt;P&gt;       		I_RESULT_TAB-TABNAME  = I_DD02L_FINAL-TABNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        		APPEND I_RESULT_TAB.&lt;/P&gt;&lt;P&gt;        		CLEAR I_RESULT_TAB.&lt;/P&gt;&lt;P&gt;      	ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP. "I_DD02L_FINAL&lt;/P&gt;&lt;P&gt;ENDLOOP. "I_PRGLIST_FIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_DD02L_FINAL contains all the tables (Exactly 1,38,572) in a particular server.&lt;/P&gt;&lt;P&gt;I_PRGLIST_FIN contains all the Z and Y programs (Exactly 3,116 ) in that server.&lt;/P&gt;&lt;P&gt;You can understand the use of I_RESULT_TAB.&lt;/P&gt;&lt;P&gt;I hope you understand the code and expecting a better solution because this piece of code is taking 18 hours (because of nested loops (remember internal tables have no common fields)) to get executed obviously in background.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2006 04:27:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271347#M150439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-23T04:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to Nested Loops ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271348#M150440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Reddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are trying to find out all the tables that are used in the custom programs (beginning with Y or Z). There's a table in SAP called D010TAB which contains all the &lt;/P&gt;&lt;P&gt;(a). tables &lt;/P&gt;&lt;P&gt;(b). data-elements&lt;/P&gt;&lt;P&gt;(c). structures   and &lt;/P&gt;&lt;P&gt;(d). views &lt;/P&gt;&lt;P&gt;used in an ABAP Program. This table is always populated during the ABAP Compile Time and is guaranteed to contain the correct and complete information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, the problem just reduces to selecting the data from this table and excluding the records for structures, views and data-elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written the following program which would meet this functionality. Please have a look at this - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tables d010tab.

data : itab_main type table of d010tab with header line,
       itab_temp type table of d010tab with header line,
       itab_tabl type table of tabname with header line.
       
ranges r_tabname for d010tab-tabname.

start-of-selection.

  select * from d010tab
           into table itab_main
          where ( master like 'Y%'
             or master like 'Z%' ).
  
  itab_temp[] = itab_main[].
  
  sort itab_temp by tabname.
  
  delete adjacent duplicates from itab_temp comparing tabname.
  
  select tabname from dd02l
    into table itab_tabl
    for all entries in itab_temp
    where tabname eq itab_temp-tabname
    and tabclass eq 'TRANSP'.          
* TRANSP ----&amp;gt; TRANSPARENT TABLES.  
  
  r_tabname-sign = 'I'.
  r_tabname-option = 'EQ'.
  
  loop at itab_tabl.
    r_tabname-low = itab_tabl.
    append r_tabname.
  endloop.
  
  delete itab_main where not ( tabname in r_tabname ).
  
  loop at itab.
    write :  / itab-master , itab-tabname.
  endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above program when run the background has taken about 110 seconds (less than 2 minutes) for a system with 2540 ( Z* and Y* ) programs. which means that this report can also be run in the foreground. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do let me know if this has helped. And reward points as well...:-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2006 05:35:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271348#M150440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-23T05:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to Nested Loops ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271349#M150441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Anand.&lt;/P&gt;&lt;P&gt;The table name (D010TAB) has helped me a lot. Is there any table which contains the fields used in the ABAP Programs like D010TAB contains table names ????&lt;/P&gt;&lt;P&gt;Thank You very much once again. I will definitely reward you points ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2006 09:17:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271349#M150441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-23T09:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to Nested Loops ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271350#M150442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just  go  through transaction SE49..&lt;/P&gt;&lt;P&gt;ENTER THE  PROGRAM NAME OR TRANSACTION NAME  OR FUNCTION GROUP...&lt;/P&gt;&lt;P&gt;U CAN  FIND  OUT THE TABLE USED .&lt;/P&gt;&lt;P&gt;ALSO FIND  OUT  THE  QUEY REGARDING THAT PERTICULAR  TABLE...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2006 09:20:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271350#M150442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-23T09:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to Nested Loops ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271351#M150443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Reddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not easy to get the fields used in a program. I have tried it sometime back for one of my projects. You can, however, take a look at the following statements in ABAP - &lt;/P&gt;&lt;P&gt;1. SCAN&lt;/P&gt;&lt;P&gt;2. LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These statements are for internal use only. So, be careful while you're using them. The documentation for these keywords is avilable in the F1 Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, why do you need the fields information? What information about the fields do you need? Do you want to know all the fields which are declared with reference to some DDIC type?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2006 12:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-to-nested-loops/m-p/1271351#M150443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-23T12:46:14Z</dc:date>
    </item>
  </channel>
</rss>

