You are on page 1of 22

1/10/2017

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

GetStarted

Solutions

Partner

Support

About

Community

Training

Community

Developer

Blogs

Understandingfunctionsin
PayrollSchemas(specificeg,
WPBP)
August22,2013

| 1,053Views |

NehaChopra
morebythisauthor

HCM(HumanCapitalManagement)
HumanResources | functions | schemas | wpbp

share
0

share
0

tweet

share
0

Follow

Introduction
In SAP HR, functions provide the highlevel logic for calculations. The
functionscanbeassociatedwitheitherapayrollclassortimemanagement
class.Inpayroll,theyprovidetheoverallfunctionalityforpayrollprocessing
including rules for calculations. Functions perform general processing such
asreadingwagetypesfromspecificinfotypes,calculatingpayrolltaxesona
given set of wages, benefits premiums etc and storing the results of the
payrollcalculation.
https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

1/22

1/10/2017

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

Tounderstandhowtoreadthefunctions,belowistheexampleforoneofthe
payrollfunctions,WPBP(Importworkcenterandbasicpaydata).
WPBP(Importworkcenterandbasicpaydata)
This function is used to transfer master data on the work center and basic
payforthepayrollperiodtointernaltableWPBP.Thebasicpaywagetypes
are stored in the internal table IT. If all the fields of the table WPBP are
same during the entire payroll period, this table will contain one record.
However, in certain cases different data may exist for different partial
periods.Insuchcases,therewillbemultipleentries,whichareidentifiedby
split indicators. Such cases have been explained in the below sections
alongwiththescreenshots.
Viewingthefunction
SAP Payroll comprises of many functions which can be accessed via
transaction PE04. Some of these are countryspecific while others are not.
Eachfunctionisdefinedanddocumentedandcanbeviewedviatransaction
PDSY in releases 4.5 and greater, or with report RPDSYS00 in earlier
versions.

TCode:PE04

Characteristicsofthefunction
Each function has a correspondingABAP code associated wit it, which is
obtainedbyaddingfuatthebeginningofitsname.Whileapayrollfunction
may comprise of ABAP code, it is not executed in similar way as ABAP
https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

2/22

1/10/2017

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

code is.A payroll function is executed in the payroll driver using schemas.
Thus,whenthepayrolldriverexecutestheschema,itautomaticallyputsfu
inthebeginningofthefunctionnameandthenexecuteitfurther.

UsageoffunctioninaSchema#
Afunctionmaybeusedasapartofschemaorasubschema,dependingon
the requirements. For example, in the below screenshots, the function
COM is used in the main schema X000 (International Personnel Calc.
Schema for RPCALCX0 (International)), while the function WPBP is used
asafunctioninthecustomsubschemaXBD0(Editbasicdata).

MainSchema:X000

https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

3/22

1/10/2017

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

SubschemaXBD0

#A schema can be accessed via transaction PE01 and the details of the
functionscanbeviewedbypressingF1onthefunctionname.

Syntaxofafunction
The syntax of a function in a schema is defined basis the parameter list
definedinthecharacteristicsofthefunction.

https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

4/22

1/10/2017

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

Belowisthedetailedexplanationoftheparameters.
Par2differentpayscaletype(Nocheck)
Par3rel.timeunit(XWPBPforeachtimeunit)
Par4Subtypeofinfotype0008(Nocheck)

Thus for WPBP, if you specify a pay scale type which has not been
maintainedcorrectlyintheindirectvaluationtables,thepersonnelnumberis
rejectedduringindirectvaluation.
Setting the third parameter will result in split of WPBP in a greater detail if
the time unit for the pay scale does not correspond to the time unit for the
payrollarea.
Forthefourthparameter,thefunctionWPBPisstartedforthesubtype0of
IT08.

ExecutingfunctioninSchema
Afunctioncannotbedirectlyexecutedinisolation.Itcanbeexecutedonly
viaschemaswhicharefurtherexecutedusingpayrolldriver.Keyinthedata
in the payroll driver (T Code: PC00_M**_CALC_SIMU payroll driver in
simulationmode**indicatesthecountrygroupingorMOLGA)

