on 03-30-2020 11:58 AM
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,
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
88 | |
7 | |
7 | |
5 | |
3 | |
3 | |
2 | |
2 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.