on 02-26-2015 11:20 AM
Hi,
We want a user with write authorization on phase level to resolve checklist reference(Creating checklist from checklist template added under phase) under the same phase. As in standard it requires admin authorization of superior element to create child element. i.e. At phase user must have admin authorization to create checklist / resolve checklist reference. So is there any authorization object or BADI available to fulfill this need ?
Regards,
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alex,
I would prefer other way to fulfill the functionality.
There is a static method CL_DPR_AUTHORIZATION_SERVICES~ACTIVATE_CHECK, which allow you switch on and switch off the authorization check. The idea is to switch off the authorization before the action is done, and switch on the check after the action is done. Surely you can put some own check before the switch off (e.g. the user need at least the Write).
Kind regards,
Zhenbo
Hi Zhenbo,
Thanks for quick response. We saw this method it will switch off the authorization i.e. We need to call it before button clicked resolve reference and do the necessary check, Afterwards when it get's resolved we need to recall this method to switch it on. If there is any gap in our understanding please put some more light on it. Any working example would be cherry on the cake.
Regards,
Alex
Bump!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Alex,
all available BAdIs for for PPM can you find in note 1417134 (excel-file), but I could not find a suitable BAdI to influence the authorization check.
You may enhance the following coding CL_DPR_UI_SERVICES, method GET_AUTHORIZATION_FOR_USER (using an exit).
Best regards,
Judith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Judith,
Yes we have seen both the excel sheets attached with note 1417134, but there isn't seems to be any for our requirement. Now your given method helps in determining the authorizations for user. However, we don't find any exit which is called after/before this method .
Even if we go for an implicit enhancement the IV_GUID in import parameter is of 'Path to root object' so unable to derive whether it is checklist reference or other element.
Regards,
Alex
Dear Alex,
you can use a pre- or post-exit in the method GET_AUTHORIZATION_FOR_USER (class
CL_DPR_UI_SERVICES).
Before calling the method GET_AUTHORIZATION_FOR_USER the following 2 methods are called,
where a check on the object-type is done in a loop:
CL_DPR_UI_LOG_TREE, method GET_NEXT_LEVEL
CL_DPR_UI_LOG_TREE, method GET_TREE_DATA
Best regards,
Judith
Well Judith now when this method is called we are not able to identify the checklist reference which is called for resolve.
e.g. Let's say checklist reference under Phase A has been click for the resolve but this methods are also showing checklist reference which is not under Phase A so it becomes difficult to allow authorization for the same.
In addition to that this methods are called on loading of project screen as well as when opening any project element.Which may impact performance in future. We are looking for something that may occur when checklist reference resolve button is clicked.
Regards,
Alex
User | Count |
---|---|
8 | |
7 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.