Application Development 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: 

How to perform custom auth checks similar to when reading with FM HR_READ_INFOTYPE?

former_member111748
Participant
0 Kudos

My requirement is to get pernrs from pa0001 based on matching stell (job code) while maintainingg the auth checks. I can't use FM HR_READ_INFOTYPE as this requires a pernr parameter which is not available until later.

5 REPLIES 5

raymond_giuseppi
Active Contributor
0 Kudos

Look at the source code of FM such HR_CHECK_AUTHORITY_SEARCH_HELP or one of its caller such as PTRV_TRAVEL_STATISTICS_SH_EXIT.

0 Kudos

Thanks Raymond, I am looking into it and trying to figure out how to make use of it in my case.

former_member225631
Active Contributor
0 Kudos

Check authorization object P_PERNR

0 Kudos

Thanks Anand, this is one of the things I am also looking into.

former_member111748
Participant
0 Kudos

This is how I am doing it at the moment:

SELECT pernr FROM pa0001 INTO TABLE lt_pa0001
        WHERE stell IN p_job_cd
        AND   endda >= sy-datum.