<?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: selection from BSEG table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738182#M1111697</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;Better check if you can have more fields in the selection screen, like bukrs, so that the searchign by the index will be partially achieved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Shobana k on Nov 5, 2008 12:31 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Nov 2008 11:31:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-05T11:31:24Z</dc:date>
    <item>
      <title>selection from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738172#M1111687</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;In one of my program i have to use selection from BSEG by using non key fields like anln1, hkont  etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My program run time taking too much time i.e 1.5 to 2hrs &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any criteria to reduce my run time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sateesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 11:13:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738172#M1111687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-03T11:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: selection from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738173#M1111688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;u have to use one of the key fields anyhow..&lt;/P&gt;&lt;P&gt;or u can do one more thing that is create the indexof the fields that u want to use as the key..&lt;/P&gt;&lt;P&gt;it will help in improving performance&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;palak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 11:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738173#M1111688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-03T11:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: selection from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738174#M1111689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;[Quickly Retrieving FI document Data from BSEG|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/7692] &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 11:28:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738174#M1111689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-03T11:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: selection from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738175#M1111690</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;Try retrieving all key fields from the bseg table and recommend for a secondary index with the field that use in your where clause. This should solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shobana.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2008 09:10:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738175#M1111690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-04T09:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: selection from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738176#M1111691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you don't have the key fields, you have to use other tables than BSEG for the selection. BSEG is cluster table, that (also) means there are no secondary keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to select G/L account (hkont as mentioned) wise you can use BSIS/BSAS, if asset wise you can check tables ANEP/ANEK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2008 09:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738176#M1111691</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-11-04T09:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: selection from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738177#M1111692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello sateesh kumar ,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;         If you want to increase your performance then avoid using the non key fields in the select statement.  And you can use the secondary index but it is not advisible from the basis point of view. they dont accept it. so try to use the key index in select statement and consult your basis team to use if it necessary then use secondary index.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 05:32:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738177#M1111692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T05:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: selection from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738178#M1111693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Eric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANEP/ANEK tables doent have field hkont ie GL account which is must for me &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way&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;sateesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 09:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738178#M1111693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T09:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: selection from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738179#M1111694</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;If you need a select by field hkont (so G/L account) use the table BSIS (open item) and BSAS (cleared item)  instead of BSEG, just Eric said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM BSAS WHERE BUKRS = BUKRS
                                          AND HKONT = HKONT.
   SELECT SINGLE * FROM BSEG WHERE BUKRS = BSAS-BUKRS
                                                          AND BELNR = BSAS-BELNR
                                                          AND GJAHR = BSAS-GJAHR
                                                          AND BUZEI  = BSAS-BUZEI.
         SELECT SINGLE * FROM BKPF WHERE BUKRS = BSAS-BUKRS
                                                               AND BELNR = BSAS-BELNR
                                                               AND GJAHR = BSAS-GJAH.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: max bianchi on Nov 5, 2008 11:03 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 10:03:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738179#M1111694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T10:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: selection from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738180#M1111695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as I told ANEK/ANEP is useful when you have asset number (anln1 - as mentioned in your  original question), if you have only G/L account number (hkont), than use BSIS/BSAS, otherwise just let me know what you have and what you need...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 10:06:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738180#M1111695</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-11-05T10:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: selection from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738181#M1111696</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 requiremnt is as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to bring back my fully and partially retired assets as materials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this i am using cdpos and cdhdr for find the corresponding changes in asset while retiring&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for above retired asset i need to find the net book value to valuate the material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my selection code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE wrbtr&lt;/P&gt;&lt;P&gt;  FROM bseg&lt;/P&gt;&lt;P&gt;  INTO w_wrbtr&lt;/P&gt;&lt;P&gt;  WHERE&lt;/P&gt;&lt;P&gt;  anln1 = so_anln1-low AND&lt;/P&gt;&lt;P&gt;  hkont = c_hkont      AND&lt;/P&gt;&lt;P&gt;  shkzg = 'S'.         "only for Debit amount&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;sateesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 10:22:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738181#M1111696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T10:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: selection from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738182#M1111697</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;Better check if you can have more fields in the selection screen, like bukrs, so that the searchign by the index will be partially achieved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Shobana k on Nov 5, 2008 12:31 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 11:31:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738182#M1111697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T11:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: selection from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738183#M1111698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BSEG is not a transparent table its a Cluster Table, its not a good idea to have a select query for BSEG, insted there are lots of FI function modules which can server your requirements which will be much more faster than this select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 13:04:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-from-bseg-table/m-p/4738183#M1111698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-06T13:04:51Z</dc:date>
    </item>
  </channel>
</rss>

