<?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: Problem using example program on OSS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-example-program-on-oss/m-p/1614508#M275339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone has any other suggestion? Suggestion from anyone is welcomed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Oct 2006 14:37:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-11T14:37:28Z</dc:date>
    <item>
      <title>Problem using example program on OSS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-example-program-on-oss/m-p/1614503#M275334</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 was trying to use an example program on OSS named:&lt;/P&gt;&lt;P&gt;&amp;lt;a href="https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/note_print.htm?numm=699276&amp;amp;vernr=0000000000&amp;amp;nlang=E&amp;amp;smpsrv=https://websmp104.sap-ag.de&amp;amp;sap-language=E"&amp;gt;Note 699276 - New classes: Selection - Reading payroll results&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;And the program is:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data go_prr       type ref to CL_HRPAY99_PRR_4_PNP_REPS.

data gt_pernr_pr  type H99_HR_PAY_RESULT_TAB.

data go_pernr_pr  type ref to CL_HR_PAY_RESULT_**.

field-symbols &amp;lt;pernr_pr&amp;gt; type ref to CL_HR_PAY_RESULT.

START-OF-SELECTION.

  call method CL_HRPAY99_PRR_4_PNP_REPS=&amp;gt;GET_INSTANCE

    exporting (...)

    importing ex_prr = go_prr

    exceptions INVALID_ENTRIES = 4.

GET PERNR.

  call method go_prr-&amp;gt;GET_PERNR_PAYR_RESULTS_ALLIN1

    exporting im_pernr = pernr-pernr

    importing EX_PERNR_PAYROLL_RESULTS = gt_pernr_pr

    exceptions (...).

* The results are now in table gt_pernr_pr

  loop at gt_pernr_pr assigning &amp;lt;pernr_pr&amp;gt;.

    go_pernr_pr ?= &amp;lt;pernr_pr&amp;gt;.

* Here do what you have to do with each result

  endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I copied almost exactly from the program, besides making a couple of minor changes. However, when I tried to run it, go_prr gives an illegal reference and sy-subrc is 1.&lt;/P&gt;&lt;P&gt;I am pretty sure that the payroll was set up correctly, may I know what could be the problem then?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anyi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 13:38:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-example-program-on-oss/m-p/1614503#M275334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T13:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using example program on OSS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-example-program-on-oss/m-p/1614504#M275335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you check in SE24 whether the class that you are referring to is available 'CL_HRPAY99_PRR_4_PNP_REPS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF it is there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using CALL METHOd to get instance &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why dont you try a simple &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT go_prr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This could solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Dominic  Pappaly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 13:42:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-example-program-on-oss/m-p/1614504#M275335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T13:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using example program on OSS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-example-program-on-oss/m-p/1614505#M275336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you include the LDB name in the Program attributes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 13:43:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-example-program-on-oss/m-p/1614505#M275336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T13:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using example program on OSS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-example-program-on-oss/m-p/1614506#M275337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dominic,&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;P&gt;I've checked the class in SE24 and it is implemented/active, I tried to call create object and got the following message:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
	You cannot generate instances of the abstract class		
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So do you have any other suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anyi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Could you check in SE24 whether the class that you&lt;/P&gt;&lt;P&gt;&amp;gt; are referring to is available&lt;/P&gt;&lt;P&gt;&amp;gt; 'CL_HRPAY99_PRR_4_PNP_REPS'.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; IF it is there&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Instead of using CALL METHOd to get instance &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; why dont you try a simple &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; CREATE OBJECT go_prr.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; This could solve your problem&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Message was edited by: Dominic  Pappaly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;i&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 14:23:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-example-program-on-oss/m-p/1614506#M275337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T14:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using example program on OSS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-example-program-on-oss/m-p/1614507#M275338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ravi,&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;P&gt;To answer your question, yes I did since this is a standard practice to add PNP for HR reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anyi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 14:25:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-example-program-on-oss/m-p/1614507#M275338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T14:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using example program on OSS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-example-program-on-oss/m-p/1614508#M275339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone has any other suggestion? Suggestion from anyone is welcomed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2006 14:37:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-example-program-on-oss/m-p/1614508#M275339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-11T14:37:28Z</dc:date>
    </item>
  </channel>
</rss>

