<?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: table data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-data/m-p/5645568#M1284763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi neetu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case you need to fire SELECT query in both tables and compare the contents and update the the disimilar data to your Z-table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort the table and add binary search to it for improving performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at i_ztable into wa.&lt;/P&gt;&lt;P&gt;read table it_glpca with key in wa binary search.&lt;/P&gt;&lt;P&gt;is sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;add record to a third internal table i_ztable_temp.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update ztable from table i_ztable_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will solve your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Suvendu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2009 06:32:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-05T06:32:45Z</dc:date>
    <item>
      <title>table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-data/m-p/5645566#M1284761</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 need to COPY standard report and add one of the field in zreport, the standard report fetches all the fields from GLPCA and displays the &lt;/P&gt;&lt;P&gt;same to output fields, so i cannt add new field in GLPCA as it is standard table &lt;/P&gt;&lt;P&gt;so ineed to copy the GLPCA table to ztable and add new field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while copying the table GLPCA i am not getting the entries(data) to ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so some of the experts in forum suggested to write the select query and fetch the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the zreport if i  write the select query all the data comes into the ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : t_itab TYPE TABLE OF GLPCA .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT  * FROM GLCPA INTO TABLE t_itab.   " Selecting records from GLCPA&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;INSERT ZTABLE FROM TABLE t_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if once the GLPCA table has updated how can i get the new values into my ztable or if the GLPCA has the same vaulues with out any update data , if i run the report 2 times &lt;/P&gt;&lt;P&gt;the select again fetches the same data and how i get the new field data.&lt;/P&gt;&lt;P&gt;new field is monat from BKPF.need to compare with GLPCA-DOCNR TO BKPF-BELNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 06:11:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-data/m-p/5645566#M1284761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T06:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-data/m-p/5645567#M1284762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why cant you continue here:&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="message" id="7474758"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 06:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-data/m-p/5645567#M1284762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T06:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-data/m-p/5645568#M1284763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi neetu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case you need to fire SELECT query in both tables and compare the contents and update the the disimilar data to your Z-table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort the table and add binary search to it for improving performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at i_ztable into wa.&lt;/P&gt;&lt;P&gt;read table it_glpca with key in wa binary search.&lt;/P&gt;&lt;P&gt;is sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;add record to a third internal table i_ztable_temp.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update ztable from table i_ztable_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will solve your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Suvendu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 06:32:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-data/m-p/5645568#M1284763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T06:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-data/m-p/5645569#M1284764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neethu,&lt;/P&gt;&lt;P&gt;Instead of creating  Ztable you can create view .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 07:25:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-data/m-p/5645569#M1284764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T07:25:42Z</dc:date>
    </item>
  </channel>
</rss>

