<?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: RANGES STATEMENT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-statement/m-p/1770911#M332887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just check ur internal table wr_date it is having all the converted dates now..&lt;/P&gt;&lt;P&gt;now u can have select query on the databse table based on these dates to fetch data.&lt;/P&gt;&lt;P&gt;amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jan 2007 07:11:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-03T07:11:37Z</dc:date>
    <item>
      <title>RANGES STATEMENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-statement/m-p/1770905#M332881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ABAPERS,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     I am using RANGES statement and i am selecting the range of dates in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using this range i want to pass one by one date to function module how can i do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;BELOW IS THE CODE WHAT I AM DOING&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I WANT TO PASS ALL THE DATES TO THIS FN MODULE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of wr_date occurs 0,         " ranges accepts in format YYYY MM DD&lt;/P&gt;&lt;P&gt;       sign(1),&lt;/P&gt;&lt;P&gt;       option(2),&lt;/P&gt;&lt;P&gt;       low type char8,&lt;/P&gt;&lt;P&gt;       high type char8,&lt;/P&gt;&lt;P&gt;       end of wr_Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wr_date-sign = 'I'.&lt;/P&gt;&lt;P&gt;wr_date-option = 'BT'.&lt;/P&gt;&lt;P&gt;wr_date-low = w_low.  " HERE IAM PASSING INITIAL DATE&lt;/P&gt;&lt;P&gt;wr_date-high = w_high. " HERE IAM PASSING LAST DATE&lt;/P&gt;&lt;P&gt;APPEND wr_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at WR_DATE where option = 'BT' AND SIGN = 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'CONVERSION_EXIT_INVDT_INPUT'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     input         = " HERE I WANT TO PASS ONE BY ONE DATE"&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    OUTPUT        =  " APPENDING SOME INTERNAL TABLE"   &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pLEASE HELP&lt;/P&gt;&lt;P&gt;AHMED&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 06:00:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-statement/m-p/1770905#M332881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T06:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: RANGES STATEMENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-statement/m-p/1770906#M332882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u have to define ranges like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranges : r_budat for bkpf-budat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then no need to put a logic.&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;prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 06:06:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-statement/m-p/1770906#M332882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T06:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: RANGES STATEMENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-statement/m-p/1770907#M332883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if it is same as tht of ur previos query then just copy my code and it work as to read data from tcurr ,u need to do any conversion.if it something else then simply do as follows - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at WR_DATE where option = 'BT' AND SIGN = 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_INVDT_INPUT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;input =  wr_date-low&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;OUTPUT =  wr_date-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_INVDT_INPUT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;input =  wr_date-high&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;OUTPUT =  wr_date-high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify wr_date index sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Amit Tyagi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 06:07:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-statement/m-p/1770907#M332883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T06:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: RANGES STATEMENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-statement/m-p/1770908#M332884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmed , &lt;/P&gt;&lt;P&gt;  Here is a sample code which must be able to help&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;wr_date-sign = 'I'.
wr_date-option = 'BT'.
wr_date-low = w_low. " HERE IAM PASSING INITIAL DATE
wr_date-high = w_high. " HERE IAM PASSING LAST DATE
APPEND wr_date.

*loop at WR_DATE where option = 'BT' AND SIGN = 'I'. "Commenetd
LOOP AT WR_DATE .
IF NOT WR_DATE-LOW IS INITIAL. 
CALL FUNCTION 'CONVERSION_EXIT_INVDT_INPUT'
EXPORTING
input = WR_DATE-LOW 
IMPORTING
OUTPUT = WA_FTABLE-DATE.
APPEND WA_FTABLE.  " append to your internal table
ENDIF. 
F NOT WR_DATE-high IS INITIAL.
CALL FUNCTION 'CONVERSION_EXIT_INVDT_INPUT'
EXPORTING
input = WR_DATE-HIGH 
IMPORTING
OUTPUT = WA_FTABLE-DATE.
APPEND WA_FTABLE.
ENDIF. 
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do revert back in case you have more queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 06:09:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-statement/m-p/1770908#M332884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T06:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: RANGES STATEMENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-statement/m-p/1770909#M332885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES r_budat for bkpf-budat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_budat-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_budat-option = 'BT'.&lt;/P&gt;&lt;P&gt;r_budat-low = lowdate.&lt;/P&gt;&lt;P&gt;r_budat-high = highdate.&lt;/P&gt;&lt;P&gt;APPEND r_budat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at r_budat where option = 'BT' AND SIGN = 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             CALL FUNCTION 'CONVERSION_EXIT_INVDT_INPUT'&lt;/P&gt;&lt;P&gt;             EXPORTING&lt;/P&gt;&lt;P&gt;                 input = " pass date here like r_budat.&lt;/P&gt;&lt;P&gt;             IMPORTING&lt;/P&gt;&lt;P&gt;                 OUTPUT = " APPENDING SOME INTERNAL TABLE" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 06:13:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-statement/m-p/1770909#M332885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T06:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: RANGES STATEMENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-statement/m-p/1770910#M332886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how will i select all the dates and convert all the dates and for all the dates converted to inverted fom.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 07:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-statement/m-p/1770910#M332886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T07:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: RANGES STATEMENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-statement/m-p/1770911#M332887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just check ur internal table wr_date it is having all the converted dates now..&lt;/P&gt;&lt;P&gt;now u can have select query on the databse table based on these dates to fetch data.&lt;/P&gt;&lt;P&gt;amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 07:11:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-statement/m-p/1770911#M332887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T07:11:37Z</dc:date>
    </item>
  </channel>
</rss>

