<?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 endprovide usage in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-endprovide-usage/m-p/2194595#M468255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can we use &amp;lt;b&amp;gt;for all entries in statement&amp;lt;/b&amp;gt; along with &amp;lt;b&amp;gt;provide endprovide&amp;lt;/b&amp;gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;requirement is as :&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;Retrieval of Relevent Fields from PA0001 Table.&lt;/P&gt;&lt;P&gt;	Retrieve Personnel number (PERNR)&lt;/P&gt;&lt;P&gt;                          Personnel Area (WERKS)&lt;/P&gt;&lt;P&gt;                From Table PA0001 &lt;/P&gt;&lt;P&gt;               on the basis of Personnel number in the selection screen&lt;/P&gt;&lt;P&gt;               and Start Date (BEGDA) less than sy-datum&lt;/P&gt;&lt;P&gt;               and End  Date (ENDA) greater than sy-datum.&lt;/P&gt;&lt;P&gt;                 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Retrieval of Relevent Fields from PA0002 Table.&lt;/P&gt;&lt;P&gt;	Retrieve Personnel number (PERNR)&lt;/P&gt;&lt;P&gt; 		 Last name  (NACHN)&lt;/P&gt;&lt;P&gt;                                 First name (VORNA)&lt;/P&gt;&lt;P&gt;                from  table PA0002   on the basis of all entries in IT_PA0001  comparing personnel number (PERNR) &lt;/P&gt;&lt;P&gt;   and Start Date (BEGDA) less than sy-datum&lt;/P&gt;&lt;P&gt;   and End Date (ENDA) greater than sy-datum.  &lt;/P&gt;&lt;P&gt;   Put the retrieved value in an internal table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2007 07:53:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-27T07:53:37Z</dc:date>
    <item>
      <title>provide endprovide usage</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-endprovide-usage/m-p/2194595#M468255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can we use &amp;lt;b&amp;gt;for all entries in statement&amp;lt;/b&amp;gt; along with &amp;lt;b&amp;gt;provide endprovide&amp;lt;/b&amp;gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;requirement is as :&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;Retrieval of Relevent Fields from PA0001 Table.&lt;/P&gt;&lt;P&gt;	Retrieve Personnel number (PERNR)&lt;/P&gt;&lt;P&gt;                          Personnel Area (WERKS)&lt;/P&gt;&lt;P&gt;                From Table PA0001 &lt;/P&gt;&lt;P&gt;               on the basis of Personnel number in the selection screen&lt;/P&gt;&lt;P&gt;               and Start Date (BEGDA) less than sy-datum&lt;/P&gt;&lt;P&gt;               and End  Date (ENDA) greater than sy-datum.&lt;/P&gt;&lt;P&gt;                 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Retrieval of Relevent Fields from PA0002 Table.&lt;/P&gt;&lt;P&gt;	Retrieve Personnel number (PERNR)&lt;/P&gt;&lt;P&gt; 		 Last name  (NACHN)&lt;/P&gt;&lt;P&gt;                                 First name (VORNA)&lt;/P&gt;&lt;P&gt;                from  table PA0002   on the basis of all entries in IT_PA0001  comparing personnel number (PERNR) &lt;/P&gt;&lt;P&gt;   and Start Date (BEGDA) less than sy-datum&lt;/P&gt;&lt;P&gt;   and End Date (ENDA) greater than sy-datum.  &lt;/P&gt;&lt;P&gt;   Put the retrieved value in an internal table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 07:53:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-endprovide-usage/m-p/2194595#M468255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T07:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: provide endprovide usage</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-endprovide-usage/m-p/2194596#M468256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rippy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, you cann't use FOR ALL ENTRIES with PROVIDE END PROVIDE, coz PROVIDE ENDPROVIDE is looping process, just like SELECT ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I don't suggest you to use PROVIDE ENDPROVIDE.&lt;/P&gt;&lt;P&gt;You can use FOR ALL ENTRIES, like here:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*get data from PA0001
SELECT PERNR WERKS
INTO TABLE IT_PA0001
FROM PA0001
WHERE PERNR EQ P_PERNR
      AND BEGDA &amp;lt; SY-DATUM
      AND ENDDA &amp;gt; SY-DATUM.

*get data from PA0002
IF IT_PA0001[] IS NOT INITIAL.
   SELECT PERNR NACHN VORNA
   INTO TABLE IT_PA0002
   FROM PA0002
   FOR ALL ENTRIES IN IT_PA0001
   WHERE PERNR = IT_PA0001-PERNR
        AND BEGDA &amp;lt; SY-DATUM
        AND ENDDA &amp;gt; SY-DATUM.  
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 08:19:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-endprovide-usage/m-p/2194596#M468256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T08:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: provide endprovide usage</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-endprovide-usage/m-p/2194597#M468257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx Jatra...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 10:33:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-endprovide-usage/m-p/2194597#M468257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T10:33:31Z</dc:date>
    </item>
  </channel>
</rss>

