Skip to Content
0

HR authorizations p_orgin

Mar 29, 2017 at 08:53 AM

202

avatar image

Hi SCN,

Is it possible to deactivate authorization p_orgin by code?

The RH_AUTHORITY_CHECK_OFF, HR_READ_INFOTYPE_AUTHC_DISABLE doesn’t work for FM HRHAP_DOCUMENT_GET_DETAIL.

HRHAP_DOCUMENT_GET_DETAIL-> HR_CHECK_AUTHORITY_PERNR-> CL_HRPAD00AUTH_CHECK_STD-> CHECK_AUTH_ORGDA_PA.

Thanks.

Regards,

Maria João Rocha

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Volker Binder Mar 29, 2017 at 12:29 PM
1

as mentioned above: I found no other way than using a copy with all attributes and switches set according to my needs.

In my case it was function module HR_GET_PAYROLL_RESULTS where you can't switch off authority checks.

Share
10 |10000 characters needed characters left characters exceeded
Volker Binder Mar 29, 2017 at 09:46 AM
0

the function modules don't work globaly.

I copied the function groups I needed to a custom namespace and removed the authority checks.

Share
10 |10000 characters needed characters left characters exceeded
Maria João Paulo Rocha Mar 29, 2017 at 11:42 AM
0

Hello Volker, Thanks.

If possible I'd like to use the standard.

The attribute AUTH_SWITCH_P_ORGIN is set to 'X' (from table T775o). The atribute is private and there is no method to set this atribute.

Is it possible to change a private atribute from a class without the methods set?

Regards.

Maria João Rocha

Share
10 |10000 characters needed characters left characters exceeded
Maria João Paulo Rocha Mar 30, 2017 at 11:13 AM
0

Thank you Volker Binder.

We implemented an enhancement on method

READ_MASTERSWITCHES class

CL_HRPAD00AUTH_CHECK_STD

for deactivate the switch

auth_switch_p_orgin under certain conditions.

Regards,

Maria João Rocha

Share
10 |10000 characters needed characters left characters exceeded