cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

confirmation in SRM 7

Former Member
0 Likes
854

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Likes

Hi,

Please find the below thread:

http://scn.sap.com/thread/3172222

Regards,

Abhi

Former Member
0 Likes

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

Former Member
0 Likes

Hi Lorry,

  Thank you for the answer. I tried it, and defined the Purchase Org in the Purchaser role, but then the user sees no PO. When adding * to the objects of the PLOG, the user sees all the PO's.

I need more ideas.

Regards,

Rami

Former Member
0 Likes

Hi Rami,

Is your role created like this?

Please use F4 to select purchase Org. or purchase group.

Former Member
0 Likes

Hi,

Yes, I did it, and defined as in your screenshot, and still the user sees all the PO's.

Regards,

Rami

RobinJanke
Contributor
0 Likes

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

Former Member
0 Likes

Hi,

Your answer was very helpful. Now, where can define the IV_USER in the user or in the role ?

Becuase I assume SAP gets this information from the user or his authorizations ?

Or, may be, it's in the customization ?

Thank you !

Rami

RobinJanke
Contributor
0 Likes

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:

  1. Get the employee to the current username
  2. Check if it is a purchaser
  3. Yes: make it a pro
  4. No: make it a desktop

Regards,

Robin

Former Member
0 Likes

Hi Rami,

As mentioned by Robin the user role DEKTOP & PROFI determines whether he is a standard goods receipient or centeral goods receipient. If you are using the NW portal then ask your portal guy to assign him the necessary portal roles whether user can access standard or centeral ?

Former Member
0 Likes

Hi All,

I sent a message to SAP, and got the following reply:

In the role (PFCG):

Menu -> Purchasing -> Purchasing -> Create Documents -> WDY_APPLICATION - Confirmation ->
Right button -> Details

sapsrm_user_type = PROFI

Change to DSKTOP

Regards,

Rami Kleiman

Former Member
0 Likes

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.

Former Member
0 Likes

Hello,

  You should apply the change in Create Confirmation and not in the Display Confirmation, as you did.

Regards,

Rami Kleiman

Former Member
0 Likes

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

Former Member
0 Likes

Hi,

I mean that in the Menu tab you should right-click on the create confirmation WD, and in the window that opens, you should change the value in the sapsrm_user_type to DSKTOP.

See the screenshot attached.

Regards,

Rami Kleiman

Former Member
0 Likes

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

RobinJanke
Contributor
0 Likes

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

former_member208675
Active Contributor
0 Likes

Hi,

Assign role /SAPSRM/RECIPIENT. It will resolve your issue.

Corresponding Portal role: Goods Recipient (com.sap.pct.srm.core.ro_goodsrecipient)

Regards,

Former Member
0 Likes

Hi, Vinay,

I assigned the role, and still the user sees all the PO's and not only his PO's.

former_member208675
Active Contributor
0 Likes

Hi,

Could you enlist list of roles you assigned to that user?

Regards,

Former Member
0 Likes

Hi,

The only standard role is /SAPSRM/OP_PURCHASER.

All the other roles are Z roles, and I can't understand what authorization object enables the user to see all the PO's.

Regards.

Former Member
0 Likes

Hi,

The only standard role is /SAPSRM/OP_PURCHASER.

All the other roles are Z roles, and I can't understand what authorization object enables the user to see all the PO's.

Regards.

former_member208675
Active Contributor
0 Likes

Hi,

Try with just /SAPSRM/EMPLOYEE role. Then user will see only his PO's. If you assign Purchaser role user will get to know about all PO's.

With /SAPSRM/EMPLOYEE manage other roles accordinly.

Regards,

Former Member
0 Likes

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