Payroll Schemas and Personnel Calculation Rules

  • Upload
    edu450

  • View
    70

  • Download
    1

Embed Size (px)

Citation preview

Payroll Schemas and Personnel Calculation Rules (PCR's) Added byAhmed Salah, last edited byMauricio Ghemon Oct 04, 2011(view change)Transaction Code: PE01Menu Path: Human Resources --> Payroll -> Tools --> Maintenance Tools -> SchemasDouble-clicking on a sub-schema will take you to the maintenance screen for that schema.Double-clicking on any of the rules (PCR's) will take you to the rule editor. You can tell the difference between sub-schemas a rules by looking at the parameters. The name of the sub-schema can be found in the Par 1 column. The main schema generally calls all the different sub-schemas. The sub-schemas will then call the payroll rules. In most cases, when a rule is called, there will be parameters in the Par 2 or Par 3 columns.In the main, most sub-schemas are called by the "copy" command.Schemas, rules and features in SAP use the following line editor commands. This allows you to move, delete, copy and insert lines. All the commands are entered in the area used for the line numbers. Overwrite any of the numbers with the commands shown below. For the commands using 1 letter - hit the return key once you have entered the letter. For the commands using 2 letters - hit the return key after the first 2 letters have been entered or after both sets have been entered.The most commonly used commands are:Line CommandDescription

DDeletes a line

IInserts a line

MMoves a line

CCopies a line

DDIndicates the start of a block to be deleted

DDIndicates the end of a block to be deleted

CCIndicates the start of a block to be copied

CCIndicates the end of a block to be copied

MMIndicates the start of a block to be moved

MMIndicates the end of a block to be moved

Once you have chosen the block to move or copy, you need to show where to move or copy it to in the schema. The following commands indicate where you can copy or move the lines to.Line CommandDescription

APlaces the block after the chosen line

BPlaces the block before the chosen line

Remember when calling the PCR from the schema: GEN means that the wagetype is **** i.e. you haven't specified one and NOAB means that it will look at any EE Sub-Grouping. If you want the rule to use specific wage types or groupings, then leave either blank.Use the print option and VAR (PAR 2) in the schema to output the variable table during processing.Position is very important for schemas. Look to see where a similar piece of processing has taken place. If in doubt, place the rule after the similar data has been read and processed.Commonly used FunctionsFunctionDescription

PITProcess Input Table

PRTProcess Results Table

COPYCalls a schema placed in PAR1.

BLOCKDefines the start and end of a nested node

IF/ELSE/ENDIFThe schema is processed if the condition is fulfilled

PxxxProcesses the information held in infotype xxxx.

ACTIOActio calls a PCR. It is processed, irrespective of whether the wage type exists or not.

Commonly used ParametersParameterDescription

GENProcess any wage type

9000Processes only wage type 9000

NOABProcess for any EE sub-group groupings

1Processes the rule only for EE sub-group grouping of 1

Payroll PCR'sTransaction Code: PE02Menu Path: Human Resources --> Payroll -> Tools --> Maintenance Tools -> RulesCommonly used operations in payroll configurationOperationDescription

*This covers all the remaining entries not already specified. If you leave the line blank for the operation then the WT is dropped. Remember you always have to have an option for * in your PCR.

ADDCUCumulates the wage type into the relevant cumulation (/101...) and valuation(/201...) wage types

{*}ADDNA **From the IT, Number and Amt are cumulated into the OT. Blank is OT whilst E refers to the RT.

ADDNA 4067Current Num and Amt are added in to wage type 4067.

ADDWSE9N03This operation is very similar to ADDWT. The only difference is that it writes the value to table V0 as well

ADDWSI*Store the current wage type in the IT.

{*}ADDWT **Store wage type in IT/OT

ADDWT 1103All the current values for amt, num and rte are added to the values that are currently held in wt 1103

ADDWT&TAdds the current wage type to the variable table as T - which can be used at a later stage

ADDWTA*The values in the wage type are copied to the previous employer table VAG - called in the rules XDPI, XDPR & XDPT

ADDWTC*The values in the current wage type are added into the CRT

ADDWTC/101The values in the current wage type are added into the CRT for the technical wage type /101

ADDWTD*The values in the current wage type are added into the Difference table DT

ADDWTD/551The values in the current wage type are added into the difference table DT for the technical wage type /551

ADDWTD/APOAdd the current wage type to the difference table (DT)

ADDWTEStore amount in Results Table (RT) - difference with line below

ADDWTE*Add the current wage type to the results table RT

ADDWTE/101Add the current wage type to the results table as /101

ADDWTH/201Add the current wage type to the old results table (ORT) as wage type /201

ADDWTI*Add the current wage type to the input table IT

ADDWTI/101The values in the current wage type are added into the input table IT for the technical wage type /101

ADDWTL*Add the current wage type to the results table last payroll (LRT)

ADDWTNUsed in XLON

ADDWTN/LRP(Loans - XLON)

ADDWTWAdd the current wage type to the wage maintenance table

