<?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: Re-write provide statement with loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-write-provide-statement-with-loop/m-p/1574218#M259254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data Retrieval from LDB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create data structures for infotypes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INFOTYPES: 0001, "ORG ASSIGNMENT&lt;/P&gt;&lt;P&gt;0002, "PERSONAL DATA&lt;/P&gt;&lt;P&gt;0008. "BASIC PAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Fill data structures with the infotype records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start-of-selection. &lt;/P&gt;&lt;P&gt;GET PERNR. &lt;/P&gt;&lt;P&gt;End-0f-selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read Master Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Infotype structures (after GET PERNR) are internal tables loaded with data. &lt;/P&gt;&lt;P&gt;The infotype records (selected within the period) are processed sequentially by the PROVIDE - ENDPROVIDE loop. &lt;/P&gt;&lt;P&gt;GET PERNR.&lt;/P&gt;&lt;P&gt;PROVIDE * FROM Pnnnn BETWEEN PN/BEGDA AND PN/ENDDA&lt;/P&gt;&lt;P&gt;If Pnnnn-XXXX = ' '. write:/ Pnnnn-XXXX. endif. &lt;/P&gt;&lt;P&gt;ENDPROVIDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Period-Related Data&lt;/P&gt;&lt;P&gt;All infotype records are time stamped. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT0006 (Address infotype)&lt;/P&gt;&lt;P&gt;01/01/1990 12/31/9999 present &lt;/P&gt;&lt;P&gt;Which record to be read depends on the date selection period specified on the&lt;/P&gt;&lt;P&gt;selection screen. PN/BEGDA PN/ENDDA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Data &lt;/P&gt;&lt;P&gt;IT0006 Address - 01/01/1990 12/31/9999 present &lt;/P&gt;&lt;P&gt;RP-PROVIDE-FROM-LAST retrieves the record which is valid in the data selection period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, pn/begda = '19990931' pn/endda = '99991231'&lt;/P&gt;&lt;P&gt;IT0006 subtype 1 is resident address&lt;/P&gt;&lt;P&gt;RP-PROVIDE-FROM-LAST P0006 1 PN/BEGDA PN/ENDDA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will be of help to u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Oct 2006 07:10:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-09T07:10:46Z</dc:date>
    <item>
      <title>Re-write provide statement with loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-write-provide-statement-with-loop/m-p/1574217#M259253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am a bit confused how to rewrite a provide statement but with loop instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, how would the following code be written with 'loop at':&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROVIDE * FROM P0001
          FROM P0016 BETWEEN '20020401' AND '20061001'
ENDPROVIDE
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 07:07:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-write-provide-statement-with-loop/m-p/1574217#M259253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T07:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re-write provide statement with loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-write-provide-statement-with-loop/m-p/1574218#M259254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data Retrieval from LDB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create data structures for infotypes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INFOTYPES: 0001, "ORG ASSIGNMENT&lt;/P&gt;&lt;P&gt;0002, "PERSONAL DATA&lt;/P&gt;&lt;P&gt;0008. "BASIC PAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Fill data structures with the infotype records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start-of-selection. &lt;/P&gt;&lt;P&gt;GET PERNR. &lt;/P&gt;&lt;P&gt;End-0f-selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read Master Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Infotype structures (after GET PERNR) are internal tables loaded with data. &lt;/P&gt;&lt;P&gt;The infotype records (selected within the period) are processed sequentially by the PROVIDE - ENDPROVIDE loop. &lt;/P&gt;&lt;P&gt;GET PERNR.&lt;/P&gt;&lt;P&gt;PROVIDE * FROM Pnnnn BETWEEN PN/BEGDA AND PN/ENDDA&lt;/P&gt;&lt;P&gt;If Pnnnn-XXXX = ' '. write:/ Pnnnn-XXXX. endif. &lt;/P&gt;&lt;P&gt;ENDPROVIDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Period-Related Data&lt;/P&gt;&lt;P&gt;All infotype records are time stamped. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT0006 (Address infotype)&lt;/P&gt;&lt;P&gt;01/01/1990 12/31/9999 present &lt;/P&gt;&lt;P&gt;Which record to be read depends on the date selection period specified on the&lt;/P&gt;&lt;P&gt;selection screen. PN/BEGDA PN/ENDDA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Data &lt;/P&gt;&lt;P&gt;IT0006 Address - 01/01/1990 12/31/9999 present &lt;/P&gt;&lt;P&gt;RP-PROVIDE-FROM-LAST retrieves the record which is valid in the data selection period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, pn/begda = '19990931' pn/endda = '99991231'&lt;/P&gt;&lt;P&gt;IT0006 subtype 1 is resident address&lt;/P&gt;&lt;P&gt;RP-PROVIDE-FROM-LAST P0006 1 PN/BEGDA PN/ENDDA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will be of help to u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 07:10:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-write-provide-statement-with-loop/m-p/1574218#M259254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T07:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Re-write provide statement with loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-write-provide-statement-with-loop/m-p/1574219#M259255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So with 'loop at' this is done... how?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 07:21:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-write-provide-statement-with-loop/m-p/1574219#M259255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T07:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Re-write provide statement with loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-write-provide-statement-with-loop/m-p/1574220#M259256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your PROVIDE is similar to a JOIN in a SELECT statement.. to replace it with a loop, you have to do nested loop. ie&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at p0001 where endda ge '20020401' AND begda le '20061001'.
loop at p0016 where pernr eq p0001-pernr and endda ge p0001-begda
and begda le p0001-endda.
endloop.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But why do you want to replace the PROVIDE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 09:04:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-write-provide-statement-with-loop/m-p/1574220#M259256</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-10-09T09:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Re-write provide statement with loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-write-provide-statement-with-loop/m-p/1574221#M259257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you, that solved my problem (rewarded points).&lt;/P&gt;&lt;P&gt;i needed to replace the PROVIDE, because i'm using the tables in a function module, and apparantly PROVIDE doesn't work with parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 09:16:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-write-provide-statement-with-loop/m-p/1574221#M259257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T09:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Re-write provide statement with loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-write-provide-statement-with-loop/m-p/1574222#M259258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this link,&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/provide.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/provide.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 09:20:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-write-provide-statement-with-loop/m-p/1574222#M259258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T09:20:35Z</dc:date>
    </item>
  </channel>
</rss>

