on 05-02-2013 6:28 PM
Hello All,
Can any one please help me How to check whether an agent is Approver or Substitute in SRM.
Thanks in Advance,
Harsha
Hi Harsha,
you could try table SWWUSERWI with current workitem.
If user assigned to workitem - you can recognize him as an approver.
Best Regards
Konstantin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Konstantin,
Thank you very much for your quick response.
My Requirement :
If an Approver is on leave then the substitute has to process the request(Workitem) it is what generally happens. But as per our business scenario we need to restrict the Substitute to process the request (Workitem).
That means i need to check whether the agent is approver or substitute so that i can restrict him to process the request(Workitem) if he is a Substitute.
Please let me know if you need more details.
Thanks in Advance
Harsha
Hi Harhsa,
as I said, Table SWWUSERWI might be helpfull to you.
This table has an assignment of Workitems to agents (as far as I know, substitutors are not there).
For example if you made a check in CHECK-BADI, you can retrieve actual workitem via method:
lo_sc->/SAPSRM/IF_PDO_ADV_BASE~GET_WIID()
where lo_sc if the instance of your shopping cart...
Usually can be received via /SAPSRM/CL_PDO_FACTORY_SC_ADV=>GET_BUFFERED_INSTANCE( iv_guid )
I had the same requirement in the past. But I solved it in another way - I filtered Infox of user via BADI - so he could see only direct assigned workitems...
Best Regards
Konstantin
HI Harsha,
you can chec the substitute details in HRUS_D2 table, beofre agent taking action you see whether he is the approver for that work item under SWWUSERWI, if it is not there then he is the substitute also you can cross verify the substitute details in HRUS_D2.
i hope it is usefull
Regards,
Raghu
HI
we have a requirement of creating a report where in we need to show the work item was approved by a Original approver or a Substitute approver. In table HRUS_D2 as soon as we remove the substitute the entry is deleted with that table. How can we find through out year how many substitutes have approved the shopping cart. Is there a table where original approver and Substitute approver are stored toghether for reporting purpose.
Thank you
Nimish
Hi Nimish and all,
I have same requirement to display original approver in report where substitute person has approved shopping cart.
Any one achieved it ? please let me know if this can be achieved via report or not or we need to fetch this at runtime from SWWUSERWI table and display in an additional field in webdynpro ??
Thanking you.
Regards,
Kunal Sanghavi
User | Count |
---|---|
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.