薪资核算:工资项的加减乘除

如下数据均取自SAP注释。

一、工资项有三个属性: NUM数量 *RTE比例= AMT数量

The operation processed the following wage type fields:
NUM (Number)数量:解读和AMT相同
RTE (Rate)比例:解读和AMT相同
AMT (Amount)金额

操作AMT访问两个不同的字段:
(1)当前工作字段是OT表表头的金额字段,通过值更改或查询进行评估。更改由操作NUM触发的字段内容在中执行此字段。
(2)操作金额也可以用作决策操作。在这种情况下,包含操作的规则行必须标记为规则类型“D”。根据两个相关字段的值,变量关键是完善。

可以在当前NUM字段(number字段)中使用可以在当前RTE字段中进行操作数计算(操作RTE的单位金额字段。操作处理NUM、RTE和AMT几乎相同,只有几个小的例外。

二、涉及到工资项的解读有两个:

(1)加减乘除(详见下面的解读)

(2)AMT\RAT\NUM取值

符号     使用
+
-减        
*        
/        
 $整数除法忽略除法产生的余数,没有四舍五入
%百分比确定当前字段中值的百分比,并在字段中输入。
 =等于
 <小于
>           大于
 S 减法为0(非负)
比较以在决策规则中使用变量参数通过<,=order>
 W平方根作为输入值和输出值,带有两个使用逗号后的位置。这个输入必须介于0和19.999.999,99之间
 V变量参数由数字或部分细化在字段中找到的编号NUM、RTE或AMT。

1、 MULTI:此操作将表OT当前条目的两个字段相乘,并将结果存储在第三个字段中

下面的这些可以直接用来乘:(前两个相乘,最后一个是结果)

 1st Factor  2nd Factor  Product     Syntax
 Amount      Number      Rate          MULTI ANR
 Amount      Number      Rate          MULTI NAR
 Amount      Number      Amount      MULTI ANA
 Number      Amount      Amount      MULTI NAA
 Number      Rate          Amount      MULTI NRA
 Rate           Number     Amount      MULTI RNA
 Number      Rate          Rate           MULTI NRR
 Rate           Number      Rate          MULTI RNR

下面的这些乘法需要借助常量表:V_T511P

以您的工资货币表示的值为1的常量(工资单常量)用于您的国家/地区分组。例如,定义常量$CORR的值为1,尤其是使用此常量乘以或除以乘法的每个结果。

1st Factor  2nd Factor  Product     Syntax
 Amount      Number      Number      MULTI ANN
 Rate           Number      Number      MULTI RNN
 Number      Amount      Number      MULTI NAN
 Number      Rate          Number      MULTI NRN
这些乘法的后续操作:NUM/I<常量>示例:NUM/I$CORR

 1st Factor  2nd Factor  Product     Syntax
 Amount      Rate        Amount       MULTI ARA
 Rate         Amount      Amount      MULTI RAA

这些操作的后续操作:金额/I<常量>示例:金额/I$更正

 1st Factor  2nd Factor  Product     Syntax
 Amount      Rate        Rate        MULTI ARR
 Rate        Amount      Rate        MULTI RAR

这些操作的后续操作:RTE/I<常量>示例:RTE/I$CO

我们建议您始终使用表T511P中的常数,用于在后续操作中进行乘法或除法,而不是在操作本身期间指定的值。这样做的好处如果您更改工资货币(例如转换为欧元或多重十进制解决方案)您只需更改常数的单位,而不是每个人员的计算规则包括在此操作中。

 You should not use the following multiplcations:下面的不可以用。

  1st Factor  2nd Factor  Product     Syntax
  Amount      Rate          Number      MULTI ARN
  Rate          Amount      Number      MULTI RAN

2、除法操作DIVID

 OOOOO xyz    OOOOO   DIVID   Operationsname
  x               Dividend被除数
  y               Divisor除数
  z               Quotient结果

这些字段中的每一个都可以被任何其他字段分割,并且结果也可以放置在任何字段中。
被零除会导致出现错误消息并拒绝拒绝当前正在处理的人员编号。
例外:如果分母和数字都为零,则也会得到除法值为零。

3.变量操作数主题

1 X nnnn工资类型
2 Xnnnnn表格字段
3 nnnnnn直接值
4 nnnnn报告布局字段
5 nnnn IT工资类型

(1) X nnnn工资类型

 1st Variant: Wage Types
 Valid for the operands A, C, E, H, L, M, N, O, P, Q, R, S, U, V, W, X, Z.

 OOOOOO
 X nnnn
 X: Table
 nnnn: Wage Type

XTable        Comment
AVAGPrevious employer data   以前的雇主数据
CCRT

 Cumulative wage types For more information, see Special cases for 1st variant.

累积工资类型有关更多信息,请参阅第一个变量的特殊情况。

ERT

Result wage types Unlike the operand R, all splits are     removed from table RT  before reading.

结果工资类型与操作数R不同,在读取之前,将从表RT中删除所有拆分。

HAITAlternative IT  替代IT
LLRTLast RT   上一期的LRT
MMVCumulations for averages   平均值累积
NLO只能与P0045或PRT一起使用。操作数N仅允许用于该操作
O        VORT汇总ORT
QOCRT旧的累计工资类型
RRT

Result wage types for an exact split   Unlike operand E, table RT is  read for a specific split (meaning the splits are not deleted before being read).

精确分割的结果工资类型与操作数E不同,为特定拆分读取表RT(意味着在读取拆分之前不会删除拆分)。

WZLTime wage types   时间工资类型
ZOT输出表有关更多信息,请参阅第一种变型的特殊情况。

还有一些针对不同的国家,因为没有中国地区,所以不再梳理,想了解更多查看对应的解读。

还有一些特殊的第一个标量,可以查看下面的说明:

XTable        Comment
*IT headerThe system reads the amount from the relevant field of the header of   table IT. In this way you can  restore an amount, for example.  Example: NUM=*   Note that no other character    follows the operand *.   Most functions that call a   personnel calculation rule automatically also fill the IT header. For this reason  the operand * can also be used   for functions other than PIT (for example, PRT).
系统从表IT标题的相关字段读取金额。例如,通过这种方式,您可以恢复金额。示例:NUM=*请注意,操作数*后面没有其他字符。大多数自动调用人员计算规则的函数也会填充IT标题。因此,操作数*也可用于PIT以外的函数(例如,PRT)。
&VARVariable table   The variable is created with a previous    operation under the variable name.
Example:  ADDWT&ABCD  An entry ABCD is created   in the variable table. NUM=& ABCD  The value of the variable ABCD   is stored in the current NUM field.  Note that there is a space after the operand &.
变量表使用变量名称下的上一个操作创建变量。
示例: ADDWT&ABCD 在变量表中创建一个条目。NUM=&ABCD变量的值存储在当前NUM字段中。请注意,操作数&后有一个空格。

使用不同的键读取不同的操作数。

 Operand     Key
 A           Wage type
 C           Wage type, cumulation type
 E           Full key from table RT
 H           Table AIT with all splits
 L           Wage type
 O           Wage type
 Q           Wage type, cumulation type
 R           Full key of table RT
 W           Full key of table ZL
 Z           Full key of table OT
 D           Wage type

2 Xnnnnn表格字段

 2nd Variant: Table Fields
 Valid for the operands B, F, G, I, J, K, T, Y.
 The value of the operand is calculated from a certain table field.

OOOOOO
 Xnnnnn
 X     Table
 nnnnn Table field

In the table called by the value you entered at location X, the system  reads the table field you entered at locations nnnnn. The content of  this table field is the value of the operand. Processing is identical for the operations NUM, RTE, and AMT.

在由您在位置X输入的值调用的表中,系统读取您在位置nnnnn输入的表字段。此表字段的内容是操作数的值。操作NUM、RTE和AMT的处理相同。

XTable        
B

With the TABLE operation, when the system processes a personnel calculation rule it calls a particular table.  With operand B for operations NUM, RTE, and AMT,  the system finds the line of this table that is relevant to the employee for whom payroll is currently  being performed. The value of this field, which is entered at locations nnnnn, is written to the current NUM, RTE, or AMT field. For the field names, see  the Data Dictionary

通过表操作,当系统处理人员计算规则时,会调用特定的表。对于操作数NUM、RTE和AMT的操作数B,系统将查找此表中与当前正在为其执行工资单的员工相关的行。此字段的值(在位置nnnnn处输入)写入当前NUM、RTE或AMT字段。有关字段名称,请参阅数据字典

FDate Specifications
With operand F, the system evaluates Date Specifications to calculate deadlines. The system provides the data using the DATES function.
使用操作数F,系统评估日期规范以计算截止日期。系统使用DATES函数提供数据。
G

Partial Period Parameter Whole Month
 Based on the employee group or subgroup the system uses operand G to determine certain Time Management data.  For further information on this data, see Partial Period Parameters for the Whole Month. The system transfers the operand values it determined to the NUM, RTE, or AMT field. In addition,(unlike operand T), the system cumulates all time frames in the corresponding period. For further information, see Special Cases for operands G und T
部分期间参数整月根据员工组或子组,系统使用操作数G确定特定的时间管理数据。有关此数据的更多信息,请参阅整个月的部分期间参数。系统将确定的操作数值传输到NUM、RTE或AMT字段。此外,(与操作数T不同),系统会累积相应周期内的所有时间帧。有关详细信息,请参见操作数G和T的特殊情况

根据员工的个人工作计划表(WBS),计划工作时间总计为工资期内的基本工资期
KSOLL:以日历天数衡量的计划工时
ASOLL:以工作日计量的计划工时
SSOLL:以工作时间计量的计划工作

根据员工的个人工作计划,工资期内的总工作时间在工资期内的基本工资期内总计
KDIVI:以日历天为单位的总工作时间
ADIVI:以工作日计量的总工作时间
SDIVI:以工作时间计量的总工作时间
有关计算示例,请参见xDIVI的计算示例

工资期内的总工作时间(统一费率)
KDIVP:以日历日计量的总工作时间
ADIVP:以工作日计量的总工作时间
SDIVP:以工作时间计量的总工作时间
KDIVP和ADIVP值取自工资单常量表(T510H);SDIVP值是员工的基本工资除数(来自infotype basic pay(P0008)中的DIVGV字段);这些值是在最后一个WPBP周期结束时有效的值。

根据员工的WBS,工资期内的总工作时间在工资期和特定工作日的基本工资期内总计。
KWKDx:以日历天为单位的总工作时间
AWKDx:以工作日计量的总工作时间
SWKDx:以工作时间计量的总工作时间
x: 测量时间的工作日数。星期一=1,星期二=2,依此类推。

根据表T554C中评估的缺勤情况,员工的无薪缺勤总计为工资期内的基本工资期。在某些情况下,它们是加权的。
KAUxx:以日历日计算的无薪缺勤
AAUxx:按工作日计算的无薪缺勤
SAUxx:以工作时间计量的无薪缺勤
xx可以具有以下值:
00<=nn<=99的两位数无薪缺勤计数类的nn(表T554C)

**所有未付缺勤的总和(所有班级总计)

根据表T554C中评估的缺勤情况,员工的带薪缺勤情况,使用工资单期间的基本工资期进行合计。在某些情况下,可能会对其进行加权。
KAPxx:以日历日计量的带薪缺勤
AAPxx:按工作日计算的带薪缺勤
SAPxx:以工作时间计量的带薪缺勤
xx可以具有以下值:
nn用于两位数的带薪缺勤计数类,带有
00<=nn<=99(表T554C)
**所有带薪缺勤的总和(所有课程的总和)

7、员工非工作日的带薪公共假期(指非0或2天类型的公共假期),未填写工资期基本工资期内的缺勤总额
KAXxx:以日历日计量的带薪公共假期
AAXxx:以工作时间计量的带薪公共假期
SAXxx:以工作时间计量的带薪公共假期
xx可以具有以下值:
0n,用于来自工作进度表(1<=n<=9)
**所有带薪公共假期的总和(总计课程)

8、员工非工作日的带薪公共假期(指非0或2天类型的公共假期),未填写工资期基本工资期内的缺勤总额
KAXxx:以日历日计量的带薪公共假期
AAXxx:以工作日计量的带薪公共假期
SAXxx:以工作时间计量的带薪公共假期
xx可以具有以下值:
工作计划表中一位数的公共假期类别为0n(1<=n<=9)
**所有带薪公共假期的总和(总计课程)

9、因工作时间减少而缺勤
KAKxx:减少的工作时间(以日历日为单位)
AAKxx:以工作日计算的减少工作时间
SAKxx:以工作时间衡量的减少工作时间
(xx是缺勤类别-当前始终为00)

10、因工作时间减少和生病而缺勤
KALxx:减少的工作时间(以日历日为单位)
AALxx:以工作日衡量的减少工作时间
SALxx:以工作时间衡量的减少工作时间
(xx是缺勤类别-当前始终为00)
如果减少的工作时间与因病缺勤一致,则缺勤记录一式两份(疾病和RHC(减少的工时补偿))。为了区别对待这两次缺勤,使用操作取消RHC天数(从第9点开始),并使用上述标识符再次存储。

I Constant from T511P.
 The system reads a constant from table T511P   (Payroll Constants) and puts its value in the NUM, RTE or AMT field. If the constant is time-dependent, the system also determines the date when the constant is read (usually the end date of the WPBP period).
T511P中的常数。
系统从表T511P(工资单常量)中读取常量,并将其值放入NUM、RTE或AMT字段。如果常数与时间相关,系统还会确定读取常数的日期(通常是WPBP周期的结束日期)。
JConstant from T510H
The system reads a constant from table T510H (Payroll Constants Based on Time Unit) and puts its value in the NUM, RTE, or AMT. The system reads the time unit of the pay scale that the employee belongs to in the current WPBP period. For this operand, the wage type must have a WPBP split.
T510H后的常数
系统从表T510H中读取一个常量(基于时间单位的工资单常量),并将其值放入NUM、RTE或AMT中。系统读取员工在当前WPBP期间所属薪级表的时间单位。对于此操作数,工资类型必须具有WPBP拆分。
KConstant from T511K
       The system reads a constand from table T511K (Payroll Constants) and puts its value in the  NUM, RTE, oder AMT field. Unlike table T511P, which is accessed using operand I, this table has no currency field and therefore contains in particular percentages, interest rates, and so on.
T511K的常数
系统从表T511K(工资单常量)中读取常量,并将其值放入NUM、RTE、oder AMT字段。与使用操作数I访问的表T511P不同,此表没有货币字段,因此包含特定的百分比、利率等。
T

部分期间参数部分期间

根据员工组或子组,系统确定特定的时间管理数据。有关此数据的更多信息,请参阅部分时段的部分时段参数。系统将以这种方式确定的操作数值传输到NUM、RTE或AMT字段。与操作数G不同,系统只考虑相应期间内工资类型的当前WPBP期间,不累计任何内容。有关详细信息,请参见操作数G和T的特殊情况

Y

系统字段:对于操作数Y,系统调用各种系统字段。(例如,in period year)。可能的属性列在系统字段下

示例:操作数B:输入主要工资类型的员工子组分组

the NUM field:

TABLE 503
NUM=BABTYP

Table T503 contains indicators for employee groups and subgroups. The operation TABLE 503 calls this table and goes to the row that is relevant to the employee for whom payroll is currently being performed. The operation NUM=BABTYP takes the value of the ABTYP  field (employee subgroup grouping for primary wage types) in the selected row and writes it to the current NUM field as the operand value.
表T503包含员工组和子组的指标。操作表503调用该表并转到与当前正在为其执行工资单的员工相关的行。运算NUM=BABTYP取所选行中ABTYP字段(主要工资类型的员工子组分组)的值,并将其作为操作数值写入当前NUM字段。

示例:操作数B:将M2STD字段的值放入RTE字段:

TABLE 508A
RTE=BM2STD

Table T508A contains the work schedule rules. The operation TABLE 508A calls this table and goes to the row relevant to the employee  in question. The operation RTE=BM2STD takes the value of the M2STD field (additional monthly hours) in this row, and puts it in the  current RTE field as the operand value.

表T508A包含工作计划规则。操作表508A调用该表并转到与所述员工相关的行。操作RTE=BM2STD取此行中M2STD字段的值(额外的每月小时数),并将其作为操作数值放在当前RTE字段中。

3 nnnnnn直接值

If the first place of the operand is neither filled with the characters described in the variants 1 and 2 nor contains a space, the places after the operator are interpreted as a direct value. In this case, the operand is a fixed number nnnnnn. You can use this to, for example,perform calculation operations.Processing is identical for the operations NUM, RTE and AMT.
如果操作数的第一个位置既没有填充变体1和2中所述的字符,也没有包含空格,则运算符后面的位置将被解释为直接值。在这种情况下,操作数为固定数nnnn。例如,您可以使用它来执行计算操作。操作NUM、RTE和AMT的处理相同。

Examples示例:
(1)NUM*100000
        The value that is currently in the NUM field, is multiplied by100,000.
 (2)NUM+123
        The number 123 is added to the value that is currently in the NUM field.
(3)NUM-1
        1 is subtracted from the value that is currently in the NUM field.
(4)NUM/2.54
        The value that is currently in the NUM field is divided by 2.54.
 The value specified in the operand is, in any case, only processed as a  direct value if no V is specified as an operator. The operator V  triggers the offset calculation and causes the length of the offset to  be specified in the first place of the operand. You can find information  on the offset calculation under Operators for NUM, RTE and AMT. Example: In the operation NUMV2O3L , the 2 in the first place of the  operand is not interpreted as a direct value.
在任何情况下,只有在没有将V指定为运算符的情况下,才将操作数中指定的值作为直接值处理。运算符V触发偏移计算,并使偏移的长度在操作数的第一位指定。您可以在NUM、RTE和AMT运算符下找到有关偏移计算的信息。示例:在操作NUMV2O3L中,操作数第一位的2不解释为直接值。

4 nnnnn报告布局字段

当操作数的第一位未填充而第二位已填充时,会出现此变体。
记录布局字段是变量,在运行人员计算规则时可以访问这些变量。它们提供了访问任何字段的选项,例如,这些字段没有出现在表OT。开始运行人员计算规则时,这些字段不会初始化,因此各个字段的内容可能会根据处理顺序发生很大变化。这些因此,只能访问记录布局字段下指定的函数的字段对于单独的字段,因为所寻址的记录布局字段的内容是未定义的。
使用操作NUM=nnnnn访问这些字段,并在第五个空格中加上空格。相关记录在此处用nnnnn标记的五个地方命名。

示例:NUM=ANZHL
ANZHL字段是信息类型0014(经常性付款和扣除)和其他信息类型的字段。由于此字段未传输到OT标题,因此必须使用相关的记录布局字段进行访问。NUM=ANZHL将ANZHL字段的内容传输到NUM字段。
RTE和AMT操作的处理相同。
有关记录布局字段以及可在操作编号、RTE和AMT中处理哪些记录布局字段的更多信息,请参阅记录布局字段和特定国家/地区记录布局下领域。

5 nnnn IT工资类型

此变量的操作数的第一位和第二位未填充。表IT的工资类型为nnnn。
工资类型nnnn从内部表格中读取,计算的值存储在表格OT的NUM、RTE或AMT字段中。操作NUM、RTE和AMT的处理相同。
对于此变量,系统使用以下部分键进行读取:人员计算规则的员工子组分组、工资类型、WPBP拆分、国家/地区拆分1-3和替代付款拆分。

 Example:
     AMT=  /101
     The amount of the wage type /101 from the table IT is written to the     current AMT field. Please be aware that two spaces follow after the     operator '='.

  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值