Example

TCode:PC00_M01_CALC_SIMU(01MOLGAforGermany)
Code

https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

5/22

1/10/2017

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

Thedriverwillexecutevariousfunctionsstepbystepaspertheschema.In
casethedisplaylogoptionhasbeencheckedinthepayrolldriver,apayroll
logwillbegeneratedbasistheinputsgiven.

The below screenshots depict the output of WPBP function and how the
processing is done basis the inputs provided to the function. Here, WPBP
function will pick up the inputs from P0000/ P0001 / P0007 / P0008 and
P0027tablesandperformindirectvaluationofwagetypesfrombasicpayin
theprocessingstepandsubsequentlytransferthedataintoWPBPTable.

https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

6/22

1/10/2017

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

InputsfortheWPBPFunction
WPBPfunctionwillpickuptheinputsfromP0000/P0001/P0007/P0008
andP0027tables.

Detailedviewoftheinputs

https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

7/22

1/10/2017

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

ProcessingduringtheWPBPfunction
Indirect valuation of wage types from basic pay is performed in the
processing step and subsequently that output is transferred into WPBP
Table.

OutputCreationofWPBPTable
In case there are no changes to the IT 0000 / 0001 / 0007 / 0008 / 0027
during the given payroll period, there will be only one entry. However, if
certain changes have been made to above infotypes during the payroll
period,asplitwillbecreatedforthepartialperiodsandaccordingly,multiple
entries will be created in WPBP table. This is being shown in the
subsequentsection.

https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

8/22

1/10/2017

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

WPBPsplitscreatedbyWPBPfunction
As mentioned above if there are any changes to IT 0000 / 0001 / 0007 /
0008 / 0027 for an employee during the given payroll period, a split will be
createdforthepartialperiodsinWPBPtable.

For example there had been a change in the basic pay for an employee in
the middle of a given payroll period (01.04.2006 30.04.2006), which
resultedinmultiplesplitsinWPBPTable.
InputsfortheWPBPFunction

ProcessingofWPBPTablewithsplits

https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

9/22

1/10/2017

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

OutputofWPBPTablewithsplits

DetailedoutputofWPBPTablewithtwoentries

https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

10/22

1/10/2017

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

AlertModerator

40Comments
YoumustbeLoggedontocommentorreplytoapost.

RajasekharReddy
August23,2013at5:19am

Hi,
NicedocumentationonWPBP
Will1018(costdistribution)infotypefromOMwillcreateanysplit???
Regards,
Rajasekhar

https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

11/22

1/10/2017

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

NehaChopra Postauthor
August23,2013at1:00pm

HiRaja,
Thanksforappreciatingtheefforts.
Regardingyourqueryabout1018creatingthesplit,theanswer
isno.AsperstandardSAP,theWPBPsplitiscreatedonlydue
tochangesintheinfotypesIT0000,0001,0007,0008and
0027.However,thechangein1018doeshaveanimpactonthe
payroll,thoughIamnotmuchawareofhowitisdealtwith.I
guessparyollexpertswillbeabletoadvise.
Iwilltrytofindtheansweratmyendaswellandwillshareit
withyou.Untilthen,sorryforanincompleteresponse
Regards
Neha

RajasekharReddy
August24,2013at5:00am

Hi,
Ihavegottheanswerthatwherecanifindthecostdistribution
inthepayrolllogifisthereisachangeinthecostcenteratthe
positionlevel.IntheFinalprocessingoftheschemainfunction
EXPRTandTableC0.
Howeverthesamesplitcanbeseeninpostingfrom
PC00_M99_CIPE.
Regards,
RajaSekhar

NehaChopra Postauthor
August24,2013at5:22pm

HiRaja,
Thanksatonforgettinganswertothissoquickly

Amsureit

willhelpall
Regards
Neha

https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

12/22

1/10/2017

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

MadhavaRaoBasava
August24,2013at6:38am

HiNeha,
Itsaverygooddocumenttostartwithandwellexplained.Goodwork.
Thanks,
Madhav.

NehaChopra Postauthor
August24,2013at5:25pm

ThanksalotMadhav..Muchappreciateyourcomments
Regards
Neha

