<?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: how to write logic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-logic/m-p/3303155#M790972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neeru&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to fetch the data in packages using the OPEN CUROSOR, FETCH and CLOSE CURSOR statements. By that you can limit your search list. This will have more DB hits but less data transfer. Or other option would be search for alternative search path by which you can use the primary index of your DB table i.e. LAUFD and LAUFI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ranganath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2008 04:30:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-23T04:30:44Z</dc:date>
    <item>
      <title>how to write logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-logic/m-p/3303154#M790971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Experts..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam developing a report.&lt;/P&gt;&lt;P&gt;i need to get the data from REGUP basedon BKPF.&lt;/P&gt;&lt;P&gt;ihave writeen logic like this&lt;/P&gt;&lt;P&gt;SORT I_BKPF BY BUKRS BELNR GJAHR.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  IF NOT I_BKPF IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT LAUFD&lt;/P&gt;&lt;P&gt;           XVORL&lt;/P&gt;&lt;P&gt;           ZBUKR&lt;/P&gt;&lt;P&gt;           LIFNR&lt;/P&gt;&lt;P&gt;           KUNNR&lt;/P&gt;&lt;P&gt;           VBLNR&lt;/P&gt;&lt;P&gt;           BUKRS&lt;/P&gt;&lt;P&gt;           BELNR&lt;/P&gt;&lt;P&gt;           GJAHR&lt;/P&gt;&lt;P&gt;           BUZEI&lt;/P&gt;&lt;P&gt;           ZLSCH&lt;/P&gt;&lt;P&gt;           WAERS&lt;/P&gt;&lt;P&gt;           XBLNR&lt;/P&gt;&lt;P&gt;           BLART&lt;/P&gt;&lt;P&gt;           BUDAT&lt;/P&gt;&lt;P&gt;           BLDAT&lt;/P&gt;&lt;P&gt;           HKONT&lt;/P&gt;&lt;P&gt;           SAKNR&lt;/P&gt;&lt;P&gt;           SHKZG&lt;/P&gt;&lt;P&gt;           DMBTR&lt;/P&gt;&lt;P&gt;           WRBTR&lt;/P&gt;&lt;P&gt;           MWSTS&lt;/P&gt;&lt;P&gt;           WMWST&lt;/P&gt;&lt;P&gt;           SGTXT&lt;/P&gt;&lt;P&gt;           ZTERM&lt;/P&gt;&lt;P&gt;           WSKTO&lt;/P&gt;&lt;P&gt;           AUFNR&lt;/P&gt;&lt;P&gt;           EBELN&lt;/P&gt;&lt;P&gt;            FROM REGUP into table i_REGUP&lt;/P&gt;&lt;P&gt;          FOR ALL ENTRIES IN I_BKPF&lt;/P&gt;&lt;P&gt;            WHERE BUKRS = I_BKPF-BUKRS AND&lt;/P&gt;&lt;P&gt;                  BELNR = I_BKPF-BELNR AND&lt;/P&gt;&lt;P&gt;                  GJAHR = I_BKPF-GJAHR AND&lt;/P&gt;&lt;P&gt;                  XVORL NE 'X' AND&lt;/P&gt;&lt;P&gt;                  LIFNR IN S_LIFNR.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here BKPF contatain morethan 1 lkhs entries.&lt;/P&gt;&lt;P&gt;this query is taking lot time because REGUP is cluster table.&lt;/P&gt;&lt;P&gt;tell me is there any alternative to FOR ALL ENTRIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regrards&lt;/P&gt;&lt;P&gt;niru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 23:06:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-logic/m-p/3303154#M790971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T23:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to write logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-logic/m-p/3303155#M790972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neeru&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to fetch the data in packages using the OPEN CUROSOR, FETCH and CLOSE CURSOR statements. By that you can limit your search list. This will have more DB hits but less data transfer. Or other option would be search for alternative search path by which you can use the primary index of your DB table i.e. LAUFD and LAUFI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ranganath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 04:30:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-logic/m-p/3303155#M790972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-23T04:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to write logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-logic/m-p/3303156#M790973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neeru&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT I_BKPF BY BUKRS BELNR GJAHR.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;IF NOT I_BKPF&lt;STRONG&gt;[ ]&lt;/STRONG&gt; IS INITIAL. &amp;lt;&amp;lt;&amp;lt;&amp;lt;[ ] is missing.. check it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT LAUFD&lt;/P&gt;&lt;P&gt;XVORL&lt;/P&gt;&lt;P&gt;ZBUKR&lt;/P&gt;&lt;P&gt;LIFNR&lt;/P&gt;&lt;P&gt;KUNNR&lt;/P&gt;&lt;P&gt;VBLNR&lt;/P&gt;&lt;P&gt;BUKRS&lt;/P&gt;&lt;P&gt;BELNR&lt;/P&gt;&lt;P&gt;GJAHR&lt;/P&gt;&lt;P&gt;BUZEI&lt;/P&gt;&lt;P&gt;ZLSCH&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 04:40:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-logic/m-p/3303156#M790973</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-01-23T04:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to write logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-logic/m-p/3303157#M790974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neeru&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also generated unique records in your internal table I_BKPF of BUKRS, BELNR and GJAHR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ranganath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 04:44:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-logic/m-p/3303157#M790974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-23T04:44:40Z</dc:date>
    </item>
  </channel>
</rss>

