Enterprise Resource Planning Blogs by SAP
Get insights and updates about cloud ERP and RISE with SAP, SAP S/4HANA and SAP S/4HANA Cloud, and more enterprise management capabilities with SAP blog posts.
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member205615
Contributor

Symptom

  • No authorization check in T-Code: S_ALR_87009145
  • End user can change base value percentage for all assets

Cause

In report S_ALR_87009145, SAP does not implement any authorization check since the report was created to take over values in good performance. In IMG customizing the standard view frameworks performs necessary authorization checks if a user is allowed to perform customizing. If this is allowed, the user is allowed to change base value percentage for all assets.

Resolution

SAP does not provide authorization check in report S_ALR_87009145 within standard system. Nevertheless, You could enter an authorization check in creating a new PAI module in the screen 400 of the report SAPLANBW. This module should contain a form that calls the desired authorization object and raises error message AA048 when it fails. Note: coding below is a modification to standard program. You can refer to KBA 1839926 for more information.

**************

AUTHORITY-CHECK   OBJECT   'A_S_ANLKL'
                      ID       'ANLKL'             FIELD ANLA-ANLKL
                      ID       'BUKRS'             FIELD ANLA-BUKRS
                      ID       'ACTVT'             FIELD L_ACTVT.

IF SY-SUBRC NE 0.
      MESSAGE ID 'AA' TYPE 'E' NUMBER '048'
                    WITH TEXT-123 ANLA-BUKRS
                              TEXT-124 ANLA-ANLKL.
ENDIF.

******************