schema commond.docx
《schema commond.docx》由会员分享,可在线阅读,更多相关《schema commond.docx(26页珍藏版)》请在冰豆网上搜索。
schemacommond
TransactionCode:
PE01
MenuPath:
HumanResources-->Payroll->Tools-->MaintenanceTools->Schemas
Double-clickingonasub-schemawilltakeyoutothemaintenancescreenforthatschema.
Double-clickingonanyoftherules(PCR's)willtakeyoutotheruleeditor.Youcantellthedifferencebetweensub-schemasarulesbylookingattheparameters.Thenameofthesub-schemacanbefoundinthePar1column.Themainschemagenerallycallsallthedifferentsub-schemas.Thesub-schemaswillthencallthepayrollrules.Inmostcases,whenaruleiscalled,therewillbeparametersinthePar2orPar3columns.
Inthemain,mostsub-schemasarecalledbythe"copy"command.
Schemas,rulesandfeaturesinSAPusethefollowinglineeditorcommands.Thisallowsyoutomove,delete,copyandinsertlines.Allthecommandsareenteredintheareausedforthelinenumbers.Overwriteanyofthenumberswiththecommandsshownbelow.Forthecommandsusing1letter-hitthereturnkeyonceyouhaveenteredtheletter.Forthecommandsusing2letters-hitthereturnkeyafterthefirst2lettershavebeenenteredorafterbothsetshavebeenentered.
Themostcommonlyusedcommandsare:
LineCommand
Description
D
Deletesaline
I
Insertsaline
M
Movesaline
C
Copiesaline
DD
Indicatesthestartofablocktobedeleted
DD
Indicatestheendofablocktobedeleted
CC
Indicatesthestartofablocktobecopied
CC
Indicatestheendofablocktobecopied
MM
Indicatesthestartofablocktobemoved
MM
Indicatestheendofablocktobemoved
Onceyouhavechosentheblocktomoveorcopy,youneedtoshowwheretomoveorcopyittointheschema.Thefollowingcommandsindicatewhereyoucancopyormovethelinesto.
LineCommand
Description
A
Placestheblockafterthechosenline
B
Placestheblockbeforethechosenline
RememberwhencallingthePCRfromtheschema:
GENmeansthatthewagetypeis****i.e.youhaven'tspecifiedoneandNOABmeansthatitwilllookatanyEESub-Grouping.Ifyouwanttheruletousespecificwagetypesorgroupings,thenleaveeitherblank.
UsetheprintoptionandVAR(PAR2)intheschematooutputthevariabletableduringprocessing.
Positionisveryimportantforschemas.Looktoseewhereasimilarpieceofprocessinghastakenplace.Ifindoubt,placetheruleafterthesimilardatahasbeenreadandprocessed.
CommonlyusedFunctions
Function
Description
PIT
ProcessInputTable
PRT
ProcessResultsTable
COPY
CallsaschemaplacedinPAR1.
BLOCK
Definesthestartandendofanestednode
IF/ELSE/ENDIF
Theschemaisprocessediftheconditionisfulfilled
Pxxx
Processestheinformationheldininfotypexxxx.
ACTIO
ActiocallsaPCR.Itisprocessed,irrespectiveofwhetherthewagetypeexistsornot.
CommonlyusedParameters
Parameter
Description
GEN
Processanywagetype
9000
Processesonlywagetype9000
NOAB
ProcessforanyEEsub-groupgroupings
1
ProcessestheruleonlyforEEsub-groupgroupingof1
PayrollPCR's
TransactionCode:
PE02
MenuPath:
HumanResources-->Payroll->Tools-->MaintenanceTools->Rules
Commonlyusedoperationsinpayrollconfiguration
Operation
Description
*
Thiscoversalltheremainingentriesnotalreadyspecified.IfyouleavethelineblankfortheoperationthentheWTisdropped.Rememberyoualwayshavetohaveanoptionfor*inyourPCR.
ADDCU
Cumulatesthewagetypeintotherelevantcumulation(/101...)andvaluation(/201...)wagetypes
{*}ADDNA**
FromtheIT,NumberandAmtarecumulatedintotheOT.BlankisOTwhilstEreferstotheRT.
ADDNA4067
CurrentNumandAmtareaddedintowagetype4067.
ADDWSE9N03
ThisoperationisverysimilartoADDWT.TheonlydifferenceisthatitwritesthevaluetotableV0aswell
ADDWSI*
StorethecurrentwagetypeintheIT.
{*}ADDWT**
StorewagetypeinIT/OT
ADDWT1103
Allthecurrentvaluesforamt,numandrteareaddedtothevaluesthatarecurrentlyheldinwt1103
ADDWT&T
AddsthecurrentwagetypetothevariabletableasT-whichcanbeusedatalaterstage
ADDWTA*
ThevaluesinthewagetypearecopiedtothepreviousemployertableVAG-calledintherulesXDPI,XDPR&XDPT
ADDWTC*
ThevaluesinthecurrentwagetypeareaddedintotheCRT
ADDWTC/101
ThevaluesinthecurrentwagetypeareaddedintotheCRTforthetechnicalwagetype/101
ADDWTD*
ThevaluesinthecurrentwagetypeareaddedintotheDifferencetableDT
ADDWTD/551
ThevaluesinthecurrentwagetypeareaddedintothedifferencetableDTforthetechnicalwagetype/551
ADDWTD/APO
Addthecurrentwagetypetothedifferencetable(DT)
ADDWTE
StoreamountinResultsTable(RT)-differencewithlinebelow
ADDWTE*
AddthecurrentwagetypetotheresultstableRT
ADDWTE/101
Addthecurrentwagetypetotheresultstableas/101
ADDWTH/201
Addthecurrentwagetypetotheoldresultstable(ORT)aswagetype/201
ADDWTI*
AddthecurrentwagetypetotheinputtableIT
ADDWTI/101
ThevaluesinthecurrentwagetypeareaddedintotheinputtableITforthetechnicalwagetype/101
ADDWTL*
Addthecurrentwagetypetotheresultstablelastpayroll(LRT)
ADDWTN
UsedinXLON
ADDWTN/LRP
(Loans-XLON)
ADDWTW
Addthecurrentwagetypetothewagemaintenancetable
AMT-9023
Subtractamountfieldfromwagetype9023fromTableIT(ifwagetype9023isavailable.)
AMT%33.33
Multiplytheamountby33.33%
AMT%KSAPRO
MultiplytheamountbythevalueSAPROheldintableT511k
AMT-&T
AmountminusthevalueheldinvariableT
AMT-1{*}
Amountmultipliedbynegative1
AMT*12
Multiplyamountby12
AMT*KGENAU
MultiplytheamountbytheconstantGENAUheldintableT511k.GENAUisusedtofactorupby4or5factorsof10toavoidtheissueoferrorscausedbyrounding.
AMT-.04
Subtract0.4fromtheamountfield
AMT/2
Dividetheamountby2
AMT/KGENAU
DividetheamountbythefactorGENAUheldintheconstantstableT511k
AMT/KPKWPR
AmountdividedbytheconstantPKWRPheldintableT511K
AMT/KZF001
AmountisdividedbyconstantZF001fromtableT511K
{*}AMT?
**
Comparethevalueheldintheamountfieldforallwagetypes
AMT?
/GPY
Comparethevalueheldintheamountfieldforwagetype/GPY
AMT?
&ZAPR
ComparethevalueheldintheamountfieldagainsttheconstantZAPR
AMT?
0
Comparethevalueheldintheamountfieldagainst0
AMT?
E/167
ComparetheamountagainstthevalueoftheamountheldintheresultstableRTforwagetype/167
AMT?
IGRUEB
Comparethecurrentamountagainstthelimitheldforthebanktransfer
AMT+/564
Addtheamountfromwagetype/564fromtheIT
AMT+0001
Addamountfieldfromwagetype0001fromTableIT(ifwagetype0001isavailable.)
AMT+9013
Addamountfieldfromwagetype9013fromTableIT(ifwagetype9013isavailable.)
AMT+&ZSAP
AddthevalueheldinthevariableZSAPtotheamountforthecurrentwagetypebeingprocessed
AMT+E910B
AddthecurrentamounttotheRTandplaceinwagetype910B
AMT+O/ZPO
AddAmtfromwagetype/ZPOintoVORT(SummarisedORT)
AMT562
Checkswhetherthecurrentlyheldamountislessthatthatheldinthewagetype/562
{*}AMT=**
Thissetstheamount=zeroforthewagetypeinquestion
AMT=/111
Storethevalueintheamountfieldofwagetype/111intheamountfieldofwagetype2110
AMT=1000
Storethevalueintheamountfieldofwagetype1000intheamountfieldofwagetype2110
AMT=BETRG
LettheamountequalthevalueheldintheBETRG(amount)fieldforthewagetypeinquestion
AMT=PKWWR
ResettheamountonwagetypexxxxtothatheldinthevalueforKWWRheldinT511K
AMT=PLANS
Setstheamount=positionnumber
AMT=&/426
Settheamt=amtheldontechnicalWT/426
AMT=&TASA
ResettheamountonwagetypexxxxtothatheldinthetemporarywagetypeTASA
AMT=0
Lettheamountequalzero
{*}AMT=A**
TheamountissettothevalueheldinthetableVAG-previousemployeedata
{*}AMT=E**
LetstheAmt=theAmtheldforthecurrentwagetypeintheRT
AMT=E/167
LetstheAmt=theAmtheldfortechnicalwagetype/167intheRT
AMT=KSAPLR
Settheamount=thevalueSAPLRheldintableT511k
{*}AMT=L**
LetstheAmt=theAmtheldforthecurrentwagetypeintheLRT-lastresulttable
AMT=L/561
LetstheAmt=theAmtheldforthewagetype/561intheLRT-lastresulttable
AMT=N/LBB
Addtheamountvalueintechnicalloanwagetype/LBB(loanbalance)tospecificloanbalancewagetype
AMT=N/LOP
Addtheamountvalueintechnicalloanwagetype/LOP(loanpayment)tospecificloanpaymentwagetype
AMT=N/LRP
Addtheamountvalueintechnicalloanwagetype/LRP(loanrepayment)tospecificloanrepaymentwagetype
AMT=Q/GPY
LetstheAmt=theAmtheldforthewagetype/561intheOCRT-oldcumulativeresulttable
AMT=ZERO
Reducethevalueintheamountfieldtozero
AMT>*
"Maximumformation:
Thegreatervalueof*andthecurrentvalueoftheAMTfieldisdeterminedandwrittentothecurrentAMTfield."
AMT-1
Multiplytheamountby-1-Ithinkthisshouldbesubtract1fromtheamt
AMT50
Iftheamountfieldvalueissmallerthan50,itisretained.Otherwiseitissetat50(formingaminimumamount).
AMT-E/167
SubtracttheAmtvalueheldintheRTfor/167fromthecurrentlystoredamount
AMT-K43301
Takethevalueheldagainstpayrollconstant43301fro