Upload
fahadsap
View
230
Download
0
Embed Size (px)
Citation preview
7/21/2019 Payroll Processing - Calculate Average 6 Months
1/5
Getting Started Newsletters Store
Products Services & Support About SCN Downloads
Industries Training & Education Partnership Developer Center
Lines of Business University Alliances Events & Webinars Innovation
Log On Join UsHi, Guest Search the Community
Activity Communications Actions
Browse
0 Tweet 5
created by Woody Nguyenon May 18, 2013 9:34 AM, last modified by Woody Nguyenon Dec 2, 2013 2:40 AM
I. Requirement
There is a quite complicated requirement: calculate average 6 month Basic Salary for employee. For example: in
Jun, average basic salary will be computed from Jan, Feb, Mar, Apr, May and Jun. but in Jul: start month from Feb until
Jul. The most difficult here: how can system can store value from period to period, move corresponding to current
period and no issue when having any retroactive accounting.
II. Solution
In order to resolve the request, you have to be clear how payroll processing with some table: IT, OT, etc and
Functions and Operations as well. It's quite take time to explain very detail about it. So please investigate SAP
documents for some Functions: PIT, operations ADDWT, AMT, etc in T-code PDSY. It's not too much difficult but a lot
efforts to control it. I assume that you understand the prerequisites above.
My solution as below:
1. Create 6 wage type ( index from 00, 01, 02, 03, 04, 05) to store basic salary.
2. Keep in mind these logic
- wt 00 only contains current basic salary
- wt 01 only contains Last value of wt 00 (if it's NULL, ONLY in golive period or 1st period running payroll, using
current basic salary or Avg 6mon Basic Golive inputted manually)
- the same logic will be applied forothers from wt 03, wt 04 and wt 05.
3. After having value in these wage types, you just simply total and divide 6. It's very easy so I don't care about it. I
will focus only the step 2.1. Configuration Wage type: Create 6 wage types (sharing same configurations in V_512W_D) and please note
processing class 6:
Payroll processing - Calculate average 6month Basic Salary
Share 1 3Like
Version 6
http://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218792/00-06.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218792/00-06.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218792/00-06.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218792/00-06.pnghttp://scn.sap.com/people/woody.nguyenhttp://scn.sap.com/community/uachttp://scn.sap.com/community/developer-centerhttp://scn.sap.com/activityhttp://scn.sap.com/communicationshttp://scn.sap.com/actionshttp://scn.sap.com/welcomehttps://twitter.com/intent/tweet?hashtags=scn&original_referer=http%3A%2F%2Fscn.sap.com%2Fdocs%2FDOC-41643&text=Payroll%20processing%20-%20Calculate%20average%206%20month%20Basic%20Salary&tw_p=tweetbutton&url=http%3A%2F%2Fscn.sap.com%2Fdocs%2FDOC-41643&via=SAPCommNethttp://twitter.com/search?q=http%3A%2F%2Fscn.sap.com%2Fdocs%2FDOC-41643http://scn.sap.com/welcomehttp://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218792/00-06.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218792/00-06.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218792/00-06.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218792/00-06.pnghttp://scn.sap.com/docs/login.jspahttp://twitter.com/search?q=http%3A%2F%2Fscn.sap.com%2Fdocs%2FDOC-41643https://twitter.com/intent/tweet?hashtags=scn&original_referer=http%3A%2F%2Fscn.sap.com%2Fdocs%2FDOC-41643&text=Payroll%20processing%20-%20Calculate%20average%206%20month%20Basic%20Salary&tw_p=tweetbutton&url=http%3A%2F%2Fscn.sap.com%2Fdocs%2FDOC-41643&via=SAPCommNethttp://scn.sap.com/community/downloadshttps://twitter.com/intent/tweet?hashtags=scn&original_referer=http%3A%2F%2Fscn.sap.com%2Fdocs%2FDOC-41643&text=Payroll%20processing%20-%20Calculate%20average%206%20month%20Basic%20Salary&tw_p=tweetbutton&url=http%3A%2F%2Fscn.sap.com%2Fdocs%2FDOC-41643&via=SAPCommNethttp://scn.sap.com/community/newslettershttp://scn.sap.com/welcomehttp://twitter.com/search?q=http%3A%2F%2Fscn.sap.com%2Fdocs%2FDOC-41643http://scn.sap.com/people/woody.nguyenhttp://scn.sap.com/login.jspahttp://scn.sap.com/people/woody.nguyenhttp://store.sap.com/http://scn.sap.com/community/uachttp://scn.sap.com/activityhttp://scn.sap.com/contenthttp://scn.sap.com/community/getting-startedhttp://scn.sap.com/actionshttp://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218792/00-06.pnghttp://scn.sap.com/communicationshttp://scn.sap.com/community/developer-center7/21/2019 Payroll Processing - Calculate Average 6 Months
2/5
2. PCR
There are some PCR will re-produce solution steps mentioned in step 2:
There are total 5 PCR (from ZV20 to ZV24). Basic Salary is wt 1000 and Avg 6mon Basic Golive is wt 5901.
In the first PCR, there are some steps I would like to explain in order to be easier to understand
- Output wt 1000 from internal table IT to output table OT to process. Insert current AMT into wt 00 (wt 8000).
(100% fits with 1st step above Keep in mind these logic)
- Get last value of wt 00 (wt 8000), if it's > 0, assign to wt 01 (wt 8001).
Otherwise (Only in golive period or 1st period running payroll), check Avg 6mon Basic Golive.
If Avg 6mon Basic Golive = 0, get Basic Salary and assign to wt 01 (wt 8001). Else wt 01 (wt 8001) equals Avg
6mon Basic Golive.
3. Schema
Should includ e your PCR before processing class 10 in sub-schema XAL9 Factoring and storage. With my case I
insert it into sub-schema XAP9 Import additional payments/deductions. I captured payroll schema when running
display mode, as it's very important way to deeply and fast control and understand Payroll Schema
http://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218795/ZV21.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218794/ZV20.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218793/00.png7/21/2019 Payroll Processing - Calculate Average 6 Months
3/5
III. Testing
Look at employee who has a complicated basic salary.
And Avg 6mon Basic Golive (if you don't input the wt, system will get from current basic salary in 1st period running
payroll )
Now running Payroll in 1st period - Jan and Jun.
In JANUARY: (6 wt (00 -> 05) contain correctly values: wt 00 (wt 8000) - current basic 300, other Avg 6mon Basic
Golive 150.
In JUNE: (6 wt (00 -> 05) are exactly: wt 00 (wt 8000) - current basic Jun 400, wt 01 (wt 8001) - basic in May: 400, wt
02 (wt 8002) - basic in Apr: 350, wt 03 (wt 8003) - basic in Mar: 400, wt 04 and wt 05 (wt 8004 & wt 8005) both base in
http://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218801/Basic.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218799/Jan.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218798/Golive+average.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218796/schema.png7/21/2019 Payroll Processing - Calculate Average 6 Months
4/5
Average User Rating
(2 ratings)
0 Tweet 5
Jan and Feb - 300).
2441 Views Tags: hcm, human_capital_management, payroll
Share 1 3Like
7Comments
Like (0)
Chinna SAP HRMay 19, 2013 1:41 PM
Hi Woody,
Good work.
If I am working for India can i copy those wagetype from MB10 whiach is model w age type for basic
pay?
Thnx in advance
Like (0)
Chinna SAP HRMay 19, 2013 1:47 PM
Hi Woody,
Could you please tell me the requiremnt clearly why we need to calculate average 6 m onths basic
salary?
Like (0)
Woody NguyenMay 19, 2013 4:29 PM (in response to Chinna SAP HR)
I have implemented 1 project with special requirement as below (basing on Labor law ),
when employee retires, employee will get 1 month salary for 1 working year. Salary is the
average salary under the labor contract of the preceding 06 months beforethe employee is
dismissed. And whenever employee raises Leave Request (sick or maternity leave),
employee's allowances are base on Average 6 month Basic Salary. Actually there are a lot
of requirements involving average Salary, so I would like to share solution with you guys
Regards!
Woody
Like (0)
Swapnil TakteMay 20, 2013 6:12 AM (in response to Woody Nguyen)
Hi
Very good example, bcoz in India many company's are following same rule for
leave encasement .
Regards
Swapnil
Woody NguyenMay 22, 2013 4:53 AM (in response to Swapnil Takte)
Thanks Swapnil Actually it's quite difficult, it took a long time for me to
find the solution, so I would like to contribute to our SCN, hope it's helpful
Regards!
http://scn.sap.com/people/rajsaphrhttp://scn.sap.com/community/erp/hcm/tags#/?tags=payrollhttp://scn.sap.com/people/rajsaphrhttp://scn.sap.com/community/erp/hcm/tags#/?tags=hcmhttp://scn.sap.com/people/rajsaphrhttp://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218802/Jun.pnghttp://scn.sap.com/people/woody.nguyenhttp://scn.sap.com/people/rajsaphrhttp://scn.sap.com/people/woody.nguyenhttp://scn.sap.com/community/erp/hcm/tags#/?tags=human_capital_managementhttp://scn.sap.com/people/swapnil.taktehttp://scn.sap.com/people/swapnil.taktehttp://scn.sap.com/people/woody.nguyenhttp://scn.sap.com/people/woody.nguyen7/21/2019 Payroll Processing - Calculate Average 6 Months
5/5
Follow SCNSite Index Contact Us SAP Help Portal
Privacy T erms of Use Legal Disclosur e Copyright
Like (1)
Woody
Like (0)
Giriesh Chakaravarthy MamuruganDec 9, 2014 5:51 PM
Hi Woody,
Nice Document. I have tried to do the same but got struck at a point. I tried to read the LRT of 1001
WT. I am getting the WT 8000 value for current value of WT 1001 but the 8001 for the past LRT i.e,.
WT 8001,02,03,04,05 it is not showing the Past LRT results. I have checked your document as well
and my WT PC - 6 is in 1. Any further changes to be done ? If I am using AMT=O 1001 it gets the
value from VORT table but AMT=L 1001 doesn't.
With Regards,Giriesh M
Like (0)
Woody NguyenApr 7, 2015 12:01 PM (in response to Giriesh Chakaravarthy Mamurugan)
Hi Giriesh M,
I believed you have had your own solution already as I've seen your blog. Congratulations!
Regarding your query, LRT is standard table provided by SAP, can you double check again
whether your PCR is putting correctly in schema? You may put in a wrong part.
In standard X000, SAP use sub-schema XLR0 to import last payroll result by checking PC06
PORT X006 P06 NOAB Transfer relevant data to LRT
Hope you can handle it soon.
Best Regards,
Woody
http://spr.ly/SCNgoogleplushttp://scn.sap.com/docs/DOC-18476http://bit.ly/SCNFBhttp://scn.sap.com/docs/DOC-19361http://scn.sap.com/people/giriesh.mamuruganhttp://www.sdn.sap.com/irj/scn/policyhttp://www.sdn.sap.com/irj/scn/policy?view=PPhttp://help.sap.com/http://www.sap.com/corporate-en/our-company/legal/impressum.epxhttp://scn.sap.com/people/woody.nguyenhttp://bit.ly/SCNTwRhttp://www.sap.com/corporate-en/our-company/legal/copyright/index.epxhttp://scn.sap.com/people/woody.nguyenhttp://bit.ly/SCNyouThttp://scn.sap.com/people/giriesh.mamurugan