CL_BADI_SD_FUNCTION_ACTIVATION - Example: Change Authorization Check - Revenue Recognition
ABAP Short Reference CL_GUI_FRONTEND_SERVICES - Frontend ServicesThis documentation is copyright by SAP AG.
Functionality
The example class contains methods you can use to control authorization checks for the Customizing activityActivate SD Functions (view cluster VC_TVNFACT). The authorization checks in this example are based on the Revenue Recognition application.
Relationships
Example
Method CHECK_CHANGING_AUTHORITY
In this example, only a user with change authorization for authorization object V_VBRR_BUK (Revenue Recognition: Authorization for Company Codes) should be able to change the activation indicator for revenue recognition.
- If the user does not have this authorization, they are only allowed to display the Customizing activityActivate SD Functions (view V_TVNFACTC) as well as the lower-level step for revenue recognition (view V_TVNFACT_RR).
- However, the user can still make changes in the Billing step (view V_TVNFACT_BIL)
Method CHECK_FIELD_CHANGING_AUTHORITY
In this example, only a user with change authorization for authorization object V_VBRR_BUK (Revenue Recognition: Authorization for Company Codes) should be able to change the indicatorEnable Customizing for Revenue Recognition.
- If the user does not have authorization, the system message SV051 appears: "No data maintenance authorization; display only".
- The system then resets the indicator.
Notes
For more information, see the documentation for the individual methods.
Further information
BAL Application Log Documentation General Material Data
This documentation is copyright by SAP AG.
Length: 1779 Date: 20120526 Time: 085720 triton ( 71 ms )






