cancel
Showing results for 
Search instead for 
Did you mean: 

Function module used for substituting in workflow

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

yann_bouillut
Active Contributor
0 Kudos

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

Answers (4)

Answers (4)

Former Member
0 Kudos

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

khan_voyalpadusman
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi

Yes , it is possible through function module to substitute approver in case of shopping cart also.

I have got my answer.

Regards

Ashish

khan_voyalpadusman
Active Contributor
0 Kudos

please let me know how to do that?

..

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

See the foll threads for using std SUBSTITUTE functionality:

<b></b>

BR,

Disha.

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

Former Member
0 Kudos

Hi,

Pls let me know if you got your ans.

otherwise follow the steps:

1.go to SE37

2.use RH_MAINTAIN_SUBSTITUTION

3.Fill the templates and in case of any doubts in filling up the template pls send the sceenshot to me on my rediffmail accnt:gopeshpandey@rediffmail.com will instruct you further.

But the best practice to ask your manager to add substitute.

Reward points if this suffices your query.

Brgds/Gopesh

Former Member
0 Kudos

Hi

We are using SRM 3.0 and there is no such function module as

RH_MAINTAIN_SUBSTITUTION

Please suggest

Regards

Ashish

Former Member
0 Kudos

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