Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP HR Development

Former Member
0 Likes
397

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,

1 REPLY 1
Read only

Former Member
0 Likes
357

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.