Skip to Content

HR authorizations p_orgin

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Mar 29, 2017 at 12:29 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 29, 2017 at 09:46 AM

    the function modules don't work globaly.

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

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 29, 2017 at 11:42 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 30, 2017 at 11:13 AM

    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

    Add comment
    10|10000 characters needed characters exceeded