<?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: Authorization problem while reading HR infotype in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-problem-while-reading-hr-infotype/m-p/7545123#M1562849</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;You can also try the FM 'HR_READ_INFOTYPE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Soumya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jan 2011 06:08:39 GMT</pubDate>
    <dc:creator>soumya_jose3</dc:creator>
    <dc:date>2011-01-04T06:08:39Z</dc:date>
    <item>
      <title>Authorization problem while reading HR infotype</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-problem-while-reading-hr-infotype/m-p/7545119#M1562845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAP Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing a problem while reading infotype 0015 record using following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROVIDE * FROM p0015 BETWEEN pn-begda AND pn-endda.

.....

ENDPROVIDE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  call function 'HR_READ_INFOTYPE_AUTHC_DISABLE'.
  call function 'HR_READ_SUBTYPE'
    exporting
      pernr                 = pernr-pernr
      infty                 = '0015'
      subty                 = '6100'
      begda                 = pn-begda
      endda                 = pn-endda
    tables
      infty_tab             = t_0015
   EXCEPTIONS
     INFTY_NOT_FOUND       = 1
     INVALID_INPUT         = 2
     OTHERS                = 3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User don't have full access to infotype 0015. Out of 20 subtypes user is authorize to read only 2 sub types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When user run this custom report, he is not able to see anything in preview. Although he can see the data from PA20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for solution in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waqas Rashid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 12:11:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-problem-while-reading-hr-infotype/m-p/7545119#M1562845</guid>
      <dc:creator>waqas_rashid</dc:creator>
      <dc:date>2011-01-03T12:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization problem while reading HR infotype</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-problem-while-reading-hr-infotype/m-p/7545120#M1562846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. I have identified the problem. But I don't know solution. Following is the culprit. When I remove following statement and read infotype using FM HR_READ_SUBTYPE then it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
INFOTYPES: 0015 NAME p0015.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to use FM HR_READ_SUBTYPE because of following reasons:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- Data retrieval is slow.&lt;/P&gt;&lt;P&gt;2- I will have to call this FM to read data from lot of different infotypes, which will increase code size.&lt;/P&gt;&lt;P&gt;3- I want to read only 2 sub types from infotype 0015. For this I will have to call FM HR_READ_SUBTYPE 2 times.&lt;/P&gt;&lt;P&gt;4- ....&lt;/P&gt;&lt;P&gt;5- ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for a good solution.&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;Waqas Rashid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 14:03:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-problem-while-reading-hr-infotype/m-p/7545120#M1562846</guid>
      <dc:creator>waqas_rashid</dc:creator>
      <dc:date>2011-01-03T14:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization problem while reading HR infotype</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-problem-while-reading-hr-infotype/m-p/7545121#M1562847</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;Please try by giving 'BYPASS_BUFFER' importing parameter as 'X" in the FM 'HR_READ_SUBTYPE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Soumya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 03:38:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-problem-while-reading-hr-infotype/m-p/7545121#M1562847</guid>
      <dc:creator>soumya_jose3</dc:creator>
      <dc:date>2011-01-04T03:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization problem while reading HR infotype</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-problem-while-reading-hr-infotype/m-p/7545122#M1562848</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;    Write a select statement on PA0015 and get the data for the particular pernr and for the subtypes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear : it_pa0015[] , it_pa0015.&lt;/P&gt;&lt;P&gt;    Select pernr .... from PA0015 into table it_pa0015&lt;/P&gt;&lt;P&gt;               where pernr = pernr-pernr and&lt;/P&gt;&lt;P&gt;               subty in r_subty and     " populate r_subty with the 2 values you need&lt;/P&gt;&lt;P&gt;               endda ge pn-begda and&lt;/P&gt;&lt;P&gt;               begda le pn-endda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 04:25:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-problem-while-reading-hr-infotype/m-p/7545122#M1562848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-04T04:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization problem while reading HR infotype</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-problem-while-reading-hr-infotype/m-p/7545123#M1562849</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;You can also try the FM 'HR_READ_INFOTYPE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Soumya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 06:08:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-problem-while-reading-hr-infotype/m-p/7545123#M1562849</guid>
      <dc:creator>soumya_jose3</dc:creator>
      <dc:date>2011-01-04T06:08:39Z</dc:date>
    </item>
  </channel>
</rss>

