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 create an authorization for infotypes in a program?

Former Member
0 Kudos

Hi all,

I am creating a program that will return an error message " The user is not authorized to view infotype XXXX".

I am using HR programming ..GET Peras..

Need your assistance. I will aprreciate your professional response...

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

1. For this we have to use the

authorisation object

P_ORGIN

2. It has got the following fields, on which authorisations can be controlled.

AUTHC Authorization level

INFTY Infotype

PERSA Personnel Area

PERSG Employee Group

PERSK Employee Subgroup

SUBTY Subtype

VDSK1 Organizational Key

Regards,

Harish

3 REPLIES 3

Former Member
0 Kudos

Hi,

1. For this we have to use the

authorisation object

P_ORGIN

2. It has got the following fields, on which authorisations can be controlled.

AUTHC Authorization level

INFTY Infotype

PERSA Personnel Area

PERSG Employee Group

PERSK Employee Subgroup

SUBTY Subtype

VDSK1 Organizational Key

Regards,

Harish

piyush_mathur
Active Participant
0 Kudos

Hi,

If you are using LDB, then no need to check for the authorization. I

0 Kudos

thanks guys.. but how to get the message that will informthe user that he/she is not authorized to access a certain infotype?