Skip to Content
avatar image
Former Member

“User is not allowed to approve his own change request”.

We do have requestor and approver both are having same role and hence, requestor can approve CR and approver can raise CR. In this case, how can we restrict for a particular user is not allowed to approve his own CR.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    Mar 24, 2014 at 01:43 PM

    Hi Victor ,

    In  this case at the User  Agent Decision Table you have to assign different  User Id means as approver user Id ..

    So that Request has only raise the CR and Approver have approve the CR.....

    Thanks

    Nikhilesh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 26, 2014 at 03:55 PM

    Hello,

    You have the same question posted here: http://scn.sap.com/thread/3525119.

    Please post questions only once so that all related information is in one place.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I see your point. However, it is the same concept; you are trying to "exclude" agents from being included in a specific step. This agent can be the previous agent or the CR initiator. As I mentioned in that post, you can update the list of excluded agents for this.

  • avatar image
    Former Member
    Mar 27, 2014 at 04:52 AM

    Hi,

    Check Badi USMD_SSW_DYNAMIC_AGENT_SELECT.

    Create an implementation for this Badi, where user agents could be changed dynamically.

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 27, 2014 at 02:37 PM

    Hello Victor

    I am not expert in workflow but can give one suggestion. In your UI screen, add one more custom field (no need to replicate) and ask the requester who is approver also to choose the other user id. Once the requester submit the request, take the user id  from the CR entered by your requester as a a approver and then get it approved.

    Kiran

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 08, 2014 at 08:32 AM

    Hi Victor,

    Have you been able to solve this problem?

    I can't see this question being answered anywhere. And I don't have the asnwer :-) but looking for it. Facing same issue with MDG-S/C 7.0 where users might have multiple roles like reqeustor, approver. I would appreciate if you could share your findings.

    Andrzej

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 08, 2014 at 08:44 AM

    Hi Victor

    Can you check possibility by assing below roles?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Sanjay,

          The given problem has been resolved. The given problem can not be solved only by separating the role through pfcg. During separating the role, you are only separating the user. Here, Validator and Approver also can create CR and that time respect to that CR, their role will be requester not validator or approver.

      So, what exactly you need to do...go to class builder and get into the CL_USMD_CR_GUIBB_GENERAL_DATA. Under this class interface go to "process_event" method and write a logic which will restrict user for not to approve his own request.

      Victor