<?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: Regarding Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/3699836#M890897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use the following FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) RE_READ_BSEG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) READ_BSEG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;based on your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Apr 2008 09:12:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-22T09:12:36Z</dc:date>
    <item>
      <title>Regarding Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/3699831#M890892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;It's Very Urgent.    Can any one tell me ,Is there any function module to retrive data(records) from Bseg Table.&lt;/P&gt;&lt;P&gt;Actullay I hav a report, In that  report ,it is mandatory to take records from bseg table 2 times.But IN production It is taking lot of time ,it has more than 7 lakh records in bseg table(in Production Server ).&lt;/P&gt;&lt;P&gt;So plz tell me is there any function module to retrive data from Bseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&amp;amp;regards,&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 11:07:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/3699831#M890892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T11:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/3699832#M890893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since performance will be an issue, maybe you would consider using the tables:&lt;/P&gt;&lt;P&gt;BSAD Accounting: Secondary Index for Customers (Cleared Items)&lt;/P&gt;&lt;P&gt;BSAK Accounting: Secondary Index for Vendors (Cleared Items)  &lt;/P&gt;&lt;P&gt;BSAS Accounting: Secondary Index for G/L Accounts (Cleared Items)&lt;/P&gt;&lt;P&gt;BSID Accounting: Secondary Index for Customers &lt;/P&gt;&lt;P&gt;BSIK Accounting: Secondary Index for Vendors     &lt;/P&gt;&lt;P&gt;BSIS Accounting: Secondary Index for G/L Accounts &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of BSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on what your program has to select (if you're only looking vor customers you can use BSID and BSAD etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are normal database tables, not clusters. Normally every record from BSEG can be found back in one of these 6 tables. And a program which selects data from these tables runs faster than from BSEG...&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;santhosh reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 11:12:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/3699832#M890893</guid>
      <dc:creator>SantoshKallem</dc:creator>
      <dc:date>2008-04-18T11:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/3699833#M890894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;700K? We have almost 100 million! &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;There is no function module for this. It might be a good idea if you post your BSEG select statements here so global support can have a look.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 11:13:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/3699833#M890894</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-04-18T11:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/3699834#M890895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF IBKPF1[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT BUKRS&lt;/P&gt;&lt;P&gt;           BELNR&lt;/P&gt;&lt;P&gt;           GJAHR&lt;/P&gt;&lt;P&gt;           AUGCP&lt;/P&gt;&lt;P&gt;           AUGBL&lt;/P&gt;&lt;P&gt;           SHKZG&lt;/P&gt;&lt;P&gt;           MWSKZ&lt;/P&gt;&lt;P&gt;           DMBTR&lt;/P&gt;&lt;P&gt;           KTOSL&lt;/P&gt;&lt;P&gt;           HKONT&lt;/P&gt;&lt;P&gt;           KUNNR&lt;/P&gt;&lt;P&gt;           LIFNR&lt;/P&gt;&lt;P&gt;           REBZG&lt;/P&gt;&lt;P&gt;           PRCTR&lt;/P&gt;&lt;P&gt;           BUPLA&lt;/P&gt;&lt;P&gt;      INTO TABLE IBSEG&lt;/P&gt;&lt;P&gt;      FROM BSEG&lt;/P&gt;&lt;P&gt;      FOR ALL ENTRIES IN IBKPF1&lt;/P&gt;&lt;P&gt;    WHERE  BUKRS EQ IBKPF1-BUKRS&lt;/P&gt;&lt;P&gt;      AND  BELNR EQ IBKPF1-BELNR&lt;/P&gt;&lt;P&gt;      AND  GJAHR EQ IBKPF1-GJAHR&lt;/P&gt;&lt;P&gt;      AND  HKONT IN S_HKONT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.                               &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF IBSEG1[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    IBSEG2[] = IBSEG1[].&lt;/P&gt;&lt;P&gt;  ENDIF.                                                   "  IF IBSEG1[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF IBSEG2[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT BUKRS&lt;/P&gt;&lt;P&gt;           BELNR&lt;/P&gt;&lt;P&gt;           GJAHR&lt;/P&gt;&lt;P&gt;           AUGCP&lt;/P&gt;&lt;P&gt;           AUGBL&lt;/P&gt;&lt;P&gt;           SHKZG&lt;/P&gt;&lt;P&gt;           MWSKZ&lt;/P&gt;&lt;P&gt;           DMBTR&lt;/P&gt;&lt;P&gt;           KTOSL&lt;/P&gt;&lt;P&gt;           HKONT&lt;/P&gt;&lt;P&gt;           KUNNR&lt;/P&gt;&lt;P&gt;           LIFNR&lt;/P&gt;&lt;P&gt;           REBZG&lt;/P&gt;&lt;P&gt;           PRCTR&lt;/P&gt;&lt;P&gt;           BUPLA&lt;/P&gt;&lt;P&gt;      INTO TABLE IBSEG5&lt;/P&gt;&lt;P&gt;      FROM BSEG&lt;/P&gt;&lt;P&gt;      FOR ALL ENTRIES IN IBSEG2&lt;/P&gt;&lt;P&gt;      WHERE BUKRS EQ IBSEG2-BUKRS&lt;/P&gt;&lt;P&gt;      AND   BELNR EQ IBSEG2-BELNR&lt;/P&gt;&lt;P&gt;      AND   GJAHR EQ IBSEG2-GJAHR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.                                        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 11:30:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/3699834#M890895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T11:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/3699835#M890896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is IBKPF sorted by BUKRS, BELNR, GJAHR?&lt;/P&gt;&lt;P&gt;If I understand the code correctly, you are first reading document items based on a selection of HKONT and whatever selection there was on BKPF, then you are reading ALL document items of the documents found without selection of HKONT. You could as well read ALL items first, then copy the result into a second table and delete everything that is not in S_HKONT. Only one trip to BSEG instead of two.&lt;/P&gt;&lt;P&gt;Maybe you can make use of tables BSIS and BSAS, as the first poster suggested, if S_HKONT has only few account numbers.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 11:50:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/3699835#M890896</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-04-18T11:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/3699836#M890897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use the following FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) RE_READ_BSEG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) READ_BSEG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;based on your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 09:12:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/3699836#M890897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T09:12:36Z</dc:date>
    </item>
  </channel>
</rss>

