Documente Academic
Documente Profesional
Documente Cultură
APPLIES TO:
GOAL
SOLUTION
In issues related to Payroll reporting, Payroll Archive, View Balance and View Tax forms, HRMS stores balances in various
places, however PAY_BALANCE_PKG.GET_VALUE function is used by application a lot and ultimately it returns what the
system thinks the balance is.
select text
from all_source
where upper(name) = upper('pay_balance_pkg')
and text like '%Header%'
and owner = ‘APPS’;
TEXT
--------------------------------------------------------------------------------
pybaluex.pkh
pybaluex.pkb
There are 4 variables that we need for the get_value call in assignment_action mode:
- tax_unit_id (for set_context)
- jurisdiction_code (for set_context)
- assignment_action_id (for get_value)
- defined balance id (for get_value)
Navigate to View > Assignment Process Results form > Query an employee > Click on SOE Report button
1. Assignment_action_id:
Go to help Diagnostics > Examine, enter apps password
2. Jurisdiction Code
Block LOV: EMPINFO
Field LOV: JURISDICTION_CODE
Value = 44-000-0000
3. Tax Unit Id
Block LOV: EMPINFO
Field LOV: TAX_UNIT_ID
Value = 202
4. Defined_balance_id
Navigate to Total Compensation > Balance > Query relevant balance (Time Entry Wages) > click on Dimensions button. Click on
needed dimension (Assignment within Government Entity Year to Date). Go to help Diagnostics > Examine, enter apps
password
Final Script
'Set serveroutput on' command is important - without this command the balance call output will not be shown on the SQL plus
window.
Declare
balance number;
Begin
pay_balance_pkg.set_context ('JURISDICTION_CODE','44-000-0000');
pay_balance_pkg.set_context ('TAX_UNIT_ID', 202 );
balance := pay_balance_pkg.get_value (31597, 1578031);
DBMS_OUTPUT.PUT_LINE('balance '|| to_char(balance));
end;
/
Result is:
PL/SQL procedure successfully completed.
balance 259.43
Note: The above is a sample script for Oracle Payroll customers to customize and configure.
REFERENCES