santoshmohanty
August24,2013at6:58am

DearRaja,
Thanksforthedocument.
Santosh

NehaChopra Postauthor
March25,2014at12:31pm

thanksSantosh

JohnCheriyan
August26,2013at9:45am

HiNeha,
https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

13/22

1/10/2017

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

Goodone
John

NehaChopra Postauthor
August26,2013at9:50am

HiJohn,
Thanksalot..
Regards
Neha

TheoPeeters
March5,2014at3:06pm

HiNeha
Greatdocument
SometimestherearesplitscreatedinWBPBbysomecountryspecific
infotypesalso,like0442CompanyCaror0808Wagereturnforthe
Netherlands.
Thereisapossibilitytocreatesplitsalsofrominfotype0014byusing
WPBPCoperation.Thiscanbeusedtofactorerecurringpaymentsand
deductionsalso.
regards
Theo

NehaChopra Postauthor
March6,2014at4:11pm

HiTheo,
Thanksforyourwordsandinputs.Providedaninsightonnew
information.Thankyou
Regards
Neha

https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

14/22

1/10/2017

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

BabuK
March23,2014at9:14pm

HiNeha..VerygooddocumenttoprovidethebasisunderstandingofWPBP
functionespeciallywithscreenshotandexplanation..Itswillbeniceto
includeSchemascreenshotinSectionSyntaxoffunctiontoquickly
understandhowitsdefinedinschematocallfunctionwithparvalue..Itsmy
guess
Kamal

BhagyashreeNaik
March24,2014at7:41am

HiNeha,
Verywellexplaineddocumentation.Iguessnewcomerswillbe
inabetterpositiontounderstandWPBPSplits.
BestRegards,
Bhagyashree

NehaChopra Postauthor
March25,2014at12:32pm

ThanksBhagyashree

Happythatithelped!

NehaChopra Postauthor
March25,2014at12:32pm

thanksKamya.Pointtaken.Willkeepthisintomyradarandtry
toincorporatenewpointsasandwhentimepermits

RajeshKumarBurra
March25,2014at12:45pm

https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

15/22

1/10/2017

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

NicedocumentFactoringplaysanimportantrole
Forexample:AnemployeejoinedinthemiddleofthemonthHisearnings
shouldcalculatebasedonnumberofworkingdayssointhatcasetherewill
beWPBPsplit.
Sameincasewithcostdistributionifanemployeeworkingintwodifferent
departmentsForeachdepartmenthewillshare50%thatis100%fortwo
differentdepartmentssohewillsharetwodifferentcostcenterssointhis
casetherewillbeWPBPsplit.
WPBPtablewillconsiderthefollowinginfotypes:
Actions(0000)
OrganizationalAssignment(0001)
PlannedWorkingTime(0007)
BasicPay(0008)
CostDistribution(0027)

IfyouneedsplitforyourcustominfotypeItisrequiredtocreatecustom
function.

NehaChopra Postauthor
March25,2014at2:22pm

ThanksRajeshfortheinformationshared

LaieqHashmi
April5,2014at4:27pm

HiNeha,
ExcellentdocumentextremelyhelpfulfornewcomerstounderstandWPBP
splitagaingreatwork.
kindregards
LaieqHashmi

NehaChopra Postauthor
April8,2014at5:31am

https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

16/22

1/10/2017

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

ThanksLaieqyourwords

TasneemHussain
September13,2014at4:34am

Greatworknehadoyouhaveanythingreleatedtowholeschemaandpcr
configration?

NehaChopra Postauthor
September13,2014at7:44am

ThanksTasneem

SchemaandPCRishuge..Isthereany

specificinformationthatyouarelookingfor?

EunaLee
September29,2014at10:46pm

HelloNeha,
WhatisthepossiblecausethatWPBPsplitisnotregiestered?
TheresasplitineachIT0000/0001/0007,WPBPsplitoutputis
notgenerated.(ItriedtocreateasplitinIT0008,onlythenthe
outputisgenerated.)
Regards,
Euna

NehaChopra Postauthor
October3,2014at5:44pm

