Infotype 0416 - Quota Compensation

Posted on 2003-03-13
Medium Priority
Last Modified: 2013-12-08
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.


  call function 'HR_INFOTYPE_OPERATION'
      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
      return        = error_message
      key           = pakey.
Question by:pwill40
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment

Accepted Solution

sharadd earned 120 total points
ID: 8133524
Hi pwill40
I think you are passing wrong parameter in Nocommit.

Just check the value you are passing.

you should pass '2' in nocommit. But looking at the code of function module it changes the value of LUW_MODE ( used internally by above FM and then passed to dialog module
HR_MAINTAIN_MASTER_DATA ) to 0( irrespective of what you pass in nocommit). And to effect the changes this value should be 2.

Now if you read the documentation of above FM there are some parameters which you will have to maintain in dialog module. So you will have to use the dialog transaction to update the values.

But it seems you want to do it in background. Why don't you try to run the dialog transaction in batch mode.

I hope this will help you.



Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Messaging apps are amazing tools with the power to do a lot of good, but the truth is the process of collaborating with coworkers requires relationships established through meaningful communication - the kind of communication that only happens face-…
Let’s face it: one of the reasons your organization chose a SaaS solution (whether Microsoft Dynamics 365, Netsuite or SAP) is that it is subscription-based. The upkeep is done. Or so you think.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question