Proportional Assignment to Several Company Codes within a Payroll Period when using Company Code Clearing Accounts 
Use
If an employee works for several company codes within a payroll period, the expenses incurred are distributed to these company codes on a proportional basis. However, the system assigns the relevant payables to the company code in which the master cost center is located to which the employee was assigned on the last day in the payroll period.
In this way, receivables and payables incur between the company codes. They appear as balances on the company code clearing accounts.
In the following cases, an employee is proportionally assigned to several company codes:
You can find more information on cost distribution and cost assignment under
Posting-Relevant Information from Master Data, Time Data and Organizational Management.The graphic shows an example of an employee who works for two company codes. To simplify the explanation, no other payments or deductions are taken into consideration in this example.

In this example, the following expenses incur during posting:
The payables of 10,000 are posted to company code 0001.
The receivables and payables between the company codes are paid to the company code clearing accounts set up for this purpose.
Activities
The balances of the company code clearing accounts correspond to the receivables and payables between the company codes.
You must manually clear the receivables and payables between the company codes. When doing so, you also clear the balances of the company code clearing accounts.