<?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: report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3481372#M836932</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;Check this code. Hope it will be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options s_date type sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: month(2) type c,&lt;/P&gt;&lt;P&gt;      month_high(2) type c,&lt;/P&gt;&lt;P&gt;      year(4) type c,&lt;/P&gt;&lt;P&gt;      year_high(4) type c.&lt;/P&gt;&lt;P&gt;at selection-screen on s_date.&lt;/P&gt;&lt;P&gt;month = s_date-low + 4(2).&lt;/P&gt;&lt;P&gt;year = s_date-low +6(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = 'S_DATE-HIGH'.&lt;/P&gt;&lt;P&gt;  month_high = s_date-high + 4(2).&lt;/P&gt;&lt;P&gt;  year_high = s_date-high + 6(4).&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  if month = 01 or month = 02 or month = 03.&lt;/P&gt;&lt;P&gt;   if month_high &amp;gt; 03 or year_high &amp;lt;&amp;gt; year.&lt;/P&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;give error message.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  If month = 04 or month = 05 or month = 06.&lt;/P&gt;&lt;P&gt;      if month_high &amp;lt; 03 or month_high &amp;gt;06 or year_high &amp;lt;&amp;gt; year.&lt;/P&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;give error message.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  If month = 07 or month = 08 or month = 09 or year_high &amp;lt;&amp;gt; year.&lt;/P&gt;&lt;P&gt;      if month_high &amp;lt; 06 or month_high &amp;gt; 09.&lt;/P&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;give error message.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  If month = 10 or month = 11 or month = 12.&lt;/P&gt;&lt;P&gt;      if month_high &amp;lt; 10 or month_high &amp;gt; 12 or year_high &amp;lt;&amp;gt; year.&lt;/P&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;give error message.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&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;Edited by: Akshay Raj on Mar 6, 2008 1:20 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Akshay Raj on Mar 6, 2008 1:21 PM&lt;/P&gt;&lt;P&gt;In all the if statements with " year_high".. modify them as..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;year_high NE year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Mar 2008 12:16:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-06T12:16:25Z</dc:date>
    <item>
      <title>report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3481368#M836928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please tell me the logic to validate the date..? In the selection screen &lt;/P&gt;&lt;P&gt;if the user inputs the from date from I quarter it should restrict the user put the end date as 31.03.2008&lt;/P&gt;&lt;P&gt;n if it is under II quarter it should restrict to put the end date as 30.06.2008... respectively for other quarters..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 11:37:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3481368#M836928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T11:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3481369#M836929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try following logic..&lt;/P&gt;&lt;P&gt;parametere :pa_date like sy-datum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on pa_date.&lt;/P&gt;&lt;P&gt;mm = pa_date+4(2).			"get month from date&lt;/P&gt;&lt;P&gt;yy = pa_date+6(4).&lt;/P&gt;&lt;P&gt;concatenate 31 03  yy into lw_q1.&lt;/P&gt;&lt;P&gt;concatenate 30 06  yy into lw_q1.&lt;/P&gt;&lt;P&gt;concatenate 30 09  yy into lw_q1.&lt;/P&gt;&lt;P&gt;concatenate 31 12  yy into lw_q1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAse MM&lt;/P&gt;&lt;P&gt;  when '01'&lt;/P&gt;&lt;P&gt;      lw_date = lw_q1.&lt;/P&gt;&lt;P&gt;  when '02'&lt;/P&gt;&lt;P&gt;      lw_date = lw_q1.&lt;/P&gt;&lt;P&gt;  when '03'&lt;/P&gt;&lt;P&gt;      lw_date = lw_q1.&lt;/P&gt;&lt;P&gt;  when '04'&lt;/P&gt;&lt;P&gt;      lw_date = lw_q2.&lt;/P&gt;&lt;P&gt;  when '05'&lt;/P&gt;&lt;P&gt;      lw_date = lw_q2.&lt;/P&gt;&lt;P&gt;  when '06'&lt;/P&gt;&lt;P&gt;      lw_date = lw_q2.&lt;/P&gt;&lt;P&gt;  when '07'&lt;/P&gt;&lt;P&gt;      lw_date = lw_q3.&lt;/P&gt;&lt;P&gt;  when '08'&lt;/P&gt;&lt;P&gt;      lw_date = lw_q3.&lt;/P&gt;&lt;P&gt;  when '09'&lt;/P&gt;&lt;P&gt;      lw_date = lw_q3.&lt;/P&gt;&lt;P&gt;  when '10'&lt;/P&gt;&lt;P&gt;      lw_date = lw_q4.&lt;/P&gt;&lt;P&gt;  when '11'&lt;/P&gt;&lt;P&gt;      lw_date = lw_q4.&lt;/P&gt;&lt;P&gt;  when '12'&lt;/P&gt;&lt;P&gt;      lw_date = lw_q4.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pa_date =lw_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sukhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 11:46:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3481369#M836929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T11:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3481370#M836930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Do like this.&lt;/P&gt;&lt;P&gt;CONCATENATE sy-datum+0(4) '03' '31' INTO l_q1high.&lt;/P&gt;&lt;P&gt;CONCATENATE sy-datum+0(4) '06' '30' INTO l_q2high.&lt;/P&gt;&lt;P&gt;CONCATENATE sy-datum+0(4) '09' '30' INTO l_q3high.&lt;/P&gt;&lt;P&gt;CONCATENATE sy-datum+0(4) '12' '31' INTO l_q4high.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;IF so_period-low+4(2) LE 3.&lt;/P&gt;&lt;P&gt;    IF so_period-high GT l_q1high.&lt;/P&gt;&lt;P&gt;      MESSAGE&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;ELSEIF so_period-low+4(2) LE 6.&lt;/P&gt;&lt;P&gt;    IF so_period-high GT l_q2high.&lt;/P&gt;&lt;P&gt;      MESSAGE&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;ELSEIF so_period-low+4(2) LE 9.&lt;/P&gt;&lt;P&gt;    IF so_period-high GT l_q3high.&lt;/P&gt;&lt;P&gt;      MESSAGE&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;    IF so_period-high GT l_q4high.&lt;/P&gt;&lt;P&gt;      MESSAGE&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 11:52:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3481370#M836930</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-03-06T11:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3481371#M836931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this FM - BKK_GET_QUARTER_DATE to get the Quarter End date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Validate the same across the I/P date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinayak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 11:54:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3481371#M836931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T11:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3481372#M836932</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;Check this code. Hope it will be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options s_date type sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: month(2) type c,&lt;/P&gt;&lt;P&gt;      month_high(2) type c,&lt;/P&gt;&lt;P&gt;      year(4) type c,&lt;/P&gt;&lt;P&gt;      year_high(4) type c.&lt;/P&gt;&lt;P&gt;at selection-screen on s_date.&lt;/P&gt;&lt;P&gt;month = s_date-low + 4(2).&lt;/P&gt;&lt;P&gt;year = s_date-low +6(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = 'S_DATE-HIGH'.&lt;/P&gt;&lt;P&gt;  month_high = s_date-high + 4(2).&lt;/P&gt;&lt;P&gt;  year_high = s_date-high + 6(4).&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  if month = 01 or month = 02 or month = 03.&lt;/P&gt;&lt;P&gt;   if month_high &amp;gt; 03 or year_high &amp;lt;&amp;gt; year.&lt;/P&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;give error message.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  If month = 04 or month = 05 or month = 06.&lt;/P&gt;&lt;P&gt;      if month_high &amp;lt; 03 or month_high &amp;gt;06 or year_high &amp;lt;&amp;gt; year.&lt;/P&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;give error message.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  If month = 07 or month = 08 or month = 09 or year_high &amp;lt;&amp;gt; year.&lt;/P&gt;&lt;P&gt;      if month_high &amp;lt; 06 or month_high &amp;gt; 09.&lt;/P&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;give error message.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  If month = 10 or month = 11 or month = 12.&lt;/P&gt;&lt;P&gt;      if month_high &amp;lt; 10 or month_high &amp;gt; 12 or year_high &amp;lt;&amp;gt; year.&lt;/P&gt;&lt;P&gt;   -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;give error message.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&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;Edited by: Akshay Raj on Mar 6, 2008 1:20 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Akshay Raj on Mar 6, 2008 1:21 PM&lt;/P&gt;&lt;P&gt;In all the if statements with " year_high".. modify them as..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;year_high NE year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 12:16:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3481372#M836932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T12:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3481373#M836933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the following logic will certainly help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN ON s_date.
  IF s_date-low+0(4) &amp;lt;&amp;gt; s_date-high+0(4).
    MESSAGE e000(vz) WITH text-e01.
  ENDIF.

  IF s_date-low+4(2) &amp;lt;= '3' AND s_date-high+4(4) &amp;lt;&amp;gt; '0331'.
    CONCATENATE s_date-low+0(4) '03' '31' INTO w_last_date.
    MESSAGE e000(vz) WITH text-e02 w_last_date.
  ELSEIF ( s_date-low+4(2) &amp;gt; '3' AND  s_date-low+4(2) &amp;lt;= '6' )
         AND s_date-high+4(4) &amp;lt;&amp;gt; '0630'.
    CONCATENATE s_date-low+0(4) '06' '30' INTO w_last_date.
    MESSAGE e000(vz) WITH text-e02 w_last_date.
  ELSEIF ( s_date-low+4(2) &amp;gt; '6' AND  s_date-low+4(2) &amp;lt;= '9' )
         AND s_date-high+4(4) &amp;lt;&amp;gt; '0930'.
    CONCATENATE s_date-low+0(4) '09' '30' INTO w_last_date.
    MESSAGE e000(vz) WITH text-e02 w_last_date.
  ELSEIF ( s_date-low+4(2) &amp;gt; '9' AND  s_date-low+4(2) &amp;lt;= '12' )
         AND s_date-high+4(4) &amp;lt;&amp;gt; '1231'.
    CONCATENATE s_date-low+0(4) '12' '31' INTO w_last_date.
    MESSAGE e000(vz) WITH text-e02 w_last_date.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 10:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3481373#M836933</guid>
      <dc:creator>graghavendra_sharma</dc:creator>
      <dc:date>2008-03-07T10:47:20Z</dc:date>
    </item>
  </channel>
</rss>

