1、SAP HCM Schema CN28详解SAP Schema CN28基本阐述Line Func. Par1 Par2 Par3 Par4 D Text000010 BLOCK BEG * Payroll schema: CHINA000020 COM Payroll schema: China Standard000030 COPY XIN0 Initialization of payroll000040 COPY CNBD Edit basic data (China) 000050 IF SPRN Special run?000060 RFRSH IT Delete IT000070
2、ENDIF to: Special run?000080 COPY XLR0 Import last payroll result000090 COPY CNT0 Gross remuneration (time management)000100 COPY CNAP Import payments/deductions000110 COPY CNAL Monthly factoring and storage000120 COPY CNNG Net pay calculation China000130 COPY XNA0 Cumulation of net amount/payment a
3、mount000140 COPY XRR0 Retroactive accounting000150 COPY XNN0 Net payments/deductions and transfer000160 COPY CNEN Final processing000170 BLOCK END * Payroll schema CHINABLOCK Function描述BLOCK函数允许你构造一个工资核算过程日志。在开始和结束标记点中把工资函数按语义顺序聚集在一起,且他们出现在日志中的一个普通节点。BLOCK函数可以被嵌套,在一个子模式中,一个结束块必须对应一个开语法函数 参数1 参数2 参数3
4、 参数4FUNCTION BLOCK 函数名称参数1 BEG 开始一个语义块 END 结束一个语义块参数2 目前无该参数参数3 目前无该参数参数4 目前无该参数示例COM Function描述Schema的注释行,使Schema结构具有易读性。可以指定在Schema中的任何行。COPY Function描述调用 sub Schema。XIN0 sub-SchemaFunc. Par1 Par2 Par3 Par4 D TextCOM Initialization INTERNATIONAL 注释:工资发放核算初始化BLOCK BEG Initialization of Payroll 块开始P
5、GM ABR Program type for payroll 工资发放的程序类型UPD YES Update database (YES/NO) 更新数据库(是/否)OPT INFT Read used infotypes only 只使用信息类型的读取OPT TIME Import all time infotypes 输入全部的时间信息类型CHECK ABR * Check against PA 03 * 核查PA03(生产机去掉*)BLOCK END Initialization of Payroll 块结束描述初始化工资数据(国际)重要的信息/事件(开关),有关工资核算的进一步过程,
6、工资运行开始在这个子模式中指定。处理1、 指定程序类型(工资核算或评估)2、 设置数据库更新开关(YES/NO)3、 必需的信息类型(导入仅仅是schema所需的主数据信息类型)4、 导入所有时间信息类型5、 指定检查控制记录PA 03(payroll area)PGM Function描述识别一个工资发放的程序类型PGM函数给工资核算驱动提供一个工资核算的程序类型信息不同的Schema允许薪资驱动在不同的时间段里去执行不同的程序,这些工资和评估程序哪一个在工资核算之后运行。这两个类型说明程序现有的工资数据如果一个Schema不包含PGM函数,程序缺省一个发薪程序。如果一个schema包含多个
7、PGM函数,那么最后一个是有效的。语法参数1ABR 工资核算AUS 评估MIX 工资/评估SP 特殊运行,这个特殊的仅仅适用于西班牙和奥地利国家的版本TRN 遗留数据传输示例如果你想去创建一个工资的模式PGM (参数1)ABRUPD Function描述是否更新数据库。其中比工资核算程序中的“测试运行(无更新)”优先级低。语法参数1NO 不更新数据库YES 更新数据库参数2参数3参数4示例如果你想去测试一个工资核素且结果不被更新到数据库UPD (参数1)NO OPT Function描述你可以使用OPT函数去为工资导入信息类型语法参数1:BSI 已过时 COPL 集成成本计划 DEC 小时工资
8、2位数 ENQ 不再使用 INFT 必需的信息类型(导入仅仅是schema所需的主数据信息类型) NRC 无回溯核算 TIME 读时间信息类型必需入口:参数1注意如果你想在工资核算中去处理时间管理数据(如:改变日程表,缺勤等),在你的schema中OPT函数必需在参数1中包含TIME。 CHECK Function描述在选择雇员进行薪资核算之前,进行相关任务的检查函数CHECK完成两个任务:1) 按照schema类型检查规定的时间- pa03(payroll area)2) 执行一个整体的检查语法参数2:ABR PayrollAUS EvaluationBDE BDE其中:CHECK ABR
9、This parameter initiates the following checks: o Has the payroll area been released for payroll? If not, the payroll area is excluded from the selection, i.e. employees assigned to the payroll area are not selected. o Are there already results for the employee in the payroll future? If yes, payroll
10、is not run for this personnel number. CHECK AUS This parameter initiates the following checks: o Is the last period accounted evaluated? If not, the evaluation run is cancelled. This is intended to prevent a period which has already been evaluated from being evaluated again. CHECK BDE Currently no e
11、ffects on payroll注意 如果在生产系统, check ABR 必须使用,检查pa03(payroll area)相关数据。CNBD sub-SchemaFunc. Par1 Par2 Par3 Par4 D TextCOM Basic data ChinaBLOCK BEG Edit basic dataENAME Determine name of EE (infotype 0001)WPBP Read work center/basic pay dataP0014 CN14 GEN NOAB Split WPBP and set APZNR for p0014DATES r
12、ead date specificationsIF SPRN IF off-cycle runELSE Not off-cycle runP0532 Read 5 SIP0530 Read PHF dataP0533 Read service fee dataENDIF END IFP0531 Read tax dataGON Continue if data completeBLOCK END Edit basic data描述该子模式读取工资计算所需的全部基础数据(主数据),基础数据接着被打印到工资日志(如果program option=ON)处理该子模式由以下主要步骤组成:1.读取员工姓
13、名(P0001-ENAME)2.从以下信息类型中读有关工作中心和基本工资数据a)人事事件P0000,b)组织分配P0001c)计划工作时间P0007d)基本工资P0008e)成本分配P00273.为P0014分割WPBP和设置APZNR4.读取0041各日期数据5.检查所需的所有主数据(532,530,533)可以被工资驱动的,否则程序被取消6.在工资日志中打印上述基本数据ENAME Function描述根据薪资核算周期内,读取当前最新的员工姓名(P0001-Ename),并显示在日志结构中。WPBP Function描述Import Work Center and Basic Pay Dat
14、a Object Function Use Function WPBP transfers master data on the work center and basic pay for the payroll period to internal table WPBP. The basic pay wage types are stored in the internal table IT. Procedure This data usually remains the same for the entire period. However, in certain cases differ
15、ent data may exist for different partial periods. If this is the case, the entries are identified in internal tables WPBP and IT by means of split indicators. Syntax Par2 Different pay-scale type No check. All entered values are valid. Par3 Rel. time unit X WPBP for each time unit Par4 Subtype of th
16、e infotype 0008 No check. All entered values are valid. For comparison calculations, the alternative pay scale type can be used to override the pay scale type from infotype 0008, (Basic Pay). This parameter setting is used to convert the collective agreement for the metal industry of June 01, 1994.
17、If you specify a pay scale type which has not been maintained correctly in the indirect valuation tables, the personnel number is rejected during indirect valuation. If you set a third parameter for the function, WPBP is split in greater detail, in other words, if the time unit for the pay scale doe
18、s not correspond to the time unit for the payroll area. If you do not set the fourth parameter, the function WPBP is started for the subtype 0 of the infotype Basic Pay (0008). You can specify a different subtype from this in the fourth parameter for simulation purposes. You can, for example, calcul
19、ate a fictitious salary for an employee depending on a possible change to the pay scale structure. Notes on parameter four: o You may not use subtypes with time constraint 3, because here there is a chance of several overlapping records existing. If the subtype does not exist, the results table IT r
20、emains empty for this employee.Example An employee belongs to a payroll area for which payroll is run on a monthly basis and his basic pay data states that he or she receives a weekly wage. When parameter 3 is set, a WPBP split is created for each week.语法输入0000 事件0001 组织的分配0007 计划工作时间0008 基本工资0027 成
21、本分配输出 WPBP ITWpbp Structurelike pc205APZNRAPZNRRAW10PC205 assignmentPC205 分配BEGDABEGDADATS80Start Date开始日期 ENDDAENDDADATS80End Date终止日期MASSNMASSNCHAR20Action Type操作类型MASSGMASSGCHAR20Reason for Action操作原因STAT1STAT1CHAR10Customer-Specific Status客户特定状态 STAT2STAT2CHAR10Employment Status雇佣状态 STAT3STAT3CH
22、AR10Special Payment Status特殊支付状态 AKTIVJNAKTIVJNCHAR10Indicator: Active标志 : 活动BUKRSBUKRSCHAR40Company Code公司代码WERKSPERSACHAR40Personnel Area人事范围BTRTLBTRTLCHAR40Personnel Subarea人事子范围 KOSTLKOSTLCHAR100Cost Center成本中心PERSGPERSGCHAR10Employee Group员工组 PERSKPERSKCHAR20Employee Subgroup员工子组ABARTABRARCHAR1
23、0Employee subgroup grouping for personnel calculation rule对于人员计算规则的雇员子组分组 PLANSPLANSNUMC80Position职位GSBERGSBERCHAR40Business Area业务范围VDSK1VDSK1CHAR140Organizational Key组织码 ANSVHANSVHCHAR20Work Contract工作合同ORGEHORGEHNUMC80Organizational Unit组织单位STELLSTELLNUMC80Job作业ZTERFPT_ZTERFNUMC10Employee Time Ma
24、nagement Status雇员时间管理状态 SCHKZSCHKNCHAR80Work Schedule Rule工作日程表规则 EMPCTEMPCTDEC52Employment percentage就业百分比 KSOLLKTSOLDEC52Targeted work measured in calendar days用日历天数度量的目标工作ASOLLATSOLDEC52Targeted work measured in workdays用工作天数度量的目标工作SSOLLSSOLLDEC52Planned working time in hours以时数表示的计划工作时间KDIVIKDIV
25、IDEC52Individual divisor for calendar days日历天数的单个除数 ADIVIADIVIDEC52Individual divisor for workdays工作日的个别除数SDIVISDIVIDEC52Individual divisor for working hours工作时数的单个除数 DIVGVDIVGVDEC52Hours worked per payroll period每个工资核算期的工作小时数 BSGRDBSGRDDEC52Capacity utilization level工时效用水平TRFARTRFARCHAR20Pay scale
26、type工资等级类型TRFGBTRFGBCHAR20Pay Scale Area工资区域TRFGRTRFGRCHAR80Pay Scale Group工资等级组 TRFSTTRFSTCHAR20Pay Scale Level工资等级水平KOSTVJNKOSTVJNCHAR10Indicator: Cost distribution标志 : 成本分配DYSCHDYSCHCHAR10Create Daily Work Schedule Dynamically创建动态工作日程表ARBSTSTDTGDEC52Daily Working Hours日工作小时数WKWDYWARSTDEC42Weekly
27、Workdays每周工作天数FISTLFISTLCHAR160Funds Center基金中心GEBERBP_GEBERCHAR100Fund基金FKBERFKBERCHAR160Functional Area功能范围GRANT_NBRGM_GRANT_NBRCHAR200Grant同意IT&RT Structure like pc207ABARTABRARCHAR10Employee subgroup grouping for personnel calculation rule对于人员计算规则的雇员子组分组 LGARTLGARTCHAR40Wage Type工资项 APZNRAPZNRRA
28、W10PC205 assignmentPC205 分配CNTR1CNTRNRAW10National assignment indicator国家分配标志CNTR2CNTRNRAW10National assignment indicator国家分配标志CNTR3CNTRNRAW10National assignment indicator国家分配标志ALZNRALZNRRAW10Assignment for alternative payment对选择性支付的分配C1ZNRC1ZNORAW20Pointer to cost accounting成本核算指针BTZNRBTZNORAW10Transfer assignment银行转移分配ABZNRABZNORAW10Absence assignment缺勤分配V0TYPV0TYPCHAR10Variable assignment type变量分配类型V0ZNRV0ZNRRAW10Variable assignment number变量分配号 ZEINHPT_ZEINHCHAR30Time/Measurement Unit时间/度量单位BETPEBETPECURR152Payroll: Amount per unit工
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1