pwill40
asked on
Infotype 0416 - Quota Compensation
We currently have a process where by employees are allowed to request to buy leave through ESS. When this happens a locked Quota Compensation (0416) record is created and a workflow sent to a line manager for approval. When the manager approves the 0416 is unlocked.
I am unlocking the 0416 using FM HR_INFOTYPE_OPERATION but have found that the days from the 0416 are not showing up as a deduction against the employees absence Quota (it2006).
If I unlock the 0416 manually using transaction PA30 then the leave does show up as a deduction against the 2006.
I have included the code I'm using to call the FM below. Any ideas would be appreciated.
Thanks,
Paul
************************** ********** ********** ***
call function 'HR_INFOTYPE_OPERATION'
exporting
infty = '0416'
number = p0416-pernr
subtype = p0416-subty
objectid = p0416-objps
lockindicator = p0416-sprps
validityend = p0416-endda
validitybegin = p0416-begda
recordnumber = p0416-seqnr
record = p0416
operation = 'EDQ'
nocommit = nocommit
importing
return = error_message
key = pakey.
I am unlocking the 0416 using FM HR_INFOTYPE_OPERATION but have found that the days from the 0416 are not showing up as a deduction against the employees absence Quota (it2006).
If I unlock the 0416 manually using transaction PA30 then the leave does show up as a deduction against the 2006.
I have included the code I'm using to call the FM below. Any ideas would be appreciated.
Thanks,
Paul
**************************
call function 'HR_INFOTYPE_OPERATION'
exporting
infty = '0416'
number = p0416-pernr
subtype = p0416-subty
objectid = p0416-objps
lockindicator = p0416-sprps
validityend = p0416-endda
validitybegin = p0416-begda
recordnumber = p0416-seqnr
record = p0416
operation = 'EDQ'
nocommit = nocommit
importing
return = error_message
key = pakey.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.