<?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: Using for all entries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246451#M1212194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mariano,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF st_r,
             a LIKE table-a,
             b LIKE table-b,
             c LIKE table-c,
             d LIKE table-d,
             e LIKE table-e,
             END OF st_r,
 
data t1 type table of st_r.
data t2 type table of st_r.
...
 
select a b c 
   from database
   into corresponding fields table of t1
   where condition
 
select d e
   into corresponding fields table of t2
   from cluster_table
   for all entries in t1
   where condition

loop at t1 into st_r.
modify t2 index idx from st_r 
                     transporting a b c .
add 1 to idx.
 endloop. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mdi.Deeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2009 05:47:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-12T05:47:42Z</dc:date>
    <item>
      <title>Using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246438#M1212181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF st_r,
             a LIKE table-a,
             b LIKE table-b,
             c LIKE table-c,
             d LIKE table-d,
             e LIKE table-e,
             END OF st_r,

data t1 type table of st_r.
data t2 type table of st_r.
...

select a b c 
   from database
   into corresponding fields table of t1
   where condition

select d e
   into corresponding fields table of t2
   from cluster_table
   for all entries in t1
   where condition&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i want to do, is that the values of the field a b and c be  copied to the table t2, because now i only get the fields d and e only.&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Feb 11, 2009 2:51 PM - fixed formatting&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:18:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246438#M1212181</guid>
      <dc:creator>mariano_gallicchio2</dc:creator>
      <dc:date>2009-02-11T13:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246439#M1212182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;see this example.&lt;/P&gt;&lt;P&gt;TYPES :&lt;/P&gt;&lt;P&gt;  BEGIN OF type_s_lvbak,&lt;/P&gt;&lt;P&gt;    vbeln  TYPE vbak-vbeln,            " Sales Document Number&lt;/P&gt;&lt;P&gt;    vkorg  TYPE vbak-vkorg,            " Sales Organisation&lt;/P&gt;&lt;P&gt;    vtweg  TYPE vbak-vtweg,            " Distribution channel&lt;/P&gt;&lt;P&gt;    spart  TYPE vbak-spart,            " Division&lt;/P&gt;&lt;P&gt;    posnr  TYPE vbap-posnr,            " Sales document Item Number&lt;/P&gt;&lt;P&gt;    matnr  TYPE vbap-matnr,            " Material&lt;/P&gt;&lt;P&gt;  END OF type_s_lvbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :&lt;/P&gt;&lt;P&gt;  fs_lvbak TYPE type_s_lvbak,          " Field String to hold vbak&lt;/P&gt;&lt;P&gt;                                       " structure&lt;/P&gt;&lt;P&gt;  w_vbeln  LIKE vbak-vbeln.            " Holds sales document number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :&lt;/P&gt;&lt;P&gt;  t_lvbak LIKE&lt;/P&gt;&lt;P&gt; STANDARD TABLE&lt;/P&gt;&lt;P&gt;       OF fs_lvbak.                    " Internal table to hold vbak&lt;/P&gt;&lt;P&gt;                                       " records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbeln                           " Sales Document Number&lt;/P&gt;&lt;P&gt;       vkorg                           " Sales Organisation&lt;/P&gt;&lt;P&gt;       vtweg                           " Distribution channel&lt;/P&gt;&lt;P&gt;       spart                           " Division&lt;/P&gt;&lt;P&gt;  FROM vbak&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE t_lvbak&lt;/P&gt;&lt;P&gt;  WHERE auart EQ p_sdtype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;        vbeln                          " Sales Document Number&lt;/P&gt;&lt;P&gt;        posnr                          " Sales document Item Number&lt;/P&gt;&lt;P&gt;        matnr                          " Material&lt;/P&gt;&lt;P&gt;  FROM vbap&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF fs_lvbak&lt;/P&gt;&lt;P&gt;  FOR ALL ENTRIES IN t_lvbak&lt;/P&gt;&lt;P&gt;  WHERE vbeln EQ t_lvbak-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND fs_lvbak TO t_lvbak.&lt;/P&gt;&lt;P&gt;  CLEAR fs_lvbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:22:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246439#M1212182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T13:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246440#M1212183</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;Create a 3rd internal table with structure same as t1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move all fileds in t3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t3-a = t1-a.&lt;/P&gt;&lt;P&gt;t3-b = t1-b.&lt;/P&gt;&lt;P&gt;t3-c = t1-c.&lt;/P&gt;&lt;P&gt;t3-d = t2-d.&lt;/P&gt;&lt;P&gt;t3-e  = t2-e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this would be better for the performance too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps.&lt;/P&gt;&lt;P&gt;thanx.&lt;/P&gt;&lt;P&gt;Pritha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pritha Agrawal on Feb 11, 2009 6:54 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:23:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246440#M1212183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T13:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246441#M1212184</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 think we can move the contents of one table to another by move statement as the structure is the same . Later you can run the second select statement&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Viquar Iqbal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:25:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246441#M1212184</guid>
      <dc:creator>viquar_iqbal</dc:creator>
      <dc:date>2009-02-11T13:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246442#M1212185</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;apply t2 = t1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or move t1 to t2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:26:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246442#M1212185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T13:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246443#M1212186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at t1.&lt;/P&gt;&lt;P&gt;read table t2 index v_index.&lt;/P&gt;&lt;P&gt;t2-a = t1-a.&lt;/P&gt;&lt;P&gt;t2-b = t2-b.&lt;/P&gt;&lt;P&gt;t2-c = t2-c.&lt;/P&gt;&lt;P&gt;modify t2.&lt;/P&gt;&lt;P&gt;vindex = vindex + 1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:27:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246443#M1212186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T13:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246444#M1212187</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 think first u get all entries in tab1 and tab2 by select statement with ur required condition.&lt;/P&gt;&lt;P&gt;then loop at tab2 and in loop read tab1 and get the fields which u want and then modify the tab2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:27:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246444#M1212187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T13:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246445#M1212188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've heard that driver and result table can be the same since 6.10, so try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select d e&lt;/P&gt;&lt;P&gt;into corresponding fields of table &lt;STRONG&gt;t1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;from cluster_table&lt;/P&gt;&lt;P&gt;for all entries in &lt;STRONG&gt;t1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;where condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and please tell us if it works &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:29:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246445#M1212188</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-02-11T13:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246446#M1212189</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;do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move three fields a,b,c from itab1 to itab2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move two fields d,e from itab1 to itab3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append itab2.&lt;/P&gt;&lt;P&gt;append itab3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now itab2 will have a,b,c and itab3 will have d and e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:32:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246446#M1212189</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2009-02-11T13:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246447#M1212190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You try this code ---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at t1 into field_string.
