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 Us Hi, Guest Search the Community Activity Communications Actions Browse 0 Tweet 5 created by Woody Nguyen on May 18, 2013 9:34 AM, last modified by Woody Nguyen on 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 Tcode 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 for others 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 6 month Basic Salary Share 1 3 Like Version 6

Payroll Processing - Calculate Average 6 Month

Embed Size (px)

DESCRIPTION

Payroll Processing - Calculate Average 6 Month ..

Citation preview

  • GettingStarted Newsletters Store

    Products Services&Support AboutSCN Downloads

    Industries Training&Education Partnership DeveloperCenter

    LinesofBusiness UniversityAlliances Events&Webinars Innovation

    LogOn JoinUsHi,Guest SearchtheCommunity

    Activity Communications Actions

    Browse

    0 Tweet 5

    createdbyWoodyNguyenonMay18,20139:34AM,lastmodifiedbyWoodyNguyenonDec2,20132:40AM

    I.RequirementThereisaquitecomplicatedrequirement:calculateaverage6monthBasicSalaryforemployee.Forexample:inJun,averagebasicsalarywillbecomputedfromJan,Feb,Mar,Apr,MayandJun.butinJul:startmonthfromFebuntilJul.Themostdifficulthere:howcansystemcanstorevaluefromperiodtoperiod,movecorrespondingtocurrentperiodandnoissuewhenhavinganyretroactiveaccounting.

    II.SolutionInordertoresolvetherequest,youhavetobeclearhowpayrollprocessingwithsometable:IT,OT,etcandFunctionsandOperationsaswell.It'squitetaketimetoexplainverydetailaboutit.SopleaseinvestigateSAPdocumentsforsomeFunctions:PIT,operationsADDWT,AMT,etcinTcodePDSY.It'snottoomuchdifficultbutaloteffortstocontrolit.Iassumethatyouunderstandtheprerequisitesabove.Mysolutionasbelow:1.Create6wagetype(indexfrom00,01,02,03,04,05)tostorebasicsalary.2.Keepinmindtheselogicwt00onlycontainscurrentbasicsalarywt01onlycontainsLastvalueofwt00(ifit'sNULL,ONLYingoliveperiodor1stperiodrunningpayroll,usingcurrentbasicsalaryorAvg6monBasicGoliveinputtedmanually)thesamelogicwillbeappliedforothersfromwt03,wt04andwt05.3.Afterhavingvalueinthesewagetypes,youjustsimplytotalanddivide6.It'sveryeasysoIdon'tcareaboutit.Iwillfocusonlythestep2.1.ConfigurationWagetype:Create6wagetypes(sharingsameconfigurationsinV_512W_D)andpleasenoteprocessingclass6:

    PayrollprocessingCalculateaverage6monthBasicSalary

    Share 1 3Like

    Version6

    http://scn.sap.com/login.jspahttp://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218792/00-06.pnghttp://scn.sap.com/community/getting-startedhttp://scn.sap.com/community/uachttp://scn.sap.com/actionshttp://scn.sap.com/people/woody.nguyenhttp://scn.sap.com/communicationshttp://scn.sap.com/contenthttp://scn.sap.com/docs/login.jspajavascript:void(0);http://scn.sap.com/people/woody.nguyenhttp://scn.sap.com/community/downloadshttp://scn.sap.com/welcomehttp://scn.sap.com/community/developer-centerhttp://store.sap.com/http://scn.sap.com/activityhttp://scn.sap.com/community/newsletters

  • 2.PCRTherearesomePCRwillreproducesolutionstepsmentionedinstep2:

    Therearetotal5PCR(fromZV20toZV24).BasicSalaryiswt1000andAvg6monBasicGoliveiswt5901.

    InthefirstPCR,therearesomestepsIwouldliketoexplaininordertobeeasiertounderstandOutputwt1000frominternaltableITtooutputtableOTtoprocess.InsertcurrentAMTintowt00(wt8000).(100%fitswith1ststepaboveKeepinmindtheselogic)Getlastvalueofwt00(wt8000),ifit's>0,assigntowt01(wt8001).Otherwise(Onlyingoliveperiodor1stperiodrunningpayroll),checkAvg6monBasicGolive.IfAvg6monBasicGolive=0,getBasicSalaryandassigntowt01(wt8001).Elsewt01(wt8001)equalsAvg6monBasicGolive.3.SchemaShouldincludeyourPCRbeforeprocessingclass10insubschemaXAL9Factoringandstorage.WithmycaseIinsertitintosubschemaXAP9Importadditionalpayments/deductions.Icapturedpayrollschemawhenrunning

    displaymode,asit'sveryimportantwaytodeeplyandfastcontrolandunderstandPayrollSchema

    http://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218794/ZV20.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218793/00.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218795/ZV21.png

  • III.TestingLookatemployeewhohasacomplicatedbasicsalary.

    AndAvg6monBasicGolive(ifyoudon'tinputthewt,systemwillgetfromcurrentbasicsalaryin1stperiodrunning

    payroll )

    NowrunningPayrollin1stperiodJanandJun.InJANUARY:(6wt(00>05)containcorrectlyvalues:wt00(wt8000)currentbasic300,otherAvg6monBasicGolive150.

    InJUNE:(6wt(00>05)areexactly:wt00(wt8000)currentbasicJun400,wt01(wt8001)basicinMay:400,wt02(wt8002)basicinApr:350,wt03(wt8003)basicinMar:400,wt04andwt05(wt8004&wt8005)bothbasein

    http://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218799/Jan.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218801/Basic.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218796/schema.pnghttp://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218798/Golive+average.png

  • AverageUserRating

    (2ratings)

    0 Tweet 5

    JanandFeb300).

    2315Views Tags:hcm,human_capital_management,payroll

    Share 1 3Like

    7Comments

    Like(0)

    ChinnaSAPHRMay19,20131:41PM

    HiWoody,Goodwork.IfIamworkingforIndiacanicopythosewagetypefromMB10whiachismodelwagetypeforbasicpay?Thnxinadvance

    Like(0)

    ChinnaSAPHRMay19,20131:47PM

    HiWoody,Couldyoupleasetellmetherequiremntclearlywhyweneedtocalculateaverage6monthsbasicsalary?

    Like(0)

    WoodyNguyenMay19,20134:29PM(inresponsetoChinnaSAPHR)

    Ihaveimplemented1projectwithspecialrequirementasbelow(basingonLaborlaw ),whenemployeeretires,employeewillget1monthsalaryfor1workingyear.Salaryistheaveragesalaryunderthelaborcontractofthepreceding06monthsbeforetheemployeeisdismissed.AndwheneveremployeeraisesLeaveRequest(sickormaternityleave),employee'sallowancesarebaseonAverage6monthBasicSalary.Actuallytherearealot

    ofrequirementsinvolvingaverageSalary,soIwouldliketosharesolutionwithyouguysRegards!Woody

    Like(0)

    SwapnilTakteMay20,20136:12AM(inresponsetoWoodyNguyen)

    HiVerygoodexample,bcozinIndiamanycompany'sarefollowingsameruleforleaveencasement.RegardsSwapnil

    WoodyNguyenMay22,20134:53AM(inresponsetoSwapnilTakte)

    ThanksSwapnil Actuallyit'squitedifficult,ittookalongtimeformetofindthesolution,soIwouldliketocontributetoourSCN,hopeit'shelpful

    Regards!

    http://scn.sap.com/people/woody.nguyenhttp://scn.sap.com/people/rajsaphrjavascript:void(0);http://scn.sap.com/community/erp/hcm/tags#/?tags=payrollhttp://scn.sap.com/people/woody.nguyenhttp://scn.sap.com/people/rajsaphrhttp://scn.sap.com/community/erp/hcm/tags#/?tags=human_capital_managementhttp://scn.sap.com/servlet/JiveServlet/showImage/102-41643-6-218802/Jun.pnghttp://scn.sap.com/community/erp/hcm/tags#/?tags=hcmhttp://scn.sap.com/people/swapnil.takte

  • FollowSCNSiteIndex ContactUs SAPHelpPortalPrivacy TermsofUse LegalDisclosure Copyright

    Like(1)

    Woody

    Like(0)

    GirieshChakaravarthyMamuruganDec9,20145:51PM

    HiWoody,NiceDocument.Ihavetriedtodothesamebutgotstruckatapoint.ItriedtoreadtheLRTof1001WT.IamgettingtheWT8000valueforcurrentvalueofWT1001butthe8001forthepastLRTi.e,.WT8001,02,03,04,05itisnotshowingthePastLRTresults.IhavecheckedyourdocumentaswellandmyWTPC6isin1.Anyfurtherchangestobedone?IfIamusingAMT=O1001itgetsthevaluefromVORTtablebutAMT=L1001doesn't.WithRegards,GirieshM

    Like(0)

    WoodyNguyenDec17,20149:34AM(inresponsetoGirieshChakaravarthyMamurugan)

    HiGirieshM,Youhaveyourownsolutionalreadythroughyournewblog,congratulation.Regardingyourquery,LRTisstandardtableprovidedbySAP,canyoudoublecheckagainwhetheryourPCRisputtingcorrectlyinschema?Youmayputinawrongpart.InstandardX000,SAPusesubschemaXLR0toimportlastpayrollresultbycheckingPC06PORTX006P06NOAB TransferrelevantdatatoLRTHopeyoucanhandleitsoon.BestRegards,Woody

    http://bit.ly/SCNTwRhttp://www.sap.com/corporate-en/our-company/legal/impressum.epxhttp://scn.sap.com/docs/DOC-18476http://scn.sap.com/docs/DOC-19361http://scn.sap.com/people/woody.nguyenhttp://bit.ly/SCNFBhttp://www.sap.com/corporate-en/our-company/legal/copyright/index.epxhttp://help.sap.com/http://spr.ly/SCNgoogleplushttp://www.sdn.sap.com/irj/scn/policyhttp://scn.sap.com/people/giriesh.mamuruganhttp://bit.ly/SCNyouThttp://www.sdn.sap.com/irj/scn/policy?view=PP