Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

HR Authorization

Former Member
0 Likes
431

Hi All.

I have a requirement here like this.

Say a report is using PNP LDB. It has declared 5 infotypes via the INFOTYPES Statement - say , 0001,0002,0021,0022,0008.

Now, if a user does not have any authorization to read IT0008, he should still be able to run the report. Only thing is that the report will not get any IT0008 records.

What authorizations are required in this case?

Currently, the report just aborts saying that "No authorization for IT0008".

Any clues anyone please?

Thanks.

2 REPLIES 2
Read only

Former Member
0 Likes
374

Hi samant,

1. In such cases, its always better to not

to use PNP ldb.

2. Instead we can make aother simple program.

3. and use the FM HR_READ_INFOTYPE

to read the various FMs.

(There we can detect there infotype 0008

authorisation was not there, and data

also could not be fetched,

still we can continue the program)

regards,

amit m.

Read only

0 Likes
374

Thanks Amit.

But our problem is that all programs are already coded.

Only during the UAT phase did we realize this issue.

I guess using P_ABAP would bypass the PNP Authorizations. But that shall not solve the purpose as then it would NOT check for P_ORGEH (may be i am wrong) and would fetch IT0008 records also.

What we want is that users should be able to run the customized report even if they are not authorized to a particular infotype, only thing is that for that particular infotype, no data would be fetched.

Thanks again.