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

Regarding Authorisation

Former Member
0 Likes
442

Hello All,

Below I have a scenario like this in HR Module,

Some users doesnt have authorization to read infotype 0008 which has been assigend in the standard authority object.

My requirement is when the above user runs one particular report which has got a PNP ldb attached to it he should be authorized to read the inofype 0008.

how to over ride this.

Is this possible, and please give your valuable suggestions.

Thanks,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
370

check this .

<b>

DBPNPAUT                            19 * Check if the user has any authorizations to read the requested
                                    22 * that users having only P_PERNR authorizations will fail this
                                    24 * Users having only P_PERNR authorizations may need other authorizations
                                    26 * Workaround: we may give the user authorizations for P_ORGIN
                                    32 ** the corresponding authorization information.
                                    39 *    is_authorized TYPE boolean.                          "XYVAHRK055732
                                   119 *          CALL METHOD hrac_badi->check_min_infty_authorization
                                   125 *              is_authorized = is_authorized.
                                   126 *          IF NOT is_authorized = hrac_badi->true.
                                   129 *          ENDIF.  " NOT IS_AUTHORIZED = HRAC_BADI->TRUE.
                                   178 *    is_authorized TYPE boolean.
                                   182 *    CALL METHOD hrac_badi->check_authorization
                                   193 *        is_authorized = is_authorized.
                                   196 *    IF is_authorized = hrac_badi->true.
                                   198 *    ELSE.  " IS_AUTHORIZED = HRAC_BADI->TRUE.
                                   200 *    ENDIF.  " (ELSE) IS_AUTHORIZED = HRAC_BADI->TRUE.
                                   209 * Form for initializing the authorization BADI exit.

</b>

Regards

Prabhu

1 REPLY 1
Read only

Former Member
0 Likes
371

check this .

<b>

DBPNPAUT                            19 * Check if the user has any authorizations to read the requested
                                    22 * that users having only P_PERNR authorizations will fail this
                                    24 * Users having only P_PERNR authorizations may need other authorizations
                                    26 * Workaround: we may give the user authorizations for P_ORGIN
                                    32 ** the corresponding authorization information.
                                    39 *    is_authorized TYPE boolean.                          "XYVAHRK055732
                                   119 *          CALL METHOD hrac_badi->check_min_infty_authorization
                                   125 *              is_authorized = is_authorized.
                                   126 *          IF NOT is_authorized = hrac_badi->true.
                                   129 *          ENDIF.  " NOT IS_AUTHORIZED = HRAC_BADI->TRUE.
                                   178 *    is_authorized TYPE boolean.
                                   182 *    CALL METHOD hrac_badi->check_authorization
                                   193 *        is_authorized = is_authorized.
                                   196 *    IF is_authorized = hrac_badi->true.
                                   198 *    ELSE.  " IS_AUTHORIZED = HRAC_BADI->TRUE.
                                   200 *    ENDIF.  " (ELSE) IS_AUTHORIZED = HRAC_BADI->TRUE.
                                   209 * Form for initializing the authorization BADI exit.

</b>

Regards

Prabhu