UK Payroll Query
Hi,
I need to pull out few PERNRs from diffrent payroll areas whose hiring date is 01.04.2013 and Retroactive accounting must be done for them after April 2013. Plese help
You can select the employees using a variety of reports or transactions. Ad hoc query is one, as is the Flexible Employee data report. An easy way would be SE16, for PA0000, looking for a hire action for date = 01.04.2013.
Report RPUTRBK0 can be used to set the retro dates on mass for the PERNR selected in the above report.
Similar Messages
-
Hi Members,
My Query is on payroll. I have created payroll area and tried to create a control record with rectroactive accounting date as jan 2011 and Payroll period date as Aug 2011. When Iam trying to save the record it is showing error as Payroll period doesnot exist in table t549q.
When Iam trying to go to that particular table it is asking period parameter.
Kindly help me in this issue.
Thanks in Advance!!!!
RegardsBelow are the steps needs to be performed inorder to create a Control Record:
1) Need to define Period Parameters in table : V_T549R (here you say, what is the pay period lengh, monthly, bi-weekly etc)
2) Define Date modifier:V_T549L (This is only needed if you have people getting paid on different dates, though their pay frequency is same like Monthly, or bi-weekly, most of the clients go with Standard modifier which is blank value.
3) You need to setup your payroll area in the table : V_T549A : (Where you have some text to your payroll area and attached the period parameter which defined in the first step)
4) Before u create control record you need do one more step here
5) Run the report RPUCTP00 (through SE38 or through config node) to generate payroll periods, these periods are needed to set up control record. so this step has to be done before you create your control record
6) The input values for this report, you have already defined, if you want the meaning of them you can go ahead with F1 and read the document.
7) DONT forget to check the box in the report screen "Carry out table Changes"
8) Come back to step 4 and go ahead with your control record.. - you have every thing setup for your control record
I dont see, if you get struck after you follow these steps.. - Reward the points if it resolves your query - Thank you! -
Query performance differs in different databases
Hi,
I have a Payroll Query which is executing in 1 minutes in one database.
The same query, its taking hours to execute in another instance and still not producing any results.
Gather Schema Statistics has also been run but still no use.
Any suggestions on this?
Thanks
--KumarThank you so much for the advice.
I got my issue resolved.
After comparing the Explain Plan,
i have run "Gather Table Statistics" for the 2 tables which i suspected.
Now it works fine taking not more than 20 Seconds.
Thanks
--Kumar -
Displaying Customer Exit Variable with derived value from another ODS
Hi All,
Sorry if this question has been answered before. I searched the forums and could not find anything specific to my problem.
I am new to BEx Query. Customer is requesting a variable(s) be created which will be displayed as a column along with other CKF and RKF. This query is a payroll query for US/Canada. This new variable will be based on the user input date for the query. We are to take this date and go look up the actual pay date for the pay period to which the user input date belongs. The pay date is stored in another ODS.
So far, as far as the changes to the Customer Exit ZXRSRU01 are concerned, I would perform the logic when I_STEP = 2. Do a basic selection off the second ODS, derive the pay date, and store in range table E_T_Range.
The data displayed off the user input date is displayed in rows. This is done six times, going back seven days for each row (first row is data for period user entered date to user entered date - 7 days; second row is data for period user entered date - 7 days to user entered date - 14 days; etc ...). For this to happen correctly, I am assuming the variable(s) are to to have characteristic types 'Not ready for input', 'Mandatory', 'Customer Exit', and 'Single Value'.
My question is ... How do I display the six variables in columns (how are they to be defined in the query) and the characteristics I list above, are they correct? Does this need to be a replacement path variable?
Thanks.
Edited by: Amir Hasan on Jun 11, 2009 6:24 PM
Edited by: Amir Hasan on Jun 11, 2009 6:25 PMHi Amir,
What i can understand from u r requirement is you want to few columns that will show something like below,
User entered date = x
Period of X to Period of (X-7) Period of X to Period of (X-14).....
This can be done by CMOD for variable only.
Logic steps :
1) Take the user input.
2) Find out the period by using T009B table and store in temp variable.
3) Do day -7 and find out period for the same
4) Assing period of X to ls_range-high range and X-7 to ls_range-low.
Let me know if you have any doubt
Regards,
Viren -
Adhoc query - Total payroll day issue on infotype 2001
Dear Expert,
I am working on the adhoc query and would like to generate the total number of payroll days taken by a particular employee.
E.g. Employee A has 4 leave record in Nov 2011
14-Nov, 16, Nov, 23 Nov, 25 Nov
When I select the reporting period between 1-Nov-2011 to 30-Nov-2011, the total payroll days generated by the adhoc query is only 1. I am not sure why. Please help
Best Regards,
WFHi,
Might be remaining days are Non working days/Weekly offs/ Holidays falls..
You Better Check through PA30 Overview of Absence records, Whether the Days are deducted from Quota or not.
Need to check absence class in V_554s_0 -
Hello,
I need Oracle Payroll SQL Query with result:
First_name, Last_name, Payment_amount, Pay_date, Payroll_Frequency, Employement_status
Any Help would be greatful appreciatedYou will need the following tales.
per_all_people_f, per_all_assignments_f,pay_run_results,pay_run_result_values
Query would e something like :
select papf.first_name,
papf.last_name,
prrv.*
From apps.per_all_people_f papf
apps.per_all_assignments_f paaf
apps.pay_run_results prr,
apps.pay_run_result_values prrv
Where papf.person_id = paaf.person_id
and papf.business_group_id = paaf.business_group_id
and papf.current_employee_flag = 'Y'
and paaf.primary_flag ='Y'
and paaf.assignment_type = 'E'
and trunc(sysdate) between papf.effective_start_date and papf.effective_end_date
and trunc(sysdate) between paaf.effective_start_date and paaf.effective_end_date
and prr.assignment_id = paaf.assignment_id -
Ad-Hoc Query reporting off of Payroll Results Infotypes
Dear Experts,
Has anyone used the Payroll Results Infotypes (IT0448 - IT0464) to create Payroll Results reports using Ad-hoc query? I would appreciate it if someone could enlighten me as to how to get the Cluster Data into these Infotypes.
Cheers,
VenkataI tried this option but was able to succed so
Fetched the data through the use of the functional module and desigend the code as per the client requirment
Pasteing the code
DATA: payroll TYPE pay99_result.
DATA : BEGIN OF itab OCCURS 0,
srno TYPE sy-tabix,
pernr TYPE pa0001-pernr,
ename TYPE pa0001-ename,
location TYPE pa0001-zz_loca,
dept TYPE pa0001-zz_dept,
hq TYPE pa0001-zz_hq,
desig TYPE hrp1000-stext,
pay_day TYPE pc207-anzhl,
basic TYPE p0008-bet01,
con TYPE p0008-bet01,
hra TYPE p0008-bet01,
hra_o TYPE p0008-bet01,
trans TYPE p0008-bet01,
we TYPE p0008-bet01,
oth TYPE p0008-bet01,
tal TYPE p0008-bet01,
a_loan TYPE p0008-bet01,
h_loan TYPE p0008-bet01,
p_loan TYPE p0008-bet01,
total TYPE p0008-bet01,
t_ded TYPE p0008-bet01,
net_sal TYPE p0008-bet01,
END OF itab,
ipa0001 TYPE STANDARD TABLE OF pa0001 WITH HEADER LINE .
the help of technical consultant is needed
Edited by: Sikindar on Oct 27, 2009 7:46 AM -
SAP Adhoc Query by payroll area and respective periods
Hello,
I would get an idea of how to make SAP query by having a selection screen for Payroll area and its respectve periods (respective control record). I was able to get the selection screen where I can input payroll area. But the date range for the report is a manual feed. I want something like when we select the payroll area, then I want the periods to be shown (payroll period - current period or other period). I'm new to making this SAP query. Any inupt is appreciated. Thanks.
Raj.in the adhoc query we can select the periods based on the frequency but the dates will not get default
As in the Pay roll driver the dates get defaulted based on the settings made in Control Record Status
so i dont think this is possible thru Standrad
let wait for expert views -
Can we use ad hoc query to get a temporary report of payroll result?
Hi,All
can we use ad hoc query to get a temporary report of payroll result?or we have to get a report of payroll result by customizing and ABAP?
and how can I customizing a report on the basis of standard SAP report for payroll?Hi
As of my Knowledge You cannot get the payroll report through Adhoc query you have to go for ABAP Devlopment
Thanks
Mahantesh -
GET PAYROLL And GET PERNR Events .. Query
Hi All
I have used Get Payroll Event to fetch data from Database for Payroll Reporting.
It work fine for me till now..
But i am not sure that ,it can be used indiviusally without GET PERNR Event.
And wht are the other conditions to be usedd in Get Payroll Event...
Regards
LakhanPernr Is the personnel numbers
for a particular Country
Country you can use MOLGA
GET PERNR
GETPAYROLL
You can loop and get the resuults for the Employee for that particulat Country
Ok
Take Care -
Query to pick up people of retirement age 1 year in advance
Hi,
I wrote the below query to pick up all staff who will be of retirement age in a year's time. This will be used in an alert that must go to payroll 1 year before retirement date, then 6 months before retirement date and then finally 1 month before retirement date.
select distinct papf.employee_number
, papf.full_name
, apps.meds_hr_util_pkg.return_department(papf.person_id) org
, papf.date_of_birth
, (select payroll_name from pay_all_payrolls_f where payroll_id = paaf.payroll_id) payroll_name
, (select first_name||' '||last_name from per_all_people_f where person_id = paaf.supervisor_id and trunc(sysdate) between effective_start_date and effective_end_date) mgr
, (select email_address from per_all_people_f where person_id = paaf.supervisor_id and trunc(sysdate) between effective_start_date and effective_end_date) mgr_email
, add_months(to_date(DECODE(to_char(papf.date_of_birth, 'DD-MON'), '29-FEB', '28-FEB', to_char(papf.date_of_birth, 'DD-MON') ) ||to_char(sysdate, '-YYYY')),-12) date_12month_advance
, add_months(to_date(DECODE(to_char(papf.date_of_birth, 'DD-MON'), '29-FEB', '28-FEB', to_char(papf.date_of_birth, 'DD-MON') ) ||to_char(sysdate, '-YYYY')),-6) date_6month_advance
, add_months(to_date(DECODE(to_char(papf.date_of_birth, 'DD-MON'), '29-FEB', '28-FEB', to_char(papf.date_of_birth, 'DD-MON') ) ||to_char(sysdate, '-YYYY')),-1) date_1month_advance
, trunc(months_between(add_months(to_date(DECODE(to_char(papf.date_of_birth, 'DD-MON'), '29-FEB', '28-FEB', to_char(papf.date_of_birth, 'DD-MON') ) ||to_char(sysdate, '-YYYY')),-12),papf.date_of_birth)/12) age_12mon
--into &emp_no, &emp_name, &org, &date_of_birth, &payroll_name, &mgr, &mgr_email, &retirement_date
from per_all_people_f papf
,per_all_assignments_f paaf
,per_person_type_usages_f pptuf
,per_person_types ppt
where papf.person_id = paaf.person_id
and trunc(sysdate) between papf.effective_start_date and papf.effective_end_date
and trunc(sysdate) between paaf.effective_start_date and paaf.effective_end_date
and paaf.primary_flag = 'Y'
and paaf.assignment_type = 'E'
and papf.person_id = pptuf.person_id
and pptuf.person_type_id = ppt.person_type_id
and trunc(sysdate) between pptuf.effective_start_date and pptuf.effective_end_date
and ppt.system_person_type = 'EMP'
and ppt.user_person_type != 'Pensioners'
and trunc(months_between(add_months(to_date(DECODE(to_char(papf.date_of_birth, 'DD-MON'), '29-FEB', '28-FEB', to_char(papf.date_of_birth, 'DD-MON') )
||to_char(sysdate, '-YYYY')),-12),papf.date_of_birth)/12) >= 62
and trunc(sysdate) in (add_months(to_date(DECODE(to_char(papf.date_of_birth, 'DD-MON'), '29-FEB', '28-FEB', to_char(papf.date_of_birth, 'DD-MON') ) ||to_char(sysdate, '-YYYY')),-12)
, add_months(to_date(DECODE(to_char(papf.date_of_birth, 'DD-MON'), '29-FEB', '28-FEB', to_char(papf.date_of_birth, 'DD-MON') ) ||to_char(sysdate, '-YYYY')),-6)
, add_months(to_date(DECODE(to_char(papf.date_of_birth, 'DD-MON'), '29-FEB', '28-FEB', to_char(papf.date_of_birth, 'DD-MON') ) ||to_char(sysdate, '-YYYY')),-1)
and to_char(papf.date_of_birth, 'DD-MON') != '29-FEB'
order by 1
The query works only when I have this line in
" and to_char(papf.date_of_birth, 'DD-MON') != '29-FEB' "
As soon as I remove it I get an ORA-01847: day of month must be between 1 and last day of month error. I can't seem to figure out why because there is 1 person with a birth date of 29-FEB and I am catering for this in the query. Also, I am using TO_DATE for the values so using add_months and months_between should not be an issue.
Please help....maybe someone else can see something I am missing...
Thanks
ShalanthaHi,
To find people who are 65 years old (or older) as of today, you can simply say
WHERE date_of_birth <= ADD_MONTHS ( SYSDATE
, -12 * 65
)ADD_MONTHS knows how to adjust for leap years, but it may not adjust for them the way you expect.
If today is February 28, 2013, the condition above will include people born on Februry 29, 1948. That's actually 1 day before they reach 65. If that's a problem, the solution is slightly more complicated.
If today is March 1, 2013, it will include people born on Februry 29, 1948.
If today is February 29, 2012 (or February 28, 2012) it will include people born on February 28, 1947, but not people born on March 1, 1947.
To find people who will be 65 years old (or over) 3 months from today:
WHERE date_of_birth <= ADD_MONTHS ( SYSDATE
, (-12 * 65) + 3
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and also post the results you want from that data. Simplify the problem as much as possible.
Explain, using specific examples, how you get those results from that data.
Always say which version of Oracle you're using.
Edited by: Frank Kulash on May 26, 2011 11:48 AM -
UK Payroll : /111 Splitting
Hi Experts,
The issue is regarding with wage type /111 and related PCR.
We have one customized wage type 1234 in IT0014. As per the requirement it should calculate percentage of /111 and percentage will be given in IT0014.
For this we have written one customized PCR, working fine. However whenever EE salary changes (increase) in retroactively /111 is splitting twice (In RT table it is showing both cumulated value) and WT 1234 is calculating percentage on first part of /111.
Ex: Employee April’14 month /111-pensionable pay are £1000 (Monthly salary is also £1000) and April’14 payroll has been run, WT 1234 value is £100 which is 10% of /111.
In May’14 the EE Monthly salary increased to £2000 with effective 15.04.2014. While running retro for April’14 in May’14, WT /111 are splitting into two parts. One is £1000*14/30=£466.67 & 2000*16/30=1066.66 at processing level (in RT it is showing 1533.34, Correct value). Based on increase of /111, the WT 1234 value should be 153.34 (466.67+1066.66=1533.34), however in RT table I can able to see only £46.67 which is calculating percentage on the first part of /111.
As per the requirement my WT 1234 value should be calculate on final value of /111 rather than first part of /111 even though retro process happened.
I have enter my PCR in ZGL0 sub schema I have also tried to add this PCR after GPENS, but no luck.
Request you to help me am I missing anything.
Many Thanks..
Regards,Hi Sven,
I have tried with using ACTIO and Elimi but no luck.
Could you please confirm how we need input these the above function and operation.
And also confirm do we need to set up any processing class in this particular scenario,please confirm. Below is my PCR and input entered in schema.
ADDWT * OT Output table
3
WGTYP? Query wage type
ADDWT * OT Output table
1234
AMT= /111 Set
AMT*1000 Multiplication
NUM= 1234 Set
MULTI ANA Multipl.amt/no/rate
AMT/100000 Division
ADDWT * OT Output table
ZERO= N AmtNumRteTime = 0
ADDWT /101 OT Output table
ADDWT /105 OT Output table
ADDWT /121 OT Output table
ADDWT /131 OT Output table
ADDWT /132 OT Output table
ADDWT /141 OT Output table
Below is the input enter’s in ZGL0 schema
Parameter one PIT
Parameter two PCR
Parameter GEN PIT
Could you please advise.
Regards, -
Question on Third Party Payroll Check in XML Publisher
Hi:
I have created an XML Third Party Check report that is based on the queries found in the seeded Oracle PAYUSGAR.rdf 115.24 check report. The patch 9211869 fixed an issue in the standard report where multiple checks for the same employee to the same payee for the same amount were NOT printing the correct garnishment reference number. I have reviewed the report code but have not been able to fix this same issue through XML.
My queries will produce all of the correct data except the 2nd duplicate (same employee to the same payee for the same amount) prints the reference number from the 1st element rather than the 2nd. Does anyone know how the check data is tied to the elements through the tables?
My example is:
Person: Max Doe Check: 1234 Paid to: California Agency Check Amount: 121.00 Pre_payment_id: 766297 Ref # 4567
Person: Max Doe Check: 1234 Paid to: California Agency Check Amount: 121.00 Pre_payment_id: 766302 Ref # 657AA
(Ref # 657AA prints on the second check as Ref # 4567)
The query from the report is:
SELECT peev.screen_entry_value garn_ref_no
,:check_amount
,TO_CHAR(pay_us_payment_pkg.get_trx_date(
:business_group_id,
:ppa_payroll_action_id,
NULL,
:ppa_payroll_id,
:ppa_consolidation_set_id,
:ppa_org_payment_method_id,
:ppa_effective_date,
:ppa_date_earned,
:ppa_override_date,
ppp.pre_payment_id,
ppa.effective_date
),'DD-MON-YYYY') payment_date
,TO_CHAR(ppa.date_earned, 'DD-MON-YYYY')
,prr_att.run_result_id
,peef.entry_information2 -- FIPS code
,peef.entry_information3 -- Medical Indicator
,paa.assignment_action_id
,pet.element_type_id
FROM pay_element_entry_values_f peev,
pay_input_values_f piv_att,
pay_element_entries_f peef,
pay_run_results prr_att,
pay_run_results prr_pay,
pay_payroll_actions ppa,
pay_assignment_actions paa,
pay_action_interlocks pai,
pay_pre_payments ppp,
pay_input_values_f piv_pay,
pay_run_result_values prrv_att,
pay_run_result_values prrv_pay,
pay_element_types_f pet,
pay_element_types_f pet_calc,
pay_element_classifications pec
WHERE ROUND(ppp.VALUE ,2) = :check_amount
AND ppp.pre_payment_id = :pre_payment_id
AND ppp.assignment_action_id = pai.locking_action_id
AND pai.locked_action_id = paa.assignment_action_id
AND ppa.payroll_action_id = paa.payroll_action_id
AND ppa.action_type IN ('R', 'Q')
AND ((paa.source_action_id IS NOT NULL AND ppa.run_type_id IS NOT NULL) OR
(paa.source_action_id IS NULL AND ppa.run_type_id IS NULL))
AND ppp.personal_payment_method_id = peef.personal_payment_method_id
AND peef.assignment_id = paa.assignment_id
AND ppa.date_earned BETWEEN peev.effective_start_date
AND peev.effective_end_date
AND ppa.date_earned BETWEEN peef.effective_start_date
AND peef.effective_end_date
AND piv_att.input_value_id = peev.input_value_id
AND UPPER(piv_att.NAME) = 'ATTACHMENT NUMBER'
AND ppa.effective_Date BETWEEN piv_att.effective_start_date
AND piv_att.effective_end_date
AND piv_att.input_value_id = prrv_att.input_value_id
AND prrv_att.result_value = peev.screen_entry_value
AND prrv_att.run_result_id = prr_att.run_result_id
AND paa.assignment_Action_id = prr_att.assignment_Action_id
AND prr_att.element_type_id = peef.element_type_id
AND peef.element_type_id = pet.element_type_id
AND pet.classification_id = pec.classification_id
AND pec.classification_name = 'Involuntary Deductions'
AND pec.legislation_code = 'US'
AND pec.business_group_id IS NULL
AND fnd_number.canonical_to_number(pet.element_information5) = pet_calc.element_type_id
AND pet_calc.element_name LIKE pet.element_name || '%Calculator'
AND pet_calc.element_type_id = piv_pay.element_type_id
AND NVL(ppa.date_earned, ppa.effective_date) BETWEEN piv_pay.effective_start_date AND piv_pay.effective_end_date
AND piv_pay.input_value_id = prrv_pay.input_value_id
AND UPPER(piv_pay.NAME) = 'PAY VALUE'
AND fnd_number.number_to_canonical(ppp.VALUE) = prrv_pay.result_value
AND prr_pay.run_result_id = prrv_pay.run_result_id
AND prr_pay.assignment_action_id = paa.assignment_action_id
AND prr_pay.element_type_id = pet_calc.element_type_id
ORDER BY prr_att.run_result_id;
Somehow, Oracle has fixed this in the rdf but I have not been able to figure out how exactly. This is a function call in the report but they are passing the check amount and the prepayment_id. Regardless of which pre_payment_id is sent in, 2 rows are returned.
If anyone has any thoughts, please let me know. This is the final tweak that is stopping our go-live with this.
Thanks, RLIn bug 6779249 it states that third party checks are not supported for XML...
But, as we have bought into the push to convert we now are down to payroll checks and third party checks to get our company off of Optio once and for all...
Other than attempting to write a complete custom process from scratch (just to throw out next year when we upgrade to 12) does anyone have any solutions to getting 3rd party checks to print with BIP in Oracle Applications (11.5.10)?
Scott -
Promotion action run - payroll run - Chng in payroll area in IT1 not allowe
Hi Friends,
My client has the following query:
"One of the employee has been promoted from employee group 2 (Workmen) to employee group (Management Staff). We have run promotion action now, that is after running pay roll for the month of May 2011. Now it is not allowing to change the pay roll area in orga. assignment effective from 01.04.2011, please do the needful on priority to run pay roll for the month of May 2011."
Can anyone please help me and let me what needs to be done in such cases.
Eagerly awaiting your reply.
Thanks in advance.
Regards,
Evangelist@Hi,
As you said that you have already configured ABKRS feature for defaulting payroll area based on your employee group.
So when you run the promotion action it should actually pick up the default payroll area according to new employee group.
Are you able to do that? or did you manually change it on IT 0001 screen.
If you want it to be automatically defaulted then check your feature DFINF it should have value X if you want it from customising or leave it blank if it should be copied form the previous record
cheers
Ajay -
Promotion action - payroll run - not allowing to change payroll area in IT1
Hi Friends,
My client has the following query:
"One of the employee has been promoted from employee group 2 (Workmen) to employee group (Management Staff). We have run promotion action now, that is after running pay roll for the month of May 2011. Now it is not allowing to change the pay roll area in orga. assignment effective from 01.04.2011, please do the needful on priority to run pay roll for the month of May 2011."
Can anyone please help me and tell me what needs to be done in such cases.
Eagerly awaiting your reply.
Thanks a ton..
Regards,
Evangelist@Hi,
As you said that you have already configured ABKRS feature for defaulting payroll area based on your employee group.
So when you run the promotion action it should actually pick up the default payroll area according to new employee group.
Are you able to do that? or did you manually change it on IT 0001 screen.
If you want it to be automatically defaulted then check your feature DFINF it should have value X if you want it from customising or leave it blank if it should be copied form the previous record
cheers
Ajay
Maybe you are looking for
-
MainStage 3 as a re-wire slave?
Hey Guys, I've recently been using Logic Pro X for some casual jams, and despite owning Superior Drummer 2.0, I have really fallen in love with some of the drum kits that are included with "Drum Designer" that comes with LPX. They respond really beau
-
Export Jasper Report Through JSP(using parameters)
Hi All ; Please I need A help ; I need to use a Jasper Report in my jsp pages using parameters ; can some one tell me how i can do it by steps & with example ; note that i use Oracle Data Base; Regards;
-
Hi I'm playing around with a few ideas for an app and for some reason all of my slideshow overlays appear on top / infront of all the other content on the page when I view the app on my iPad. In indesign I have sent the slide show to the back and can
-
Hi Guys, I am having problem with my iMac. At least once a day i'm experiencing a frozen mac, which restarts itself. The error message is always the same: Interval Since Last Panic Report: 459686 sec Panics Since Last Report: 6 Anonymous UU
-
Our phone guy is going to be replacing all the digital phones in our building with IP phones. On occaision, we may need to change the configuration on a port (voice vlan and trunk ports allowed). Is their a script I can write that will allow hime to