MODIFY t2  INDEX sy-tabix  FROM  field_string  TRANSPORTING  a b c.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a ,b and c are key fields the above  will not work and for that you have to declare table t2 differently means you need to define that  key as &lt;STRONG&gt;TABLE  KEY&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pinaki Mukherjee on Feb 11, 2009 2:46 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246447#M1212190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T13:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246448#M1212191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In the query &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select d e&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;into corresponding fields table of t2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from cluster_table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for all entries in t1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where condition&lt;/STRONG&gt;  you will be having atleast one common field with int tab t2.&lt;/P&gt;&lt;P&gt;ie. for example say 'a' is the common field, so in your query you will be having&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;...
for all entries in t1
where a = t1-a...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore you can have your second query as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select a d e
into corresponding fields table of t2
from cluster_table
for all entries in t1
where a = t1-a ... "on the assumption that a is the common field
                         "Now t2 contains field a also &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can have this logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at t2 into wa_t2.
read table t1 into wa_t1 key a = wa_t2-a.
"Move only b and c as a is ther already
wa_t2-b = wa_t1-b.
wa_t2-c = wa_t1-c.
modify t2 from wa_t2 transporting b c.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:46:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246448#M1212191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T13:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246449#M1212192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Instead of using two different select queries use &lt;STRONG&gt;inner join&lt;/STRONG&gt; to fetch the data and create an internal table with all the fields you want in it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:57:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246449#M1212192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T13:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246450#M1212193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would be nice, but "cluster_table" prevents that.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:59:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246450#M1212193</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-02-11T13:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using for all entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246451#M1212194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mariano,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF st_r,
             a LIKE table-a,
             b LIKE table-b,
             c LIKE table-c,
             d LIKE table-d,
             e LIKE table-e,
             END OF st_r,
 
data t1 type table of st_r.
data t2 type table of st_r.
...
 
select a b c 
   from database
   into corresponding fields table of t1
   where condition
 
select d e
   into corresponding fields table of t2
   from cluster_table
   for all entries in t1
   where condition

loop at t1 into st_r.
modify t2 index idx from st_r 
                     transporting a b c .
add 1 to idx.
 endloop. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mdi.Deeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 05:47:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entries/m-p/5246451#M1212194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T05:47:42Z</dc:date>
    </item>
  </channel>
</rss>

