cancel
Showing results for 
Search instead for 
Did you mean: 

More than one approver person on Projects

former_member599308
Participant
0 Kudos

Hi Everyone,

We use "Time Sheet - Approver Determination" BAdi to make approvement on 1A8 Internal projects and others.

In this Badi approverperson is output field and only one person number could be determined.

Is it possible to to approver more than one person? For example a department's personels could be responsible to approve activity time sheet or two project manager could be the approver line.

It seems it is not possible with this badi but may be we have other solutions.

Thank you,

Kind Regards,

View Entire Topic
Feras_Al-Basha
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi resulsmsk_01 ,

Thank you for reaching out.

The time-sheet approval determination BADI as you mentioned has an output field equal to the personal number. It is possible to maintain different approvers for different use-cases.

For instance, the cost center responsible should be the approver for non-project related tasks and for certain projects perhaps the approval of time should be re-routed to the line manager. This is a question of the code implemented in the BADI. Which is dependent on customer specific requirements, hence cannot make a comment on the code line.

One tip would be perhaps to declare constant variables on the top of the code line that will hold the values of the specific personal numbers to the approver persona for a given use-case. This will facilitate making changes to the code-line and accommodate new requirements.

Sample code for declaring variables:

CONSTANTS: c_hrapprover TYPE n LENGTH 8 VALUE '5000XXXX', "John Smith"

"c_linemanager TYPE n LENGTH 8 VALUE '5000XXXX'. "Isabella Santos"

Thereafter you could use the session variables when assigning values to the approverperson output.

WHEN 'A1' *A1 would represent a non-project related task ex: vacation.

approverperson = c_hrapprover.

Hope this helps.

Feras

Feras_Al-Basha
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi resulsmsk_01 ,

I don't think that the BADI prevents you from coding that logic i.e. routing the approval to two individuals simultaneously.

What is important to verify/test is if the final time-approval takes place once both approvers approve the time-sheet or the time is approved once one of the managers approves.

Hope this helps.

Feras

former_member599308
Participant
0 Kudos

ferasbasha3

Thank you for your comments.

In conclusion, we can not use John and Isabella two responsible person for same approvement.

Is that correct?

Thank you,

Kind Regards,

epeet
Participant
0 Kudos

ferasbasha3 in this article https://blogs.sap.com/?p=706, Akshay gives a very clear example for customer projects. Do you have a general example for enterprise projects as well? How do we determine the project manager for enterprise projects as the project manager is not available in the I_ProjectEnterprise view.

Thank you for your help!

Esmee

vhardzeyenka
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Feras.

Sorry, but how this helps to make a solution of multiple approvers for one project?