Ansicht
Dokumentation

/CPD/BADI_EP_ROLES - BAdI: Authorization to Edit Projects

/CPD/BADI_EP_ROLES - BAdI: Authorization to Edit Projects

rdisp/max_wprun_time - Maximum work process run time   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

You can use this BAdI (business add-in) to restrict the editing of a customer or internal project only to users assigned to one of the project roles, such as Project Manager, Project Controller, and so on. In addition, you may also use this BAdI to decide whether a project can be updated through an API, by validating the communication user.

You may use any of the following CDS views to determine the project role of a user:

  • C_EngagementProjectRoles provides only a list of standard project roles (that is, Project Manager, Project Controller, Project Accountant, and Project Partner)
Note: This CDS view does not determine authorizations if the following business catalogs are assigned to a user. As a result, such users will not be allowed to edit a project even if they are assigned to the corresponding project role.
  • Project - Customer Project Setup (SAP_PSP_BC_CUSTOMER_PROJ_PC)

  • Project - Internal Project Setup (SAP_PSP_BC_INTERNAL_PROJ_PC)

  • I_EngmntProjectRoleAssgmt provides a list of standard and custom project roles defined by your key user.

Note: A user who manages your business configuration can define additional custom project roles using the Manage Your Solution app by choosing Configure Your Solution > Professional Services application area > Customer and Internal Project Management > Define Role Types.

The following parameters are available:

Importing Parameters

BUSINESSUSER - Indicates the ID of the user trying to edit the project (for example, CB0000000001 or CC0000000001)
ENGAGEMENTPROJECT - Indicates the project ID

Changing Parameter

EDITABLE - A boolean value where 'X' = Editable and ' ' = Display Only

-

To test the sample logic independent of the application, you require the project ID and the user ID of a user (for example, CB0000000001 for a business user or CC0000000001 for a communication user).

Recommendation: If you wish to read project-related information in your custom implementation, it is recommended to use available CDS views that serve the intended purpose.

-

The sample logic (when activated) restricts editing only to users assigned to project roles in the Information tab. An example is also provided to illustrate how you can check and process access for a user that is assigned to a communication scenario that enables business integration through an API.






Vendor Master (General Section)   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 3405 Date: 20240425 Time: 035927     sap01-206 ( 63 ms )