<?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: Regarding Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-query/m-p/2503012#M565675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,  &lt;/P&gt;&lt;P&gt;try to loop table it_final and read all the others tables after append into the new table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM LFA1&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IT_FINAL&lt;/P&gt;&lt;P&gt;WHERE KTOKK IN S_VGROUP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if not it_final[] is initial.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM LFM1&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IT_LFM1&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN IT_FINAL&lt;/P&gt;&lt;P&gt;WHERE LIFNR = IT_FINAL-LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM LFBW&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IT_LFBW&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN IT_FINAL&lt;/P&gt;&lt;P&gt;WHERE BUKRS IN S_VGROUP&lt;/P&gt;&lt;P&gt;AND LIFNR = IT_FINAL-LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM J_1IMOVEND&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IT_J_1IMOVEND&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN IT_FINAL&lt;/P&gt;&lt;P&gt;WHERE LIFNR = IT_FINAL-LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;loop at it_final.&lt;/P&gt;&lt;P&gt;read table IT_LFM1 with key LIFNR = IT_FINAL-LIFNR binary search.&lt;/P&gt;&lt;P&gt;it_final2-field = it_lfm1-field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table IT_LFBW ....&lt;/P&gt;&lt;P&gt;it_final2-field = ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append it_final2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jul 2007 11:36:32 GMT</pubDate>
    <dc:creator>rodrigo_paisante3</dc:creator>
    <dc:date>2007-07-13T11:36:32Z</dc:date>
    <item>
      <title>Regarding Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-query/m-p/2503010#M565673</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;&lt;/P&gt;&lt;P&gt; this is my code .....i have four internal table and want all fields of that four table into final internal table.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       SELECT * FROM LFA1&lt;/P&gt;&lt;P&gt;        INTO CORRESPONDING FIELDS OF TABLE IT_FINAL&lt;/P&gt;&lt;P&gt;         WHERE KTOKK IN  S_VGROUP.&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;       SELECT * FROM LFM1&lt;/P&gt;&lt;P&gt;        INTO CORRESPONDING FIELDS OF TABLE IT_LFM1&lt;/P&gt;&lt;P&gt;         FOR ALL ENTRIES IN IT_FINAL&lt;/P&gt;&lt;P&gt;         WHERE LIFNR = IT_FINAL-LIFNR.&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;&lt;/P&gt;&lt;P&gt;      SELECT * FROM LFBW&lt;/P&gt;&lt;P&gt;        INTO CORRESPONDING FIELDS OF TABLE IT_LFBW&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN IT_FINAL&lt;/P&gt;&lt;P&gt;           WHERE BUKRS IN S_VGROUP&lt;/P&gt;&lt;P&gt;           AND LIFNR = IT_FINAL-LIFNR.&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;      SELECT * FROM J_1IMOVEND&lt;/P&gt;&lt;P&gt;        INTO CORRESPONDING FIELDS OF TABLE IT_J_1IMOVEND&lt;/P&gt;&lt;P&gt;         FOR ALL ENTRIES IN IT_FINAL&lt;/P&gt;&lt;P&gt;          WHERE LIFNR = IT_FINAL-LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to collect data from  remaining three table into IT_FINAL table based on vendor no as i hv written in querry.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Imran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 11:22:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-query/m-p/2503010#M565673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T11:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-query/m-p/2503011#M565674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at it_final.&lt;/P&gt;&lt;P&gt;read table IT_LFM1 with key vendor no = it_final-vendor no.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;it_final-fld1 = it_lfm1-fld1.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;modify it_final.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;like this remaining two tables.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points If Helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 11:33:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-query/m-p/2503011#M565674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T11:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-query/m-p/2503012#M565675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,  &lt;/P&gt;&lt;P&gt;try to loop table it_final and read all the others tables after append into the new table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM LFA1&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IT_FINAL&lt;/P&gt;&lt;P&gt;WHERE KTOKK IN S_VGROUP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if not it_final[] is initial.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM LFM1&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IT_LFM1&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN IT_FINAL&lt;/P&gt;&lt;P&gt;WHERE LIFNR = IT_FINAL-LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM LFBW&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IT_LFBW&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN IT_FINAL&lt;/P&gt;&lt;P&gt;WHERE BUKRS IN S_VGROUP&lt;/P&gt;&lt;P&gt;AND LIFNR = IT_FINAL-LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM J_1IMOVEND&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IT_J_1IMOVEND&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN IT_FINAL&lt;/P&gt;&lt;P&gt;WHERE LIFNR = IT_FINAL-LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;loop at it_final.&lt;/P&gt;&lt;P&gt;read table IT_LFM1 with key LIFNR = IT_FINAL-LIFNR binary search.&lt;/P&gt;&lt;P&gt;it_final2-field = it_lfm1-field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table IT_LFBW ....&lt;/P&gt;&lt;P&gt;it_final2-field = ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append it_final2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 11:36:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-query/m-p/2503012#M565675</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2007-07-13T11:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-query/m-p/2503013#M565676</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;&lt;/P&gt;&lt;P&gt; thank for the reply.........&lt;/P&gt;&lt;P&gt; but i want all the fields not some fields...into final table.......there 55 fields in LFM1&lt;/P&gt;&lt;P&gt; i want all that fields in IT_FINAL....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;similarly form other two tables.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Imran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 12:36:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-query/m-p/2503013#M565676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T12:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-query/m-p/2503014#M565677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it for all the fields i did not get your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_final.&lt;/P&gt;&lt;P&gt;read table IT_LFM1 with key vendor no = it_final-vendor no.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;it_final-fld1 = it_lfm1-fld1.&lt;/P&gt;&lt;P&gt;it_final-fld2 = it_lfm1-fld2.&lt;/P&gt;&lt;P&gt;it_final-fld3 = it_lfm1-fld3.&lt;/P&gt;&lt;P&gt;like this for all the fields...&lt;/P&gt;&lt;P&gt;modify it_final.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;like this remaining two tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 12:53:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-query/m-p/2503014#M565677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T12:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-query/m-p/2503015#M565678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again, you need to do it each field, like the expert said below, because the structure of the tables arent the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 13:23:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-query/m-p/2503015#M565678</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2007-07-13T13:23:09Z</dc:date>
    </item>
  </channel>
</rss>

