<?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 Macro in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/macro/m-p/2272425#M493702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  What is the use of the following Macros in ABAP HR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rp_provide_from_frst&lt;/P&gt;&lt;P&gt;rp_provide_from_last&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and what is the difference between them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;SC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 May 2007 06:37:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-18T06:37:16Z</dc:date>
    <item>
      <title>Macro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/macro/m-p/2272425#M493702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  What is the use of the following Macros in ABAP HR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rp_provide_from_frst&lt;/P&gt;&lt;P&gt;rp_provide_from_last&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and what is the difference between them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;SC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 06:37:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/macro/m-p/2272425#M493702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T06:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/macro/m-p/2272426#M493703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;In HR  for a single employee lot of records will be stored based on dates.&lt;/P&gt;&lt;P&gt;to fetch the first and latest these are used.&lt;/P&gt;&lt;P&gt;rp_provide_from_frst &lt;/P&gt;&lt;P&gt;is used to fetch the first record for that pernr no&lt;/P&gt;&lt;P&gt;rp_provide_from_last&lt;/P&gt;&lt;P&gt;is used to get the latest record from the infotype for that pernr.&lt;/P&gt;&lt;P&gt;These are use along with PNP LDB attachment to the program and using the command&lt;/P&gt;&lt;P&gt;GET PERNR .&lt;/P&gt;&lt;P&gt;and after that we have to write these statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 06:40:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/macro/m-p/2272426#M493703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T06:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/macro/m-p/2272427#M493704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;following are some of the macros that are mostly used in SAP HR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RP_PROVIDE_FROM_LAST&lt;/P&gt;&lt;P&gt;RP_PROVIDE_FROM_FIRST&lt;/P&gt;&lt;P&gt;RP_SET_DATA_INTERVAL&lt;/P&gt;&lt;P&gt;RP_READ_INFOTYPE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PR_PROVIDE_FROM_LAST macro writes the last valid record in the data selection period to the header line of the internal info type table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the function module HR_READ_INFOTYPE to read the personnel data in reports which do not use an HR logical database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through FM mentioned above it will solve your problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;don't forget to reward points,&lt;/P&gt;&lt;P&gt;cheers &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 06:43:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/macro/m-p/2272427#M493704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T06:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/macro/m-p/2272428#M493705</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;1-)  RP_PROVIDE_FROM_FIRST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      This macro analyzes the infotype data records that were transferred in an &lt;/P&gt;&lt;P&gt;      internal table to the macro with regard to the specified period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      If no data record exists in the specified period, the PNP_SW_FOUND &lt;/P&gt;&lt;P&gt;      global switch is set to 0. otherwise it has the value 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2-) RP_PROVIDE_FROM_LAST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      It places the last data record that is valid in the specified period ( the data &lt;/P&gt;&lt;P&gt;      record with the highest ENDDA).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****do reward if usefull&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 06:44:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/macro/m-p/2272428#M493705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T06:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/macro/m-p/2272429#M493706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks for all for quick reponse. Can you tell me the description of another macro&lt;/P&gt;&lt;P&gt;pnp-sw-found? Where we have to use this macro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;SC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 07:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/macro/m-p/2272429#M493706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T07:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/macro/m-p/2272430#M493707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Used similar to SY-SUBRC check in the HR programming.&lt;/P&gt;&lt;P&gt;Get pernr.&lt;/P&gt;&lt;P&gt;rp_provode_from_last P0001 .......&lt;/P&gt;&lt;P&gt;if pnp-sw-found = 0.&lt;/P&gt;&lt;P&gt;  write: p0001-pernr.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;reject.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 07:06:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/macro/m-p/2272430#M493707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T07:06:54Z</dc:date>
    </item>
  </channel>
</rss>

