<?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 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/3701931#M891310</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;thanks&amp;amp;regards,&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is My Select Statement&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;         BLDAT&lt;/P&gt;&lt;P&gt;         BUDAT&lt;/P&gt;&lt;P&gt;         XBLNR&lt;/P&gt;&lt;P&gt;         STBLG&lt;/P&gt;&lt;P&gt;    INTO TABLE IBKPF1&lt;/P&gt;&lt;P&gt;    FROM BKPF&lt;/P&gt;&lt;P&gt;  WHERE  BUKRS IN S_BUKRS&lt;/P&gt;&lt;P&gt;    AND  GJAHR EQ P_GJAHR&lt;/P&gt;&lt;P&gt;    AND  BELNR IN S_BELNR&lt;/P&gt;&lt;P&gt;    AND  BUDAT IN S_BUDAT&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  AND  BLART EQ 'SA'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    AND  XBLNR NE ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF IBKPF[] 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 IBSEG1&lt;/P&gt;&lt;P&gt;      FROM BSEG&lt;/P&gt;&lt;P&gt;      FOR ALL ENTRIES IN IBKPF&lt;/P&gt;&lt;P&gt;      WHERE  BUKRS EQ IBKPF-BUKRS&lt;/P&gt;&lt;P&gt;        AND  BELNR EQ IBKPF-BELNR&lt;/P&gt;&lt;P&gt;        AND  GJAHR EQ IBKPF-GJAHR&lt;/P&gt;&lt;P&gt;        AND  HKONT IN S_HKONT.&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 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.                                                   "  IF IBKPF1[] IS NOT INITIAL.&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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Apr 2008 11:36:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-18T11:36:38Z</dc:date>
    <item>
      <title>Regarding Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/3701931#M891310</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;thanks&amp;amp;regards,&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is My Select Statement&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;         BLDAT&lt;/P&gt;&lt;P&gt;         BUDAT&lt;/P&gt;&lt;P&gt;         XBLNR&lt;/P&gt;&lt;P&gt;         STBLG&lt;/P&gt;&lt;P&gt;    INTO TABLE IBKPF1&lt;/P&gt;&lt;P&gt;    FROM BKPF&lt;/P&gt;&lt;P&gt;  WHERE  BUKRS IN S_BUKRS&lt;/P&gt;&lt;P&gt;    AND  GJAHR EQ P_GJAHR&lt;/P&gt;&lt;P&gt;    AND  BELNR IN S_BELNR&lt;/P&gt;&lt;P&gt;    AND  BUDAT IN S_BUDAT&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  AND  BLART EQ 'SA'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    AND  XBLNR NE ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF IBKPF[] 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 IBSEG1&lt;/P&gt;&lt;P&gt;      FROM BSEG&lt;/P&gt;&lt;P&gt;      FOR ALL ENTRIES IN IBKPF&lt;/P&gt;&lt;P&gt;      WHERE  BUKRS EQ IBKPF-BUKRS&lt;/P&gt;&lt;P&gt;        AND  BELNR EQ IBKPF-BELNR&lt;/P&gt;&lt;P&gt;        AND  GJAHR EQ IBKPF-GJAHR&lt;/P&gt;&lt;P&gt;        AND  HKONT IN S_HKONT.&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 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.                                                   "  IF IBKPF1[] IS NOT INITIAL.&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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 11:36:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/3701931#M891310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T11:36:38Z</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/3701932#M891311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Check the  FM  READ_BSEG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 11:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/3701932#M891311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T11:46:42Z</dc:date>
    </item>
  </channel>
</rss>

