<?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 fetching records from vbfa table : in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-records-from-vbfa-table/m-p/2789690#M650704</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to fetch the delivery docs correponding to the billing docs&lt;/P&gt;&lt;P&gt;from table vbfa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code IS LIKE THIS :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_bill_list table contains the invoice nos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select distinct&lt;/P&gt;&lt;P&gt;vbelv&lt;/P&gt;&lt;P&gt;vbeln&lt;/P&gt;&lt;P&gt;into table t_bill_del_data&lt;/P&gt;&lt;P&gt;from vbfa&lt;/P&gt;&lt;P&gt;for all entries in t_bill_list&lt;/P&gt;&lt;P&gt;where vbeln eq t_bill_list-vbeln&lt;/P&gt;&lt;P&gt;and vbtyp_v = 'J'&lt;/P&gt;&lt;P&gt;and vbtyp_n = 'M'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above query was taking time so i changed that to --&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code 2)&lt;/P&gt;&lt;P&gt;loop at t_bill_list into wa_bill_list.&lt;/P&gt;&lt;P&gt;select single&lt;/P&gt;&lt;P&gt;vbelv&lt;/P&gt;&lt;P&gt;vbeln&lt;/P&gt;&lt;P&gt;into wa_bill_del_data&lt;/P&gt;&lt;P&gt;from vbfa&lt;/P&gt;&lt;P&gt;where vbeln eq wa_bill_list-vbeln&lt;/P&gt;&lt;P&gt;and vbtyp_v = 'J'&lt;/P&gt;&lt;P&gt;and vbtyp_n = 'M'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;append wa_bill_del_data to t_bill_del_data.&lt;/P&gt;&lt;P&gt;clear wa_bill_del_data.&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;&lt;/P&gt;&lt;P&gt;both the queries have poor performance in quality system because of large amount of data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other table other than vbfa?&lt;/P&gt;&lt;P&gt;Or how should i fetch the records?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;Madhuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Sep 2007 09:42:02 GMT</pubDate>
    <dc:creator>Madhurivs23</dc:creator>
    <dc:date>2007-09-16T09:42:02Z</dc:date>
    <item>
      <title>fetching records from vbfa table :</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-records-from-vbfa-table/m-p/2789690#M650704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to fetch the delivery docs correponding to the billing docs&lt;/P&gt;&lt;P&gt;from table vbfa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code IS LIKE THIS :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_bill_list table contains the invoice nos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select distinct&lt;/P&gt;&lt;P&gt;vbelv&lt;/P&gt;&lt;P&gt;vbeln&lt;/P&gt;&lt;P&gt;into table t_bill_del_data&lt;/P&gt;&lt;P&gt;from vbfa&lt;/P&gt;&lt;P&gt;for all entries in t_bill_list&lt;/P&gt;&lt;P&gt;where vbeln eq t_bill_list-vbeln&lt;/P&gt;&lt;P&gt;and vbtyp_v = 'J'&lt;/P&gt;&lt;P&gt;and vbtyp_n = 'M'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above query was taking time so i changed that to --&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code 2)&lt;/P&gt;&lt;P&gt;loop at t_bill_list into wa_bill_list.&lt;/P&gt;&lt;P&gt;select single&lt;/P&gt;&lt;P&gt;vbelv&lt;/P&gt;&lt;P&gt;vbeln&lt;/P&gt;&lt;P&gt;into wa_bill_del_data&lt;/P&gt;&lt;P&gt;from vbfa&lt;/P&gt;&lt;P&gt;where vbeln eq wa_bill_list-vbeln&lt;/P&gt;&lt;P&gt;and vbtyp_v = 'J'&lt;/P&gt;&lt;P&gt;and vbtyp_n = 'M'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;append wa_bill_del_data to t_bill_del_data.&lt;/P&gt;&lt;P&gt;clear wa_bill_del_data.&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;&lt;/P&gt;&lt;P&gt;both the queries have poor performance in quality system because of large amount of data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other table other than vbfa?&lt;/P&gt;&lt;P&gt;Or how should i fetch the records?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;Madhuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Sep 2007 09:42:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-records-from-vbfa-table/m-p/2789690#M650704</guid>
      <dc:creator>Madhurivs23</dc:creator>
      <dc:date>2007-09-16T09:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: fetching records from vbfa table :</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-records-from-vbfa-table/m-p/2789691#M650705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if not t_bill_list[] is initial.&lt;/P&gt;&lt;P&gt;sort t_bill_list by vbeln.&lt;/P&gt;&lt;P&gt;select vbelv&lt;/P&gt;&lt;P&gt;          vbeln&lt;/P&gt;&lt;P&gt;into table t_bill_del_data&lt;/P&gt;&lt;P&gt;from vbfa&lt;/P&gt;&lt;P&gt;for all entries in t_bill_list&lt;/P&gt;&lt;P&gt;where vbeln eq t_bill_list-vbeln&lt;/P&gt;&lt;P&gt;and vbtyp_n = 'M'&lt;/P&gt;&lt;P&gt;and vbtyp_v = 'J'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Sep 2007 09:52:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-records-from-vbfa-table/m-p/2789691#M650705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-16T09:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: fetching records from vbfa table :</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-records-from-vbfa-table/m-p/2789692#M650706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prashant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;My problem got solved. i am fetching the records from the vbrp table instead of vbfa table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the notes I referred are  :191492,187906,185530.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically, the query which i have written was giving 100% good performance in development server becoz the data was less. but was not at all running in Quality becoz of the large amount of data.so i used the table vbrp where i can get the invoice and delivery no link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Madhuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 02:45:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-records-from-vbfa-table/m-p/2789692#M650706</guid>
      <dc:creator>Madhurivs23</dc:creator>
      <dc:date>2007-09-17T02:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: fetching records from vbfa table :</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-records-from-vbfa-table/m-p/2789693#M650707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;My problem got solved. i am fetching the records from the vbrp table instead of vbfa table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the notes I referred are  :191492,187906,185530.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically, the query which i have written was giving 100% good performance in development server becoz the data was less. but was not at all running in Quality becoz of the large amount of data.so i used the table vbrp where i can get the invoice and delivery no link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Madhuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 02:46:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-records-from-vbfa-table/m-p/2789693#M650707</guid>
      <dc:creator>Madhurivs23</dc:creator>
      <dc:date>2007-09-17T02:46:03Z</dc:date>
    </item>
  </channel>
</rss>

