Skip to Content
author's profile photo
Former Member

Function module used for substituting in workflow

Hi

I require the name of the function module through which i can substitue somebody incase of approver in shopping cart approval.

The scenario is manager is on sick leave till 3 days and i want to substitute him by someother person. How can i do that.

Please don't get confused by forwarding the shopping cart . I am aware of that.

Regards

Ashish

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    Posted on Sep 27, 2007 at 02:15 PM

    Hi,

    Check the following prog and FM :

    program : RMPS_SET_SUBSTITUTE

    FM :

    RH_UPDATE_SUBST_LIST_SERVER

    RH_SUBSTITUTE_GET

    RH_SUBSTITUTE_LIST

    Kind regards,

    Yann

    Message was edited by:

    Yann Bouillut

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 05:59 AM

    Hi,

    See the foll threads for using std SUBSTITUTE functionality:

    want-to-know-about-substitute-functionality-in-srm

    adding-a-substitute-approver-for-the-absent-person

    <b>substitute-n-forwarding</b>

    substitute-functionality

    BR,

    Disha.

    <b>Pls reward points for useful answers.</b>

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 27, 2007 at 09:48 PM

    Ashish

    Why dont you use Substitute functionality in that case?

    Approver can always maintain the substitute approver with a date range.

    This is standard in SRM.

    Regards

    Jagadish

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 28, 2007 at 09:36 AM

    Hi Ashish,

    I am sorry but it is not possible to substitute somebody in case of shopping cart approval with the function module.

    what you want is that

    1) approver1 has got one shopping cart , pending for approval , and he is on leave.

    2) with function module you want to substitute approver1 to approver2.

    This way of substitution is not possible in workflow using function modules , because to achieve what you want , we need to change the workflow container.

    In the workflow container the approver details are filled in table approval_agent.

    If you want to achieve this apart from SRM function modules , you should also use

    the Basis function modules dealing with workflow.

    This is because what ever changes made in the container are affected by the basis workflow modules.

    even if you do find out the function modules , it possible to give input manually to these function modules , because all the information for these is filled during runtime.

    award points if usefull

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member khan voyalpad usman

      Hi

      Sure,

      There is a function module "SWL_SUBSTITUTION_DEFINE".

      Let me explain with the help of example , lets say there is a approver X and approver Y. Now when X is onleave for certain period ( Validity period ) then you want that shopping cart to be approved by Approver Y. ie you want to substitute approver X by Approver Y

      So, execute the function module "SWL_SUBSTITUTION_DEFINE" and give the user id of approver X then one POP will appear there give the validity period and user id of approver Y and there is a check box to say substitute.

      then it will be done.

      Thanks and Regards

      Ashish

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 10:23 AM

    Ashish

    The easiest way to do this is to create a maintenance view on table HRUS_D2.

    You then simply add the entries into the table. If you want the substitution to be 'active' simply select the flag.

    Keith

    Add comment
    10|10000 characters needed characters exceeded