<?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: Read data from BSEG in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-bseg/m-p/6662497#M1446508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nayan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is tat ur internal table itab_bkpf might be empty. Check the internal table before using it in FOR ALL ENTRIES. Otherwise all database table entries are considered in the query.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
If itab_bkpf[] is not initial.

SELECT bukrs belnr augdt gjahr bschl dmbtr wrbtr sgtxt shkzg
INTO TABLE itab_bseg
FROM bseg FOR ALL ENTRIES IN itab_bkpf   " This internal table might be empty, so all records are considered in BSEG
WHERE belnr EQ itab_bkpf-belnr AND gjahr EQ itab_bkpf-gjahr AND koart EQ 'S' AND
bschl IN ('40','50') AND hkont IN ('0007100310','0007105800').

Endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Mar 2010 03:57:13 GMT</pubDate>
    <dc:creator>awin_prabhu</dc:creator>
    <dc:date>2010-03-11T03:57:13Z</dc:date>
    <item>
      <title>Read data from BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-bseg/m-p/6662495#M1446506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to fatch data from bseg table for perticular periods like 01/04/2009-31/03/2010.&lt;/P&gt;&lt;P&gt;Now Bseg table is a cluster table. Data access from this table downs the perfomance of the report.&lt;/P&gt;&lt;P&gt;at least i have 10000 document no which data i need to fatch from bseg. &lt;/P&gt;&lt;P&gt;IS it any possible way to fatch data from BSEG table easily and fast?&lt;/P&gt;&lt;P&gt;How abt use a field symbols ? what is field symbols ? How can i create it?&lt;/P&gt;&lt;P&gt;How abt define internal table as define as std. table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please guide me to possible advance or std. ways to fatch data from bseg table. Currently it is giving time out error or took more then 30 min. Time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that i had already used " select into table " syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For E.G.&lt;/P&gt;&lt;P&gt;    SELECT bukrs belnr augdt gjahr bschl dmbtr wrbtr sgtxt shkzg&lt;/P&gt;&lt;P&gt;    INTO   TABLE itab_bseg&lt;/P&gt;&lt;P&gt;    FROM   bseg FOR ALL ENTRIES IN itab_bkpf&lt;/P&gt;&lt;P&gt;    WHERE  belnr EQ itab_bkpf-belnr AND gjahr EQ itab_bkpf-gjahr AND koart EQ 'S' AND&lt;/P&gt;&lt;P&gt;           bschl IN ('40','50') AND hkont IN ('0007100310','0007105800'). "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I donot want to use SELECT-ENDSELECT and SELECT INTO statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to solve this problem. to make report very fast. &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;Nayan Lad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 03:47:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-bseg/m-p/6662495#M1446506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-11T03:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-bseg/m-p/6662496#M1446507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello  Nayan Lad ,&lt;/P&gt;&lt;P&gt;You can very vell get the data that is in BSEG in other tables quering on BSEG as its a cluster table and has huge fields  is avoided always You can very well relate it from BKPF-&lt;/P&gt;&lt;P&gt;The tables are as follows&lt;/P&gt;&lt;P&gt;BSAD                : Accounting: Secondary index for customers (cleared items))&lt;/P&gt;&lt;P&gt;BSID            : (Accounting: Secondary index for customers)&lt;/P&gt;&lt;P&gt;BSAS      :(Accounting: Secondary index for G/L accounts (cleared items))&lt;/P&gt;&lt;P&gt;BSIS :  OPEN items &lt;/P&gt;&lt;P&gt;BSIK :(Accounting: Secondary index for vendors oPEN ITEMS)&lt;/P&gt;&lt;P&gt;BSAK : (Accounting: Secondary index for vendors (cleared items))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anup Deshmukh on Mar 11, 2010 4:58 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 03:57:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-bseg/m-p/6662496#M1446507</guid>
      <dc:creator>anup_deshmukh4</dc:creator>
      <dc:date>2010-03-11T03:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-bseg/m-p/6662497#M1446508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nayan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is tat ur internal table itab_bkpf might be empty. Check the internal table before using it in FOR ALL ENTRIES. Otherwise all database table entries are considered in the query.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
If itab_bkpf[] is not initial.

SELECT bukrs belnr augdt gjahr bschl dmbtr wrbtr sgtxt shkzg
INTO TABLE itab_bseg
FROM bseg FOR ALL ENTRIES IN itab_bkpf   " This internal table might be empty, so all records are considered in BSEG
WHERE belnr EQ itab_bkpf-belnr AND gjahr EQ itab_bkpf-gjahr AND koart EQ 'S' AND
bschl IN ('40','50') AND hkont IN ('0007100310','0007105800').

Endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 03:57:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-bseg/m-p/6662497#M1446508</guid>
      <dc:creator>awin_prabhu</dc:creator>
      <dc:date>2010-03-11T03:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-bseg/m-p/6662498#M1446509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had already used &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bkpf, bsad,bsid, bsak, bsik table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also put condition of itab_bkpf[] is not initial .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See i want better way. I have to use this BSEG table for actual antry with perticular posting keys and document type.&lt;/P&gt;&lt;P&gt;This is for anual audit report so BSEG table i need must.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IS it any possible way to fatch data from BSEG table easily and fast?&lt;/P&gt;&lt;P&gt;How abt use a field symbols ? what is field symbols ? How can i create it?&lt;/P&gt;&lt;P&gt;How abt define internal table as define as std. table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please guide me to possible advance or std. ways to fatch data from bseg table. Currently it is giving time out error or took more then 30 min. Time.&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;&lt;/P&gt;&lt;P&gt;Nayan Lad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 04:08:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-bseg/m-p/6662498#M1446509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-11T04:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-bseg/m-p/6662499#M1446510</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;You can use &lt;STRONG&gt;package size in select statement&lt;/STRONG&gt;.press f1 on select statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For fileld symbol within loop you can use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Field Symbol|http://help.sap.com/SAPhelp_nw04/helpdata/en/fc/eb3860358411d1829f0000e829fbfe/content.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 04:20:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-bseg/m-p/6662499#M1446510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-11T04:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-bseg/m-p/6662500#M1446511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read the blog : Quickly Retrieving FI document Data from BSEG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/rob.burbank/blog/2007/11/12/quickly-retrieving-fi-document-data-from-bseg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chinni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Tirumula Rao Chinni on Mar 11, 2010 10:04 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 04:31:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-from-bseg/m-p/6662500#M1446511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-11T04:31:20Z</dc:date>
    </item>
  </channel>
</rss>