HiEuna
Sorryforlatereply.Hadbeenbusywithwork.
Regyourissue,ideallychangesinthegivenITs,shouldcreate
split.However,canyoupleasecheckifthereisanycustomrule
writtenwhichiseliminatingthesplits?Incaseyourissueisstill

https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

17/22

1/10/2017

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

notresolved,IwouldsuggestyoutopostaqueryonSCNtoget
itresolvedquickly
Regards
Neha

BhagyashreeNaik
October4,2014at8:00am

Checktheprocessingclass20forthewagetypesnotdisplaying
thesplits.
Regards,
Bhagyashree

EunaLee
October6,2014at1:19pm

Hi,
Itsjustoneemployeewhohasaproblem.Testedwithother
EEs,notaproblemwiththem.Thankfullyitsonlyhappeningin
Testenvironment,butIwantedtomakesureIknowtheanswer
wheneverithappens.
Thankyou.
Euna

RajeshDadi
September25,2014at7:34am

HiNeha..GoodArticle
Ineedahelpinunderstandingeliminationofsplitindicators
forexamplespecification6forprocessingclass05is
6 Transferinsummarizedformwithouteliminatingsplits

Whatexactlyisthiseliminatingsplitsandhowitwillbeusedfurtherin
payrollprocessing?

https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

18/22

1/10/2017

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

SaiKrishna
November16,2014at5:44pm

HiNeha,
NiceExplanation,Ihaveadoubtyousaidtherehadbeenachangeinthe
plannedworkingtimeforanemployeeinthemiddleofagivenpayrollperiod
(01.04.200630.04.2006),whichresultedinmultiplesplitsinWPBPTablebutinout
putlogitsshowingIT8split,thereisnobasicpaychangeright,couldyouplease
explainifiamwrong.

Thanks

NehaChopra Postauthor
November17,2014at9:26am

Mybad.Sorryitwasatypo.Updatedthedocument.thanksfor
highlightingit.
Regards
Neha

SaiKrishna
November17,2014at11:48am

HiNeha,
Thankyousomuch,DoyouhavecompletedocumentofUS
payrollschema.
Regards,
SaiKrishna

SriramTamil
June29,2015at2:02pm

HiNeha,
Reallygooddocumentonthis..ihavebeensearchingthis.itisanice
learningforme..iwillbookmarkthepageasidontwanttomissthepage.
Thanks
https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

19/22

1/10/2017

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

Sriram

NehaChopra Postauthor
July9,2015at9:01am

ThanksSriram.Gladithelped.

SubrajitS
July17,2015at6:24pm

Thanksforsharingthisnicedocument

NehaChopra Postauthor
July29,2015at5:01am

ThanksSubrajit

SubrajitS
August6,2015at2:24pm

DearNeha,
IamnewtoSchema&PCR,couldyoupleaseguidemewithstepbystep.If
youhaveanyvaluabledocumentpleasesendittomyemailidsothatIcan
improvemyskillonthis.
Regards,
Subrajit.

NehaChopra Postauthor
August26,2015at10:50am

hiSubrajit
https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

20/22

1/10/2017

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

SchemaandPCRistoovastatopic.Iwillsuggesttoreferto
someoftheSCNwikiorgoogleitouttocheckoutthetopics.
Regards
Neha

TumeloModise
October29,2015at9:31am

GooddayNeha,
Thanksforthisawesomedocument.
Regards,
TumeloModise

NehaChopra Postauthor
November18,2015at3:51am

ThanksTumelo
Regards
Neha

AkhileshKumarJain
March6,2016at10:12am

HiNeha,
Thisisalwayshelpfuldiscussion,documentsareeasytounderstand,

NehaChopra Postauthor
March14,2016at11:29am

HiAkhilesh,
Gladithelped
Regards
Neha
https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

21/22

1/10/2017

Share & Follow

UnderstandingfunctionsinPayrollSchemas(specificeg,WPBP)|SAPBlogs

Privacy

TermsofUse

LegalDisclosure

Copyright

https://blogs.sap.com/2013/08/22/understandingfunctionsinpayrollschemasspecificegwpbp/

Trademark

Sitemap

Newsletter

22/22