<?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: help with report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-report/m-p/2538725#M576652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abdul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think in your report there should be a selection-screen with option to enter date range. fetch all data from ekko and ekpo..in a internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop the internal table..in between pass erdat to DATE_TO_DAY FM, it will give you the day name..if it falls in saturday or sunday then proceed else delete the entry from int table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think it will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Krish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jul 2007 10:46:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-23T10:46:36Z</dc:date>
    <item>
      <title>help with report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-report/m-p/2538721#M576648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all experts,&lt;/P&gt;&lt;P&gt;                           i have  a requirement of listing purchase orders created only on Sunday and Saturday,please help me out im struggling  with is report from 2 days. any sample code will help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2007 09:35:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-report/m-p/2538721#M576648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-23T09:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: help with report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-report/m-p/2538722#M576649</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;use FM DATE_TO_DAY  to know the date is sunday or sat.&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;Omkar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2007 09:42:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-report/m-p/2538722#M576649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-23T09:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: help with report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-report/m-p/2538723#M576650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok you should make yourself a ranges table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that you shall store all the valid dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logic for that follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: startdate type dats value '2211200'. "value is taken out of the blue
data: enddate  type dats value '01062007'
data: days_between type i

days_between = startdate - enddate.

do days_between times.
  "here add: if day = saturday or sunday, add day to your ranges table.
  startdate = startdate + 1.
enddo.

Select * from vbak
into table lt_vbak
where erdat in your_ranges_table.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2007 09:53:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-report/m-p/2538723#M576650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-23T09:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: help with report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-report/m-p/2538724#M576651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have date range as input, then get the day for the from date and add number of days till sat.&lt;/P&gt;&lt;P&gt;Consider your from date is 23.07.2007 means it Monday. Add 4 days it will give you Sat and next day is Sunday. From sunday onwards you can add 5 days so will get all Sat and Sun till to date. If the day is other then monday then add that number of days to get sat/sun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2007 09:56:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-report/m-p/2538724#M576651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-23T09:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: help with report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-report/m-p/2538725#M576652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abdul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think in your report there should be a selection-screen with option to enter date range. fetch all data from ekko and ekpo..in a internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop the internal table..in between pass erdat to DATE_TO_DAY FM, it will give you the day name..if it falls in saturday or sunday then proceed else delete the entry from int table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think it will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Krish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2007 10:46:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-report/m-p/2538725#M576652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-23T10:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: help with report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-report/m-p/2538726#M576653</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;Try using this sample code. I think this will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters :   P_startdate type dats,&lt;/P&gt;&lt;P&gt;		P_enddate type dats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: days_between type i.&lt;/P&gt;&lt;P&gt;ranges : r_days type dats. &lt;/P&gt;&lt;P&gt;days_between = p_startdate &amp;#150; p_enddate.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;do days_between times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call function module &amp;#147;DATE_TO_DAY&amp;#148; to see if the day is sat or sun.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Call function DATE_TO_DAY&lt;/P&gt;&lt;P&gt;Exporting&lt;/P&gt;&lt;P&gt;    DATE = p_startdate&lt;/P&gt;&lt;P&gt;Importing&lt;/P&gt;&lt;P&gt;   WEEKDAY = g_day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*if the day is sat ir sun populate u'r ranges&lt;/P&gt;&lt;P&gt;If g_day = &amp;#145;Saturday&amp;#146; or g_day = &amp;#145;Sunday&amp;#146;.&lt;/P&gt;&lt;P&gt;R_days &amp;#150; low = p_startdate.&lt;/P&gt;&lt;P&gt;R_days- high = &amp;#145;&amp;#146;.&lt;/P&gt;&lt;P&gt;R_days &amp;#150; sign = I.&lt;/P&gt;&lt;P&gt;R_days &amp;#150; option = EQ.&lt;/P&gt;&lt;P&gt;Append r_days.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P_startdate = p_startdate + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  enddo.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Select * from vbak&lt;/P&gt;&lt;P&gt;into table lt_vbak&lt;/P&gt;&lt;P&gt;where erdat in r_days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it was useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2007 11:23:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-report/m-p/2538726#M576653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-23T11:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: help with report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-report/m-p/2538727#M576654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u r answer helped me lot but im getting all the dates which falls in a range.that if condition is  not working. plz help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 10:37:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-report/m-p/2538727#M576654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T10:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: help with report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-report/m-p/2538728#M576655</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;Use as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters : P_startdate type dats,&lt;/P&gt;&lt;P&gt;P_enddate type dats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: days_between type i.&lt;/P&gt;&lt;P&gt;ranges : r_days type dats. &lt;/P&gt;&lt;P&gt;days_between = p_startdate &amp;#150; p_enddate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do days_between times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call function module &amp;#147;DATE_TO_DAY&amp;#148; to see if the day is sat or sun.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Call function DATE_TO_DAY&lt;/P&gt;&lt;P&gt;Exporting&lt;/P&gt;&lt;P&gt;DATE = p_startdate&lt;/P&gt;&lt;P&gt;Importing&lt;/P&gt;&lt;P&gt;WEEKDAY = g_day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*if the day is sat ir sun populate u'r ranges&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;If g_day = &amp;#145;Sat&amp;#146; or g_day = &amp;#145;Sunday&amp;#146;.&amp;lt;/b&amp;gt; Changed&lt;/P&gt;&lt;P&gt;R_days &amp;#150; low = p_startdate.&lt;/P&gt;&lt;P&gt;R_days- high = &amp;#145;&amp;#146;.&lt;/P&gt;&lt;P&gt;R_days &amp;#150; sign = I.&lt;/P&gt;&lt;P&gt;R_days &amp;#150; option = EQ.&lt;/P&gt;&lt;P&gt;Append r_days.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P_startdate = p_startdate + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * from vbak&lt;/P&gt;&lt;P&gt;into table lt_vbak&lt;/P&gt;&lt;P&gt;where erdat in r_days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works only in Enlgish logon&lt;/P&gt;&lt;P&gt;For better results I advise you to check the Function module DATE_TO_DAY and see the Text elements used for the Day texts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And create in your program also similar text elements and compare using the text elements rather than hard coded stuff in one language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 10:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-report/m-p/2538728#M576655</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-07-24T10:41:49Z</dc:date>
    </item>
  </channel>
</rss>

