<?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 entires... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entires/m-p/6431071#M1410994</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In debug I can see values for FINAL_ITAB-COMP_CODE = 'AADO'&lt;/P&gt;&lt;P&gt;and  FINAL_ITAB-TRANSACTION = 10000008 like that..but nothing is coming to IT_TRACT_Document....that's the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Dec 2009 21:08:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-03T21:08:33Z</dc:date>
    <item>
      <title>Using For all entires...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entires/m-p/6431069#M1410992</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 am getting data into final_itab but nothing is coming into IT_TRACT_DOCUMENT. May I know why?&lt;/P&gt;&lt;P&gt;This my code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at final_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      select  * from TRACT_DOCUMENT into corresponding fields of table IT_TRACT_DOCUMENT&lt;/P&gt;&lt;P&gt;       FOR ALL ENTRIES IN FINAL_ITAB&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             where ACREVERSALDATE = FINAL_ITAB-POSTINGDATE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                    WHERE TR_ACC_CODE = FINAL_ITAB-COMP_CODE&lt;/P&gt;&lt;P&gt;                    and DEAL_NUMBER = FINAL_ITAB-TRANSACTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      if not it_TRACT_DOCUMENT[] is initial.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      select * from TRACT_ACCITEM into corresponding fields of table IT_TRACT_ACCITEM&lt;/P&gt;&lt;P&gt;      FOR ALL ENTRIES IN it_TRACT_DOCUMENT&lt;/P&gt;&lt;P&gt;        where DOCUMENT_GUID = IT_TRACT_DOCUMENT-OS_GUID.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Moved to the correct forum&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Dec 3, 2009 4:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 20:34:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entires/m-p/6431069#M1410992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-03T20:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using For all entires...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entires/m-p/6431070#M1410993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I don't know what's in FINAL_ITAB, but my first guess would be that the values are initial.  Are these fields actually populated in FINAL_ITAB, and if so, can you pick a row and look into your second table with SE11 and find that data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 21:00:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entires/m-p/6431070#M1410993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-03T21:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using For all entires...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entires/m-p/6431071#M1410994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In debug I can see values for FINAL_ITAB-COMP_CODE = 'AADO'&lt;/P&gt;&lt;P&gt;and  FINAL_ITAB-TRANSACTION = 10000008 like that..but nothing is coming to IT_TRACT_Document....that's the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 21:08:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entires/m-p/6431071#M1410994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-03T21:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using For all entires...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entires/m-p/6431072#M1410995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One question, why are you using LOOP AT FINAL_ITAB when you are using for all entries.&lt;/P&gt;&lt;P&gt;second, when the the table FINAL_ITAB is not initial before using for all entries.&lt;/P&gt;&lt;P&gt;third, check the DB table actually has data that corresponds to the entries in FINAL_ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prasenjit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 21:23:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entires/m-p/6431072#M1410995</guid>
      <dc:creator>prasenjit_sharma</dc:creator>
      <dc:date>2009-12-03T21:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using For all entires...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entires/m-p/6431073#M1410996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tanvi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop - Endloop statement not required.Please check your logic again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my understanding , if table is initial then your select statements will not be executed .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should check this table for initial before use of for all entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understand it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2009 00:07:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entires/m-p/6431073#M1410996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-04T00:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using For all entires...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entires/m-p/6431074#M1410997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thanvi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make sure you have matching entries in database table TRACT_DOCUMENT. Also make sure that the data elements are the same for the fields and that the formatiing (i.e. leading zeros) is correct.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2009 02:38:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entires/m-p/6431074#M1410997</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-12-04T02:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using For all entires...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entires/m-p/6431075#M1410998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
if FINAL_ITAB[] is not initial.

sort FINAL_ITAB by COMP_CODE TRANSACTION.

select * from TRACT_DOCUMENT into 
corresponding fields of table IT_TRACT_DOCUMENT
FOR ALL ENTRIES IN FINAL_ITAB
WHERE TR_ACC_CODE = FINAL_ITAB-COMP_CODE
and DEAL_NUMBER = FINAL_ITAB-TRANSACTION.

if it_TRACT_DOCUMENT[] is not initial.

select * from TRACT_ACCITEM into 
corresponding fields of table IT_TRACT_ACCITEM
FOR ALL ENTRIES IN it_TRACT_DOCUMENT
where DOCUMENT_GUID = IT_TRACT_DOCUMENT-OS_GUID.

endif.

endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2009 04:59:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-for-all-entires/m-p/6431075#M1410998</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-12-04T04:59:08Z</dc:date>
    </item>
  </channel>
</rss>

