<?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: Select data from BKPF for a date range in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239295#M141661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;In the selection screen enter the date from and to in the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will retrieve all the results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Mar 2006 03:54:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-15T03:54:03Z</dc:date>
    <item>
      <title>Select data from BKPF for a date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239288#M141654</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; I want to select data from BKPF depending upon the date range given in the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;" Selection Criteria&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : S_DATE FOR SY-DATUM OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF BLOCK B1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I do that??.. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;SB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 03:41:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239288#M141654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T03:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select data from BKPF for a date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239289#M141655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: BKPF.
DATA itab LIKE TABLE OF bkpf WITH HEADER LINE.
SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
" Selection Criteria
SELECT-OPTIONS : S_DATE FOR &amp;lt;b&amp;gt;BKPF-BLDAT&amp;lt;/b&amp;gt; OBLIGATORY.
SELECTION-SCREEN : END OF BLOCK B1.

&amp;lt;b&amp;gt;SELECT *
 FROM BKPF
 INTO TABLE itab
 WHERE BLDAT IN s_date.&amp;lt;/b&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 03:44:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239289#M141655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T03:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select data from BKPF for a date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239290#M141656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI SB,&lt;/P&gt;&lt;P&gt;     Create Indexes and select the data ...&lt;/P&gt;&lt;P&gt;i.e,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;" Selection Criteria&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT-OPTIONS : S_DATE FOR BKPF-BLDAT OBLIGATORY.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF BLOCK B1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;    SELECT * FROM BKPF WHERE BLDAT IN s_date.&amp;lt;/b&amp;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;Santosh P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Santosh Kumar Patha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 03:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239290#M141656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T03:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Select data from BKPF for a date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239291#M141657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi SB,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : itab like table of bkpf with header line.
  tables :bkpf.
 SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE  TEXT-001.
" Selection Criteria
SELECT-OPTIONS : S_DATE FOR bkpf-bldat OBLIGATORY.
SELECTION-SCREEN : END OF BLOCK B1.
 
 select * from bkbf 
  into table itab 
  where bldat in s_date.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 03:49:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239291#M141657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T03:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Select data from BKPF for a date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239292#M141658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SB,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santhosh is right.. An INDEX will be very useful if you are not using the key fields BUKRS,BELNR &amp;amp; GJAHR in the WHERE clause and just want to SELECT by BLDAT (Document date) or BUDAT (Posting Date).&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;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 03:50:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239292#M141658</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-03-15T03:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Select data from BKPF for a date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239293#M141659</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; But will this selection select all the dates in the "from" date "to" date &amp;amp; between date ranges also ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;SB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 03:51:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239293#M141659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T03:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Select data from BKPF for a date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239294#M141660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 03:52:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239294#M141660</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-03-15T03:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select data from BKPF for a date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239295#M141661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;In the selection screen enter the date from and to in the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will retrieve all the results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 03:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239295#M141661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T03:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select data from BKPF for a date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239296#M141662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sb,&lt;/P&gt;&lt;P&gt;  yes..it will select ..&lt;/P&gt;&lt;P&gt; if you want to select only either one of them ..&lt;/P&gt;&lt;P&gt; use &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select * from bkpf into table itab where bldat eq s_date-low.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; simliarly s_date-high.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 03:55:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239296#M141662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T03:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select data from BKPF for a date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239297#M141663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Declare internal table of BKPF.&lt;/P&gt;&lt;P&gt;In select statement compare the date in select-option with BUDAT .&lt;/P&gt;&lt;P&gt;select * from BKPF into where budat in S_date.&lt;/P&gt;&lt;P&gt;I think this will help u out....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sreevani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 03:56:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239297#M141663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T03:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select data from BKPF for a date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239298#M141664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 04:01:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239298#M141664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T04:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Select data from BKPF for a date range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239299#M141665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's no need to create an index. There already is one on budat. If you construct your select properly, you'll be able to use it.&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 14:13:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-bkpf-for-a-date-range/m-p/1239299#M141665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T14:13:02Z</dc:date>
    </item>
  </channel>
</rss>

