<?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: Selection screen range in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898652#M1481026</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;Do your work as a®s said. It's what I have said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank a®s for clearing code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Thien&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 May 2010 04:26:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-11T04:26:38Z</dc:date>
    <item>
      <title>Selection screen range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898648#M1481022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  In my selection screen iam selecting range of posting period(YYYYMM).i want to fetch the document no(belnr) from bkpf, in bkpf v dnt have posting period field so v have to take year in gjahr and month in monat.so for year and month im taking range tables and the my code is as follows..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT s_period[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    LOOP AT s_period.&lt;/P&gt;&lt;P&gt;*Year&lt;/P&gt;&lt;P&gt;      r_gjahr-sign   = s_period-sign.&lt;/P&gt;&lt;P&gt;      r_gjahr-option = s_period-option.&lt;/P&gt;&lt;P&gt;      r_gjahr-low    = s_period-low+0(4).&lt;/P&gt;&lt;P&gt;      r_gjahr-high   = s_period-high+0(4).&lt;/P&gt;&lt;P&gt;      APPEND r_gjahr. CLEAR r_gjahr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Month&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      r_monat-sign   = s_period-sign.&lt;/P&gt;&lt;P&gt;      r_monat-option = s_period-option.&lt;/P&gt;&lt;P&gt;      r_monat-low    = s_period-low+4(2).&lt;/P&gt;&lt;P&gt;      r_monat-high   = s_period-high+4(2).&lt;/P&gt;&lt;P&gt;      APPEND r_monat. CLEAR r_monat.&lt;/P&gt;&lt;P&gt;      CLEAR s_period.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Accounting Doc&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT belnr FROM bkpf INTO TABLE gt_bkpf WHERE bukrs = p_bukrs AND&lt;/P&gt;&lt;P&gt;                                            gjahr IN r_gjahr AND&lt;/P&gt;&lt;P&gt;                                            monat IN r_monat.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i want as for example in selection screen if 200904 201002&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it has to fetch the document numbers between apr01 2009 to feb 28 2010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i achieve this please give some inputs &amp;lt;removed by moderator&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on May 11, 2010 7:49 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 03:46:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898648#M1481022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-11T03:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898649#M1481023</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 think we can get:&lt;/P&gt;&lt;P&gt;- First day of s_period-low&lt;/P&gt;&lt;P&gt;- Last day of s_period-high&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so we can build a range of first day - last day for selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was my suggestion, please discuss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Thien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 04:15:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898649#M1481023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-11T04:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898650#M1481024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
concatenate r_gjahr-low r_monat-low '01' into v_date_low.

v_month = r_monat-high + 1.

concatenate r_gjahr-high v_month '01' into v_date_high.

v_date_high = v_date_high - 1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;If user enter exclude values in your range , then your have problem&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 04:18:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898650#M1481024</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2010-05-11T04:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898651#M1481025</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;   what you told is exactly my requirement,but how to build a range of the first day-last day of selection.&lt;/P&gt;&lt;P&gt;Please help me it is very urgernt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 04:23:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898651#M1481025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-11T04:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898652#M1481026</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;Do your work as a®s said. It's what I have said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank a®s for clearing code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Thien&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 04:26:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898652#M1481026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-11T04:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898653#M1481027</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;  Thanks for ur replies a®s and Thien..stil i have got one doubt.i got the firstday of low value and last day of the high value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but where can i use this dates. and in my select statement i want to use the index 002 of bkpf.where exactly i can use these low and high dates.please explain me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 04:42:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898653#M1481027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-11T04:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898654#M1481028</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;To me, I think you can pass this selection to Posting date (field BUDAT), that meets your requirement above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Thien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 04:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898654#M1481028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-11T04:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898655#M1481029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Thein,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  but which one i have to pass budat = v_date_low or v_Date_high.&lt;/P&gt;&lt;P&gt;Please advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 04:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898655#M1481029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-11T04:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898656#M1481030</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;Please can anyone help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 05:14:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898656#M1481030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-11T05:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898657#M1481031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;If you need data between the date range and you have a range created for BUDAT, assign Low as the lower value and high with the higher value and set OPTION as BT. Now pass the range to BUDAT field in the select query.&lt;/P&gt;&lt;P&gt;select fields into table where budat IN r_budat.&lt;/P&gt;&lt;P&gt;where r_budat-low = lower value&lt;/P&gt;&lt;P&gt;           r_budat-high = higher value&lt;/P&gt;&lt;P&gt;           r_option = 'BT'&lt;/P&gt;&lt;P&gt;           r_sign = 'I'.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;select fields into table where budat between v_low and v_high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 05:20:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898657#M1481031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-11T05:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898658#M1481032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swetha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please build a range of the v_date_low and v_date_high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
RANGE r_date for bkpf-bdat.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;r_date-sign , r_date-options must meet sign and option of s_period that user enter in selection-screen. You must take care of this case if you don't want your report turn to wrong.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
r_date-low = v_date_low
r_date-high = v_date_high.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is a solution not a real correct code, your implementation must check some cases on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Thien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 05:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898658#M1481032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-11T05:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898659#M1481033</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;&lt;/P&gt;&lt;P&gt;  Thanks for everyone.i got the solution.&lt;/P&gt;&lt;P&gt;closing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 05:24:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-range/m-p/6898659#M1481033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-11T05:24:52Z</dc:date>
    </item>
  </channel>
</rss>

