on 2012 Mar 14 6:24 AM
Hello,
We are upgrading from SRM 5 to 7.
I created a role with confirmation. The problem is that the user sees ALL the PO's, and not
only the PO's, where he is defined as the goods recipient of the PO.
Can you help me ? I want to create a role, that contains the confirmation TCode, but the user should see only
PO's that he is defined as the Goods Recipient.
Regards,
Rami Kleiman
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rami,
1. For filtering the POs which user can access, you can define a Z role using the purchase Org. & puechase group to restrict.
2.For filtering Open POs, you can define a new POWL query and set the PO status for it!
Lorry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey,
I guess it depends on the user role of the logged in user. There are 2 relevant ones here: DSKTOP and PROFI. These are determined if a user is an employee (not belonging to a purch grp) and buyer (belonging to a purch grp).
When a PROFI is used you HAVE to maintain a search parameter to look for POs in the backend otherwise the call to the backend fails with the error message that at least one search criteria needs to be entered and no results will be found
Put a break point in SE80 in Webdynpro component /SAPSRM/WDC_UI_BO_CONF_PS in the COMPONENTCONTROLLER and the method GET_PO_NUMBER on line 14 or so ( the first CALL METHOD). Change the value of lv_user to either DSKTOP or PROFI and observe the different behaviour.
Regards,
Robin
Hey Rami,
A typical example that determines the type of the user is the following code:
lo_employee = cl_bbp_es_enterprise=>get_employee_by_username( sy-uname ) .
CALL METHOD lo_employee->is_purchaser
RECEIVING
rv_is_purchaser = lv_is_purchaser.
IF lv_is_purchaser = abap_true.
lv_user_type = /sapsrm/if_pdo_search_c=>gc_user_type_profi.
ELSE.
lv_user_type = /sapsrm/if_pdo_search_c=>gc_user_type_desktop.
ENDIF.
Meaning:
Regards,
Robin
I have similar problem so i need support
I have only 1 Z role assigned to user EMPLOYEE_EHP1 copied from standard SRM role
And in Shopping Area menu
in POWL Query - Confirmation's instead of seeing only personal confirmation's or confirmation's related only to his own purch org and group user see all confirmations for all purch org and group
Requestor ( with employee role only ) should see only confirmation *600 the rest of them should not be visible because they belong to other purchasing org and purchasing groups.
Hi Rami
thanks for your support
You mean that in Authorization of the role i have in BBP Component -> SRM: Confirmation in EBP
I have there as activity only "Change" and i should have also for display ?
If yes,
I already put there, display, created, delete, reverse ( all options ) , and user can still see in POWL Confirmation query all confirmation's from all purch. org. and not only from his
Any other instructions
Many thanks !
Madalin Negrea
Yes but screenshot that you are showing is for purchaser role
I'm speaking for a person that has only Employee_EHP1 role, and in Shopping Area -> in POWL he has 2 queries, 1 to see his own SC and 1 to see confirmation's
I have no problem if he can see confirmation's for all his Purch. Org and not only his own confirmation's, but the problem now is that he can see confirmation's for all purch.orgs that works in SRM
Hi Rami,
I think the only way to achieve this is to implement the BBP_WFLIST_BADI to restrict the shown purchase orders. The function that provides the list of orders doesn't filter on recipient (on purpose).
Regards,
Robin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Assign role /SAPSRM/RECIPIENT. It will resolve your issue.
Corresponding Portal role: Goods Recipient (com.sap.pct.srm.core.ro_goodsrecipient)
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The role of Employee doesn't have the Confirmation TCode.
I assigned the user both the Purchaser and the Employee roles, and the user again sees all the PO's. When I assigned only the Purchaser Role, the user doesn't see any PO. When doing a trace on that, the trace shows that some object authorizations of HR are missing. When adding the HR objects, again the user sees all PO's.
Regards,
Rami
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.