Payroll Operations
Short Description
Payroll Operations...
Description
Getting Gett ing Start Started ed
Hi, Guest
Log On
Join Joi n Us
Products
Services & Support
About SCN
Downloads
Industries
Trai ni ng & Education
Partnership
Devel oper Center
Lines of Busi ness
University Al liances
Events & Webinars
Innovation
Version 1
Payroll Operations created by Ramesh Jakkula on Jakkula on Nov 13, 2013 11:53 AM, last modified by Ramesh Jakkula on Jakkula on Nov 13, 2013 12:31 PM 0
Share
Tweet
3
Like
2
Understanding following Payroll Operations which are most frequently used. Will be helpful in understanding and writing personnel calculation rules (PCR).
S.No S.No Ope Opera rati tion on Des Descr crip ipti tion on
Us Use e
1 ADDCU
Collect in
By reading table T512W, Wage Type Valuation, operation ADDCU
Cumulative
determines the following parameters for the current wage type:
Wage Types
1. In which of the 96 cumulation wage types the amount of the current wage type should be included 2. In which of the 32 mean values the amount and/or number and/or rate of the current wage type should be included, and with which Percentage.
2 ADDWT
Add Wage
The wage type affected is transferred to an internal table according to
Type to
parameter 5.
Subsequent
Input Wage types that are in the header of the input table OT (= work
Wage Type
field) When processing is performed are the input values of this operation.
3
Subtract Wage The wage type in question is passed on as a negative value to an
SUBWT SUBWT
Type to Form
internal table.
Subsequent Wage Type 4 ADDWS
Add Wage
The wage type affected affe cted is transferr transferred to an an internal internal table. table.
Type to Subsequent Subsequent Wage Type and Fill Out V0 5 DIVID
Divide Divide
This operation operation divides divides two fields fields in the current current entry and places places the result in a third field.
6 MULTI
Multiply Multiply
This operation operation multiplie multipliess two fields fields of the current current entry entry of table OT and stores the result in a third field.
7
Calculations in Changing or call up values in the AMT field.
AMT
the Current Amount Field 8
Calculations in Changing or reading values in the NUM field.
NUM
the Current Number Field 9
Calculations in Changing or reading the value of the RTE field.
RTE
the Current Rate Field 10 CMPER
Comparison of Operation CMPER is a decision operation. You must therefore specify â Payroll Periods €˜D’ as the rule type. CMPER compares two period specifications in three different variants. The periods used in the comparison are the in‐ period and for‐period of the current payroll run. As a result of the comparison, one of two signs '' or '=' is entered in the variable key. The operation CMPER is only advisable for regular payroll runs, not special runs.
11 ELIMI
Eliminate
This operation removes the period indicators (split indicators) for the
Period
wage type in the current work entry. This prepares the way for
Indicators
combining the values stored in WTs which up to this point were distinct.
12 RESET
Set Original
Newslett Newsl etters ers Stor Store e
Search the Community
The RESET operation sets the time period indicators (split indicators).
Activity Browse
Commun Com munications ications
Actions
Time Period Indicator 13 SPLIT
Split Indicator The SPLIT operation performs a query on the split indicator of the
14 SETIN
Query
wage type currently being processed.
Setting a
Operation SETIN sets a wage type split for the current wage type.
Wage Type Split 15 WPALL Check/Set
The WPALL operation checks or sets the work centre/basic pay split
Work Centre
APZNR of the wage type that has just been processed. This split
and Basic Pay
indicator highlights an entry in the WPBP table. FRST LAST
Split 16 ERROR
Warning in
Marks the source of errors within decision trees and terminates processing.
the event of incorrect entries 17 GCY
Continue
Branching to sub rules, no return.
Processing with PCR (Go To Cycle)
18 PCY
Run PCR
Accesses sub rules and returns.
(Perform Cycle)
19 VALEN
Set Length of Sets the length of the variable key to the value specified as the parameter. Variable Key
20 VAOFF
Set Offset for The offset for the variable key is set to the value specified as the parameter. Variable Key
21 NEXTR
Processing a
This operation indicates that at least one more rule must be interpreted to
Continuation complete the processing of the rule. Rule 22 VAKEY
Place in
Operation VAKEY places the field specified as a parameter, from a record
variable key
being read, into the variable key.
23 OPIND Evaluate
This operation evaluates the operation indicator OPKEN of the wage type.
Operation Indicator 24 OUTWP Load Work
The OUTWP operation loads the currently valid work centre and basic pay
Centre and
data. If you use the operation OUTWP in an evaluation schema, you can only
Basic Pay
query the fields that are part of the payroll results (generally as an entry in
Data
table WPBP). It is not permissible to query values from infotypes within the framework of evaluation schemas, since you must be able to repeat evaluation runs in retroactive accounting or for revision purposes and thus they cannot be based on information that can be changed.
25 PRINT
Print Out the To print the current header of the specified table and the IT or a Variable. Current Work Table Entry
26 RETRO Retroactive
Operation RETRO checks if the payroll run is a retroactive accounting Run.
Accounting or Recalculation 27 ROUND Rounding Off The ROUND operation rounds off field values in the current wage type. Within Current Wage Type 28 TABLE Prepare Access to
This operation is a tool allowing you to access any fields in ATAB tables or internal tables that are used in Payroll.
Table Fields 29 VARGB
Place Table
The VARGB operation enters any field in the variable key from the table
Field in
determined by operation Operation TABLE.
Variable Key 30 VWTCL
Set
Operation VWTCL VV reads the specification of processing class VV for the
Processing
current wage type in table T512W, and enters this as a single‐character entry
Class Value 31 WGTYP Set Wage Type 32 ZERO= Initializing the Current
in the variable argument of the pcr. Function VWTCL is a decision operation. The WGTYP operation moves the current wage type into the variable key or changes the wage type designation of the current wage type. Operation ZERO= initializes fields in the current header entry of a table or variable.
Working Fields 33 XMES
Output of
Using the operation XMES you can ensure that the system issues a message
messages to
in the payroll log during the payroll run.
payroll log 34 PPPAR Provide
Operation PPPAR is a decision operation. It writes IDs to the variable key
Partial Period when partial period factors are calculated. Parameters 35 LRTST
Evaluate the The LRTST operation evaluates the status of internal table LRT (Last Result Status of the Table) and controls further processing. LRT Table
36 FILLF
Fill the
In the current work entry the fields specified are restored from the basic entry
following
in the input table.
fields 37 MODIF Set Employee
This operation sets the employee grouping for use in accessing tables for Payroll.
Grouping 38 PAYTP
Set
This operation sets the employee subgroup grouping for personnel calculation
Employee
rules regardless of its current value. After processing the rule line, it then
Subgroup
reads the payroll rules table, T52C5 (transaction PE02) and the variable key
Grouping for and subsequent line number are deleted. You can also set the wage type to Personnel
generic, i.e. to '****'.
Calculation
The operation requires rule type 'Z'.
Rule
Operation PAYTP sets the employee subgroup grouping for personnel calculation rules to '*'. This might be used to specify the same processing forms for different employee subgroup groupings for personnel calculation rules only once by entering '*' under the employee subgroup grouping for personnel calculation rules. Payroll rules are then accessed by generalizing the employee subgroup grouping for personnel calculation rules.
39 SCOND Set Validity
Operation SCOND sets conditions for functions in Payroll.
of Condition 40 PSPRN Off‐Cycle Payroll
The operation PSPRN is a decision operation. It checks if the current payroll is dealing with off‐cycle payroll or a regular payroll run. The result of the comparison is written in the variable key.
41 ADDNA Collect
Processing of the current work entry is (almost) the same as for operation
Number and ADDWT. Field RTE (amount per unit) is used once only however: in other Amount in
words, it is not cumulated. The NUM (number) and AMT (amount) fields are
Subsequent cumulated. Wage Type 42 CPAGE Compare
Operation CPAGE compares the age of an employee or a family member with
Employee's
a specified number. You can use this, for example, to determine age‐
Age with
dependent bonus payments.
Specified Number 43 EVLCL
Use
Operation EVLCL nn (nn = a number between 01 and 10) places the 2‐
Specification characters indicator stored in the nnth position of the evaluation class string of
in the variable key once the current wage type has been read in the Wage
Evaluation
Type Valuation table, T512W.
Class nn 44 WPBPC Distribute Lump Sum
Operation WPBPC distributes the amount of the current wage type to the active WPBP periods in the payroll period.
Wage Elements to WPBP Periods 45 STATU
Enter Status The STATU operation enters one of the status fields from infotype P0000 Field in
(Events) in the variable key.
Variable Key 46 SUBRC
Set & Query The SUBRC operation evaluates the return code of the import of a payroll a Return
result, or sets an internal return code which in turn is evaluated.
Code 47 VALBS Evaluating
The operation VALBS evaluates the Customizing for the evaluation of time
Valuation Bases wage types from table T512W (Wage Type Evaluation) for the current wage type. These Customizing settings are made in view V_512W_B (Valuation Bases: Detail). For every wage type, Customizing consists of 3 blocks that are represented as lines in view V_512W_B. 1. A block for the current wage type (line "0" in the view V_512W_B) 2. A block for the first wage type derived from the current wage type (first line) 3. A block for the second wage type derived from the current wage type (second line) A valuation basis, a statement wage type, and a percentage can be stored in every block/every line. If you use the syntax VALBSv yz, the current wage type is valuated with the valuation basis from the block or line that you specify in parameter v. Operation VALBS places the valuation basis in the RTE field (Rate) of the current wage type and then multiply RTE field by the Num field. 48 RE510
49 R51P6
Read Pay Scale
Operation RE510 prepares the reading of entries from the Pay Scale
Table (T510)
Groups table (T510).
Read in Table
Operation R51P6 reads an entry from table T51P6. This table determines
T51P6‐‐‐
the characteristics of the deduction wage types.
>Characteristics of Arrears deduction wage types 50 R51P1
Read Table
Operation R51P1 reads an entry from table T51P1. In this table, a link
T51P1 ‐‐‐‐‐
between wage types is created for various indicators.
>advance & balances wage type assignment 51 MESSG Massage Output Operation MESSG outputs a message containing the personnel number. 52 BTREC Set Recipient
Operation BTREC must be run after bank transfer data has been read from
Data for Bank
an infotype. Data on wage type and amount are transferred from the
Transfers
current fields (OT) and retained in the transfer table together with data on the recipient of the record last read.
53 BREAK Setting a Break‐ The BREAK operation interrupts the processing of rules and branches into Point 54 IMPRE Import from database PCL2
the debugging mode. Operation IMPRE imports the interim and end results from database PCL2 and stores them ready for processing. You can use this operation to import payroll results from cluster Rx (x = country indicator, for example D for Germany) for the current personnel number. You can also use function IMPRT. Depending on the parameters, the data is supplied in a second record of tables. In this way, you have the option of processing or comparing old and new results, or creating differences and so on.
55 PRATE Factor Amount
The PRATE operation reduces the current amount of the wage type in the OT table (results table) according to calendar days. In the Recurring Payments/Deductions (0014) infotype, create recurring payments and deductions using a wage type. You can choose the validity period so that the infotype record is only partly in the current payroll period. In this case the wage type is taken into account as normal with its full amount, and is not factored. You can perform factoring for this wage type using the PRATE operation.
2802 Views
Tags: payroll, operations, pcrs
Average User Rating (3 ratings)
0
Share
Tweet
3 Like
2
5 Comments praneeth kumar m Nov 13, 2013 3:03 PM
Hello Ramesh, Good document. regards, praneeth kumar Like (0)
Ramesh Jakkula Feb 11, 2014 2:21 PM (in response to praneeth kumar m)
Thank You Praneet Like (0)
Srikanth Naidu Akula Feb 11, 2014 6:42 PM
Hi Ramesh, Excellent Work, Thanks for sharing. Like (0)
Potnuru ManikyaRaju Feb 14, 2014 11:09 AM
Good one, Ramesh garu :-) Like (0)
Mihir Nagar Feb 19, 2014 10:22 AM
Good One... Additional y table T52BO can b e referred to view all avaialb le o perations in Payroll/Time schema. Like (1)
Site Index Privacy
Contact Us T erms of Use
SAP Help Portal Legal Disclosur e
Copyright
Follow SCN
View more...
Comments