‎2011 Aug 01 6:16 AM
I need to code in ABAP, a determination of possible Workflow receivers base on an authorisation amount stored in HR. i.e i need to extract from HR whether a user has the correct authorisation to approve a workflow based on the users amount
e.g if i have an invoice for $500,000 and the user is only able to approve invoices up to $100,000 i need to find the users manager and check if he has authorisation to approve an invoice for $500,000 and keep going up the org chain to find the user that does.
Do you have any info on what infotype i would use, function modules etc ?
thanks,
‎2011 Aug 01 7:46 AM
Hi,
Use FM : RH_GET_LEADER to get the users manager ..
pass the below ..
PLVAR = 01
KEYDATE = <date>
OTYPE = P
OBJID = <users ID>
get the managers ID in LEADER_ID .. check if this person has auth. to approve the amount .. if not again use the same FM
passing the leaders ID.
Regards,
Srini.