<?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: Reading the Data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-data/m-p/1815608#M349270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;only performance problem,&lt;/P&gt;&lt;P&gt;&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;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Jan 2007 04:42:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-31T04:42:40Z</dc:date>
    <item>
      <title>Reading the Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-data/m-p/1815607#M349269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi every one ,&lt;/P&gt;&lt;P&gt;My Requirement is i have to fetch the data from  KONA table.&lt;/P&gt;&lt;P&gt;by comparing the fields  VKORG VTWEG SPART with header table .There i have to compare the Agreement type BOART with Ztable , if it is not there it should delete the invoice from header table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selecting the data from KONA table with SALES AREA and the Reading the Table with KEY KNUMA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this the scenario is ok , pls let me know any suggestions on this issue.&lt;/P&gt;&lt;P&gt;Its Urgent.&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;&lt;/P&gt;&lt;P&gt;report zcheck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : vbak.&lt;/P&gt;&lt;P&gt;types : begin of t_head,&lt;/P&gt;&lt;P&gt;vbeln type vbeln,&lt;/P&gt;&lt;P&gt;fkart type fkart,&lt;/P&gt;&lt;P&gt;vkorg type vkorg,&lt;/P&gt;&lt;P&gt;vtweg type vtweg,&lt;/P&gt;&lt;P&gt;spart type spart,&lt;/P&gt;&lt;P&gt;knuma type knuma,&lt;/P&gt;&lt;P&gt;end of t_head,&lt;/P&gt;&lt;P&gt;begin of t_kona ,&lt;/P&gt;&lt;P&gt;knuma type knuma,&lt;/P&gt;&lt;P&gt;boart type boart,&lt;/P&gt;&lt;P&gt;vkorg type vkorg,&lt;/P&gt;&lt;P&gt;vtweg type vtweg,&lt;/P&gt;&lt;P&gt;spart type spart,&lt;/P&gt;&lt;P&gt;end of t_kona.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : s_vbeln for vbak-vbeln.&lt;/P&gt;&lt;P&gt;data : i_head type table of t_head,&lt;/P&gt;&lt;P&gt;       w_head type t_head,i_kona type table of t_kona ,w_kona type t_kona,&lt;/P&gt;&lt;P&gt;       i_inv type  table of zsd_com_AG, w_inv type zsd_com_ag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln fkart vkorg vtweg spart  knuma from vbrk into table i_head&lt;/P&gt;&lt;P&gt;where vbeln in s_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from zsd_com_ag into table i_inv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select  knuma boart vkorg vtweg spart  from kona into table i_kona  for all entries in i_head&lt;/P&gt;&lt;P&gt;where vkorg = i_head-vkorg and vtweg = i_head-vtweg and spart = i_head-spart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;sort i_kona by vkorg.&lt;/P&gt;&lt;P&gt;sort i_inv by boart.&lt;/P&gt;&lt;P&gt;loop at i_head into w_head.&lt;/P&gt;&lt;P&gt;read table i_kona into w_kona with key knuma  = w_head-knuma.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;read table i_inv into w_inv with key boart = w_kona-boart binary search.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;delete table i_head from w_head.&lt;/P&gt;&lt;P&gt;endif.&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, 31 Jan 2007 04:37:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-data/m-p/1815607#M349269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-31T04:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-data/m-p/1815608#M349270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;only performance problem,&lt;/P&gt;&lt;P&gt;&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;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2007 04:42:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-data/m-p/1815608#M349270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-31T04:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-data/m-p/1815609#M349271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i modified ur code so that u will not have any performance issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zcheck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : vbak.&lt;/P&gt;&lt;P&gt;types : begin of t_head,&lt;/P&gt;&lt;P&gt;vbeln type vbeln,&lt;/P&gt;&lt;P&gt;fkart type fkart,&lt;/P&gt;&lt;P&gt;vkorg type vkorg,&lt;/P&gt;&lt;P&gt;vtweg type vtweg,&lt;/P&gt;&lt;P&gt;spart type spart,&lt;/P&gt;&lt;P&gt;knuma type knuma,&lt;/P&gt;&lt;P&gt;end of t_head,&lt;/P&gt;&lt;P&gt;begin of t_kona ,&lt;/P&gt;&lt;P&gt;knuma type knuma,&lt;/P&gt;&lt;P&gt;boart type boart,&lt;/P&gt;&lt;P&gt;vkorg type vkorg,&lt;/P&gt;&lt;P&gt;vtweg type vtweg,&lt;/P&gt;&lt;P&gt;spart type spart,&lt;/P&gt;&lt;P&gt;end of t_kona.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : s_vbeln for vbak-vbeln.&lt;/P&gt;&lt;P&gt;data : i_head type table of t_head,&lt;/P&gt;&lt;P&gt;w_head type t_head,i_kona type table of t_kona ,w_kona type t_kona,&lt;/P&gt;&lt;P&gt;i_inv type table of zsd_com_AG, w_inv type zsd_com_ag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln fkart vkorg vtweg spart knuma from vbrk into table i_head&lt;/P&gt;&lt;P&gt;where vbeln in s_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if i_head[] is not initial.&lt;/P&gt;&lt;P&gt;select knuma boart vkorg vtweg spart from kona into table i_kona for all entries in i_head&lt;/P&gt;&lt;P&gt;where vkorg = i_head-vkorg and vtweg = i_head-vtweg and spart = i_head-spart.&lt;/P&gt;&lt;P&gt;endif.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if i_kona[] is not initial.&lt;/P&gt;&lt;P&gt;select * from zsd_com_ag into table i_inv for all entries in i_kona where boart = i_kona-boart. &lt;/P&gt;&lt;P&gt;endif.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;sort i_kona by knuma.&lt;/P&gt;&lt;P&gt;sort i_inv by boart.&lt;/P&gt;&lt;P&gt;loop at i_head into w_head.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;read table i_kona into w_kona with key knuma = w_head-knuma binary search.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;read table i_inv into w_inv with key boart = w_kona-boart binary search.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;delete table i_head from w_head.&lt;/P&gt;&lt;P&gt;endif.&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, 31 Jan 2007 04:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-the-data/m-p/1815609#M349271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-31T04:52:02Z</dc:date>
    </item>
  </channel>
</rss>

