<?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: PROVIDE Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/1276316#M151630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI andre,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. U are right!&lt;/P&gt;&lt;P&gt;2. The slice-off is done on the CUT-OFF DATES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. For this u need to use own logic,&lt;/P&gt;&lt;P&gt;   (its tricky while working with BEGDA and ENDDA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. We have to use like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &lt;/P&gt;&lt;P&gt;( mybegda between itab-begda and itab-endda)&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( myendda between itab-begda and itab-endda)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.... ur code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Mar 2006 07:26:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-07T07:26:02Z</dc:date>
    <item>
      <title>PROVIDE Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/1276311#M151625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the PROVIDE command i think is a good way to get a filter between dates in an HR development with logic database, however, i got a problem with this command that changes the real content of date's field (BEGDA and ENDDA) when i append into others internal tables everytime i've the dates "sliced off", sample :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" 3 real lines from table PA0000(IT0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERNR	BEGDA		ENDDA&lt;/P&gt;&lt;P&gt;1	01012005	31129999	&lt;/P&gt;&lt;P&gt;1	01012004	31122004&lt;/P&gt;&lt;P&gt;1	01012003	31122003&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" My it_0000(int. table like PA0000) will receive data from the command provide bellow and "PN" is the date range, which has BEGDA = 30062004 and ENDDA = 30062005 :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROVIDE PERNR BEGDA ENDDA&lt;/P&gt;&lt;P&gt;FROM	P0000&lt;/P&gt;&lt;P&gt;BETWEEN PN-BEGDA AND PN-ENDDA. " Range between 30/06/2004 and 30/06/2005&lt;/P&gt;&lt;P&gt;	MOVE-CORRESPONDING P0000 TO IT_0000.&lt;/P&gt;&lt;P&gt;	APPEND IT_0000.&lt;/P&gt;&lt;P&gt;	CLEAR IT_0000.&lt;/P&gt;&lt;P&gt;ENDPROVIDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" But, when i see the data from IT_0000 in my debug, i gonna see :&lt;/P&gt;&lt;P&gt;PERNR 	BEGDA		ENDDA&lt;/P&gt;&lt;P&gt;1	01012005	&lt;STRONG&gt;30062005&lt;/STRONG&gt; --&amp;gt; It was made a change to the last day of my range&lt;/P&gt;&lt;P&gt;1	&lt;STRONG&gt;30062004&lt;/STRONG&gt;	31122004   --&amp;gt; In the BEGDA also we've the same situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With these changes i got a "dubious" information to show up into my report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that it can be easier to be fixed, perhaps a simple sintax / complement in the PROVIDE Command that i didn't realize yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, every contributions to fix it'll be welcome !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tks in advance,&lt;/P&gt;&lt;P&gt;Andre L. Calderan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2024 05:35:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/1276311#M151625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2024-02-04T05:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROVIDE Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/1276312#M151626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; You can sort your internal table &amp;amp; then delete the duplicates.&lt;/P&gt;&lt;P&gt;SORT IT_0000 BY PERNR.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM IT_0000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2006 20:03:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/1276312#M151626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-06T20:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: PROVIDE Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/1276313#M151627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andre,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you do not actually need a PROVIDE in this case.&lt;/P&gt;&lt;P&gt;Provide SPLITS/COMBINES the records according to the PN dates.&lt;/P&gt;&lt;P&gt;Best is to use  FM HR_READ_INFOTYPE.&lt;/P&gt;&lt;P&gt;OR you can use a READ statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A rough syntax.&lt;/P&gt;&lt;P&gt;READ TABLE P0000&lt;/P&gt;&lt;P&gt;WHERE BEGDA LE PNENDDA AND ENDDA GE PNBEGDA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will get all the overlapping reocrds from P0000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Krisho&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 06:50:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/1276313#M151627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-07T06:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROVIDE Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/1276314#M151628</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;P0000 has a constraint NO OVERLAPPING.&lt;/P&gt;&lt;P&gt;hence, when you give intermidiate values for BEGDA and ENDDA, it will create an intermidiate interval and hence it is appending diferent value to you internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the values for BEGDA and ENDDA so that there will be no overlapping and then check or try and use SEQNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise use FM READ_HR_INFOTYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shashank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 07:06:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/1276314#M151628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-07T07:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROVIDE Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/1276315#M151629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it will pick all the records between that range.&lt;/P&gt;&lt;P&gt;according to your rows in the PA000 its picking correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want only the current records then say &lt;/P&gt;&lt;P&gt;sort itab by pernr begda descending.&lt;/P&gt;&lt;P&gt;and delete adjacent duplicates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 07:16:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/1276315#M151629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-07T07:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROVIDE Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/1276316#M151630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI andre,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. U are right!&lt;/P&gt;&lt;P&gt;2. The slice-off is done on the CUT-OFF DATES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. For this u need to use own logic,&lt;/P&gt;&lt;P&gt;   (its tricky while working with BEGDA and ENDDA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. We have to use like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &lt;/P&gt;&lt;P&gt;( mybegda between itab-begda and itab-endda)&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( myendda between itab-begda and itab-endda)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.... ur code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 07:26:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/1276316#M151630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-07T07:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: PROVIDE Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/1276317#M151631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you got the point, tks for you return, i was wondering if there is any other way / logic to aply instead it, i was thinking the same logic (loop + if + my logic) too, but i think this way is so...rough, got it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the provide command always do we've our data overlapped when a period signed "slice-off" some date ? Dont we have any other option ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tks again !&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 13:51:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-statement/m-p/1276317#M151631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-07T13:51:44Z</dc:date>
    </item>
  </channel>
</rss>