AMT- 9023Subtract amount field from wage type 9023 from Table IT (if wage type 9023 is available.)

AMT%33.33Multiply the amount by 33.33%

AMT%KSAPROMultiply the amount by the value SAPRO held in table T511k

AMT-& TAmount minus the value held in variable T

AMT-1{*}Amount multiplied by negative 1

AMT*12Multiply amount by 12

AMT*KGENAUMultiply the amount by the constant GENAU held in table T511k. GENAU is used to factor up by 4 or 5 factors of 10 to avoid the issue of errors caused by rounding.

AMT-.04Subtract 0.4 from the amount field

AMT/2Divide the amount by 2

AMT/KGENAUDivide the amount by the factor GENAU held in the constants table T511k

AMT/KPKWPRAmount divided by the constant PKWRP held in table T511K

AMT/KZF001Amount is divided by constant ZF001 from table T511K

{*}AMT? **Compare the value held in the amount field for all wage types

AMT? /GPYCompare the value held in the amount field for wage type /GPY

AMT?& ZAPRCompare the value held in the amount field against the constant ZAPR

AMT?0Compare the value held in the amount field against 0

AMT?E /167Compare the amount against the value of the amount held in the results table RT for wage type /167

AMT?IGRUEBCompare the current amount against the limit held for the bank transfer

AMT+ /564Add the amount from wage type /564 from the IT

AMT+ 0001Add amount field from wage type 0001 from Table IT (if wage type 0001 is available.)

AMT+ 9013Add amount field from wage type 9013 from Table IT (if wage type 9013 is available.)

AMT+& ZSAPAdd the value held in the variable ZSAP to the amount for the current wage type being processed

AMT+E 910BAdd the current amount to the RT and place in wage type 910B

AMT+O /ZPOAdd Amt from wage type /ZPO into VORT (Summarised ORT)

AMT< /562Checks whether the currently held amount is less that that held in the wage type /562

{*}AMT= **This sets the amount = zero for the wage type in question

AMT= /111Store the value in the amount field of wage type /111 in the amount field of wage type 2110

AMT= 1000Store the value in the amount field of wage type 1000 in the amount field of wage type 2110

AMT= BETRGLet the amount equal the value held in the BETRG (amount) field for the wage type in question

AMT= PKWWRReset the amount on wage type xxxx to that held in the value for KWWR held in T511K

AMT= PLANSSets the amount = position number

AMT=& /426Set the amt = amt held on technical WT /426

AMT=& TASAReset the amount on wage type xxxx to that held in the temporary wage type TASA

AMT=0Let the amount equal zero

{*}AMT=A **The amount is set to the value held in the table VAG - previous employee data

{*}AMT=E **Lets the Amt = the Amt held for the current wage type in the RT

AMT=E /167Lets the Amt = the Amt held for technical wage type /167 in the RT

AMT=KSAPLRSet the amount = the value SAPLR held in table T511k

{*}AMT=L **Lets the Amt = the Amt held for the current wage type in the LRT - last result table

AMT=L /561Lets the Amt = the Amt held for the wage type /561 in the LRT - last result table

AMT=N /LBBAdd the amount value in technical loan wage type /LBB (loan balance) to specific loan balance wage type

AMT=N /LOPAdd the amount value in technical loan wage type /LOP (loan payment) to specific loan payment wage type

AMT=N /LRPAdd the amount value in technical loan wage type /LRP (loan repayment) to specific loan repayment wage type

AMT=Q /GPYLets the Amt = the Amt held for the wage type /561 in the OCRT - old cumulative result table

AMT=ZEROReduce the value in the amount field to zero

AMT>*"Maximum formation: The greater value of * and the current value of the AMT field is determined and written to the current AMT field."

AMT-1Multiply the amount by -1 - I think this should be subtract 1 from the amt

AMT50If the amount field value is smaller than 50, it is retained. Otherwise it is set at 50 (forming a minimum amount).

AMT-E /167Subtract the Amt value held in the RT for /167 from the currently stored amount

AMT-K43301Take the value held against payroll constant 43301 from the annual salary

AMT-O /167Subtract the Amt value held in the ORT for /167 from the currently stored amount

AMT-R 9019Amt for the current wage type less the value held in the RT for 9019 (Results wage types using exact splits)

AMTS /564Subtraction to zero - the value cannot be less than zero.

AMTS*Subtraction to 0 (not negative) for the current wage type

AMTS* 9013Subtraction to 0 (not negative). Current wage type less 9013

AMTSE 9043Subtraction to 0 (not negative). Current wage type less Amt held in the RT for wage type 9043

BTREC /558"Sets the recipient data for bank transfers. Can only be run after bank transfer data has been read from an infotype. Data on wage type and amount are transferred from the current fields (OT) and retained in the transfer table together with data on the recipient of the record last read."

CMPER 0510Compares the current amount with that held for period 10 in year 05.

DExpect a decision in this line

D AMT?0The amount field value is compared with 0, and the result ('>', '=' or '