<?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: Function module for BSEG table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-bseg-table/m-p/5562823#M1269211</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;Even though there is some function module is available, even that could have the similar SELECT statement. I mean without SELECT command, you are not going to fetch any data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in your select, after sorting, delete the adjacent duplicates from the internal table.&lt;/P&gt;&lt;P&gt;Also if you are allowed, then create the SECONDARY INDEX for the required fields, if your program going to be used very frequently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santhosh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2009 10:43:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-18T10:43:48Z</dc:date>
    <item>
      <title>Function module for BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-bseg-table/m-p/5562820#M1269208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru's,&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;         budat&lt;/P&gt;&lt;P&gt;         monat&lt;/P&gt;&lt;P&gt;         waers&lt;/P&gt;&lt;P&gt;         awkey&lt;/P&gt;&lt;P&gt;    FROM bkpf&lt;/P&gt;&lt;P&gt;    INTO TABLE i_bkpf_data&lt;/P&gt;&lt;P&gt;    WHERE  bukrs EQ pa_bukrs AND&lt;/P&gt;&lt;P&gt;           budat IN so_budat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SORT i_bkpf_data BY bukrs belnr gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF i_bkpf_data[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;      SELECT bukrs belnr gjahr koart dmbtr wrbtr pswsl&lt;/P&gt;&lt;P&gt;             kokrs kostl hkont aufnr lifnr ebeln buzei shkzg&lt;/P&gt;&lt;P&gt;        FROM bseg&lt;/P&gt;&lt;P&gt;        INTO TABLE i_bseg_data&lt;/P&gt;&lt;P&gt;        FOR ALL ENTRIES IN i_bkpf_data&lt;/P&gt;&lt;P&gt;        WHERE  &lt;/P&gt;&lt;P&gt;                bukrs  EQ pa_bukrs AND&lt;/P&gt;&lt;P&gt;               belnr    EQ i_bkpf_data-belnr AND&lt;/P&gt;&lt;P&gt;               gjahr    EQ i_bkpf_data-gjahr AND&lt;/P&gt;&lt;P&gt;               kostl    IN so_kostl AND&lt;/P&gt;&lt;P&gt;               lifnr      IN so_lifnr AND&lt;/P&gt;&lt;P&gt;               hkont   IN so_hkont. &lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got performance issue on this Query..while accessing the data from BSEG table,its makes performance issue in my program so i want to improve performance of the program.i was analysed that BSEG table makes performance issue..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi..Anybody give the solution imporving this Query or give some function module for accessing BSEG table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note..I want to pass my selection inputs also into function module..i was seen some function module for BSEG,those are not satisfying the my inputs so those also making performance issue..&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;P.Senthil Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 09:50:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-bseg-table/m-p/5562820#M1269208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T09:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-bseg-table/m-p/5562821#M1269209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try these FMs&lt;/P&gt;&lt;P&gt;GET_ALL_BSEG&lt;/P&gt;&lt;P&gt;FAGL_GET_BSEG&lt;/P&gt;&lt;P&gt;FAGL_GET_ITEMS_BSEG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 10:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-bseg-table/m-p/5562821#M1269209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T10:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-bseg-table/m-p/5562822#M1269210</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;Use READ_BSEG function module by passing the required exporting parameters &lt;/P&gt;&lt;P&gt;with in a loop of BKPF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 10:43:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-bseg-table/m-p/5562822#M1269210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T10:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-bseg-table/m-p/5562823#M1269211</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;Even though there is some function module is available, even that could have the similar SELECT statement. I mean without SELECT command, you are not going to fetch any data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in your select, after sorting, delete the adjacent duplicates from the internal table.&lt;/P&gt;&lt;P&gt;Also if you are allowed, then create the SECONDARY INDEX for the required fields, if your program going to be used very frequently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santhosh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 10:43:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-bseg-table/m-p/5562823#M1269211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T10:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-bseg-table/m-p/5562824#M1269212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi senthil kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the coding looks good for table BSEG..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the time taking is in BKPF table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the any index available bukrs and budat field ..if ther try to force the index using index hints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 10:58:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-bseg-table/m-p/5562824#M1269212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T10:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-bseg-table/m-p/5562825#M1269213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN class="ita-kd-inputtools-div"&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="almost_half_cell"&gt;&lt;/P&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Hi Gayathri,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;more&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;illustrative examples&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;of&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;this&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;function module&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;yet?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Regards Rasim&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 08:08:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-bseg-table/m-p/5562825#M1269213</guid>
      <dc:creator>former_member216215</dc:creator>
      <dc:date>2014-02-04T08:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-bseg-table/m-p/5562826#M1269214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;About how to use&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;this function&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Does anyone have&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;an idea&lt;/SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;I've found it. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;call function 'FI_DOCUMENT_READ'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; i_awtyp = 'VBRK'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; i_awref = vbfa_tab-vbeln&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; i_awsys = vbrk-logsys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; i_bukrs = vbrk-bukrs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; i_gjahr = vbrk-gjahr&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; t_bkpf = xbkpf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; t_bseg = xbseg&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;wrong_input = 1&lt;/P&gt;&lt;P&gt;not_found = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN class="ita-kd-inputtools-div"&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="almost_half_cell"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;But&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;this is not enough&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;Best Regards Rasim.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 08:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-bseg-table/m-p/5562826#M1269214</guid>
      <dc:creator>former_member216215</dc:creator>
      <dc:date>2014-02-04T08:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-bseg-table/m-p/5562827#M1269215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please start your own question rather than taking over someone else's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 08:28:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-bseg-table/m-p/5562827#M1269215</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2014-02-04T08:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-bseg-table/m-p/5562828#M1269216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;I&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;asked&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;this question&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;by turning&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the subject&lt;/SPAN&gt;&lt;SPAN&gt;. &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;But&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;that&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;did not&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;help&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;Rasim.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 08:31:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-bseg-table/m-p/5562828#M1269216</guid>
      <dc:creator>former_member216215</dc:creator>
      <dc:date>2014-02-04T08:31:48Z</dc:date>
    </item>
  </channel>
</rss>

