<?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 Provide statement. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/4665379#M1097531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When we use the following statement.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; PROVIDE * FROM p0015 BETWEEN pybegda AND pyendda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here pybegda = 01.01.2008 and &lt;/P&gt;&lt;P&gt;       pyendda = 30.10.2008.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does this provide statement take those records too where endda is 31.12.9999.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Oct 2008 04:43:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-23T04:43:15Z</dc:date>
    <item>
      <title>Provide statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/4665379#M1097531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When we use the following statement.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; PROVIDE * FROM p0015 BETWEEN pybegda AND pyendda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here pybegda = 01.01.2008 and &lt;/P&gt;&lt;P&gt;       pyendda = 30.10.2008.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does this provide statement take those records too where endda is 31.12.9999.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 04:43:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/4665379#M1097531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T04:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Provide statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/4665380#M1097532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;No think your statement will not include the date 31.12.9999....Becoz that date is beyond the condition.....&lt;/P&gt;&lt;P&gt;Actually in PROVIDE key word...... WHERE log_exp effects...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;You can use the WHERE addition to specify a condition for every table itab1 itab2 ... involved. After WHERE, you can specify any logical expression log_exp1 log_exp2 ... ; the first operand of every comparison must be a component of the internal table. As such, all logical expressions except for IS ASSIGNED, IS REQUESTED, and IS SUPPLIED are possible. You can only specify components that are in the list after FIELDS. Here, it is not possible to specify a component using character-type data objects in brackets. The table entries for which the condition is not met are ignored by the PROVIDE loop. You can leave the PROVIDE loop following the instructions in the section Leaving loops. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arunima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 05:08:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/4665380#M1097532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T05:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Provide statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/4665381#M1097533</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; Provide statement is generally used in HR ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To read infotype data, provide statement is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg...Provide * from p9012 between pnpbegda and pnpendda.&lt;/P&gt;&lt;P&gt;It means that &lt;/P&gt;&lt;P&gt;Retrive data of infotype '9012'&lt;/P&gt;&lt;P&gt;into internal table p9012&lt;/P&gt;&lt;P&gt;and retrive only those records&lt;/P&gt;&lt;P&gt;which fall between these two dates (pnpbegda, pnpendda)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Instead of using raw sql statements ,&lt;/P&gt;&lt;P&gt;SAP recommends using provide &lt;/P&gt;&lt;P&gt;and also the FM - HR_READ_INFOTYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 05:11:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/4665381#M1097533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T05:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Provide statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/4665382#M1097534</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 dont think so it will include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Provide statement defines a loop through a statement block. In this loop, any number of internal tables itab1 itab2 ... are processed together&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 05:16:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/4665382#M1097534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T05:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Provide statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/4665383#M1097535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i don't think that it will include the records of 31.12.9999.&lt;/P&gt;&lt;P&gt;but instead of py-endda if u use pn-endda then it will include because the value of pn-endda is 31.12.9999&lt;/P&gt;&lt;P&gt;and pn-begda is 01.01.1800&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 05:30:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/4665383#M1097535</guid>
      <dc:creator>KK07</dc:creator>
      <dc:date>2008-10-23T05:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Provide statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/4665384#M1097536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; When we use the following statement.......&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;  PROVIDE * FROM p0015 BETWEEN pybegda AND pyendda.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; here pybegda = 01.01.2008 and &lt;/P&gt;&lt;P&gt;&amp;gt;        pyendda = 30.10.2008.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; does this provide statement take those records too where endda is 31.12.9999.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on whether the record with endda = 31.12.9999 is valid in the date range(pybegda and pyendda), i.e.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the start and enddates are 01.01.2008(or less than 30.10.2008) and 31.12.9999 then the PROVIDE statement will procees that record, however if the start date of the PA0015 record is greater than 30.10.2008 then the PROVIDE statement will not process that record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 05:43:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/4665384#M1097536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T05:43:39Z</dc:date>
    </item>
  </channel>
</rss>

