Custom_Payroll_ Schemacreation
-
Upload
karthik-balasubramanian -
Category
Documents
-
view
218 -
download
0
Transcript of Custom_Payroll_ Schemacreation
-
8/7/2019 Custom_Payroll_ Schemacreation
1/14
Firs t s t ep to Underst and a Payro l lSchema
Applies to:
This article is relevant to SAP HCM module where Payroll is implemented. This applies to all SAP Releases.For more information; visit the Enterprise Resource Planning homepage.
Summary
This document is intended for those who are interested to know the basics of a payroll schema. The exercisein the article helps in understanding how a Payroll schema controls a Payroll driver program.
Author: Sajimol C
Company: Satyam Computer Services Limited
Created on: 22 April 2009
Author Bio
Sajimol is working with Satyam Computer Services Limited, Bangalore. She has around 5 years ofexperience as SAP HR Technical Consultant.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
2009 SAP AG 1
https://www.sdn.sap.com/irj/sdn/bpx-erphttps://www.sdn.sap.com/irj/sdn/bpx-erp -
8/7/2019 Custom_Payroll_ Schemacreation
2/14
First step to Understand a Payroll Schema
Table of Contents
Scope and Purpose of the Article .......................................................................................................................3Pre-requisites......................................................................................................................................................3 Create a Schema................................................................................................................................................3
Step1: Create schema ZT01...........................................................................................................................3Step2: Edit schema ZT01 ...............................................................................................................................4Step3: Create schema ZT02...........................................................................................................................5Step4: Edit schema ZT02 ...............................................................................................................................5Step5: Create schema ZT00...........................................................................................................................6
Create payroll control record ..............................................................................................................................8Run the Payroll Driver.........................................................................................................................................8Edit schema ZT02.............................................................................................................................................10Re-run the Payroll.............................................................................................................................................11Related Content................................................................................................................................................13Disclaimer and Liability Notice..........................................................................................................................14
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
2009 SAP AG 2
-
8/7/2019 Custom_Payroll_ Schemacreation
3/14
First step to Understand a Payroll Schema
Scope and Purpose of the Article
This document can be used as a First Step to understand how a payroll schema controls a payroll driverprogram. The exercise detailed here gives a basic understanding on how to Create and Edit a schema, andhow the payroll driver program responses to changes made in the schema.
Pre-requisites
The readers are expected to have a good understanding of Payroll process in SAP. Basic knowledge offollowing objects is helpful.
1. Payroll Area
2. Payroll Control Record
3. Payroll Driver program
4. Schema (Editor)
Create a Schema
The Payroll schema we are going to create is for an Organization TEST.
Country grouping chosen is Australia.
Naming Convention used is as follows:
Z To represent a customer schema
T First letter of the company name
nn A unique sequence number
Step1: Create schema ZT01
In this exercise we are going to copy SAP standard Payroll Accounting schema for Australia (Q000) into acustom schema ZT01. You can choose to copy any standard schema X000 where X stands for the Countrycode. For example U000(USA), D000(Germany), etc
Transaction: PE01.
Provide standard schema name, copy that into ZT01. The steps involved are explained with the screen shotsbelow.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
2009 SAP AG 3
-
8/7/2019 Custom_Payroll_ Schemacreation
4/14
First step to Understand a Payroll Schema
Attributes for schema ZT01 is created automatically. Country grouping is assigned based on that of theparent schema and program class is by default C for Payroll. You can choose Country grouping * if it isapplicable to All Countries.
Step2: Edit schema ZT01
Transaction: PE01.
Edit schema ZT01 to comment the line which calls the Payroll Initialization subschema QIN0.
Subschema QIN0 is to initialize the payroll program. Comment the line COPY QIN0. A star in column D is tocomment a line in the schema editor.
Save schema ZT01.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
2009 SAP AG 4
-
8/7/2019 Custom_Payroll_ Schemacreation
5/14
First step to Understand a Payroll Schema
Step3: Create schema ZT02
Copy Payroll Initialization schema QIN0 to ZT02.
Schema attributes are created automatically.
Step4: Edit schema ZT02
Transaction: PE01.
Edit schema ZT02 to uncomment the line CHECK ABR if it is commented. Save schema ZT02.
CHECK ABR function performs the tasks:
1. Checks if the payroll period is set according to the schema.
2. Check if the payroll area has been released for payroll. If not, the payroll area is excluded.
3. Checks if there are future payroll results for the employee. If yes, payroll is not run for thisPersonnel number.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
2009 SAP AG 5
-
8/7/2019 Custom_Payroll_ Schemacreation
6/14
First step to Understand a Payroll Schema
Step5: Create schema ZT00
Check Schema can be executed check box. Save ZT00. Edit Source text.
Add just two lines in ZT00.
COPY ZT02 - ZT02 is copy of Initialization schema QIN0. In ZT02, Function CHECK ABR is madeexecutable.
COPY ZT01 - ZT01 is copy of main payroll schema Q000, where call to Initialization schema QIN0 iscommented.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
2009 SAP AG 6
-
8/7/2019 Custom_Payroll_ Schemacreation
7/14
First step to Understand a Payroll Schema
Create Documentation for the Main schema.
Save and Generate the schema ZT00.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
2009 SAP AG 7
-
8/7/2019 Custom_Payroll_ Schemacreation
8/14
First step to Understand a Payroll Schema
Create payroll control record
Transaction: PA03.
Payroll area chosen in this exercise is S1 TEST Payroll area
Set the Payroll control record status to Released for Payroll and Save.
Current Pay period is 13/2007 as per the control record.
Run the Payroll Driver
To run the Payroll driver program, Transaction PC00_ Mxx _CALC can be used. xx is the Country groupingcode. For example PC00_M13_CALC is transaction to run payroll program for Australia.
The SAP standard payroll driver program is RPCALCX0, where X is the Country code. For example driverprogram for the USA is RPCALCU0, for Australia it is RPCALCQ0, etc. This can be executed as any normalreport program as well, using SE38 or SA38 transactions.
The Variant is set as in below screen shot.
Payroll driver is set to run for period 15/2007 for the given personnel number. Payroll area is S1 and payrollschema used is ZT00.
Execute the program.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
2009 SAP AG 8
-
8/7/2019 Custom_Payroll_ Schemacreation
9/14
First step to Understand a Payroll Schema
Payroll log with Error message is displayed. Payroll period requested (15/2007) is incompatible with theperiod set in Payroll Control Record (13/2007).
Note: If Test Run(no update) check box is selected in the payroll driver selection screen, this instructs thedriver program to skip the check for control record. A simulation run will take place without any regard for thecontrol record.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
2009 SAP AG 9
-
8/7/2019 Custom_Payroll_ Schemacreation
10/14
First step to Understand a Payroll Schema
Let us edit the schema to skip the check for payroll control record.
Edit schema ZT02
Transaction PE01, Enter ZT02, Edit Source Text.
Comment the line CHECK ABR. It is meant to check the Payroll Control record (PA03) for compatibility incase of real time payroll run.
Save the schema.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
2009 SAP AG 10
-
8/7/2019 Custom_Payroll_ Schemacreation
11/14
First step to Understand a Payroll Schema
Re-run the Payroll
Transaction: PC00_Mxx_CALC, xx being the Country grouping code. Select the same Variant as in theprevious Run.
Execute the program.
Payroll successfully run for 15/2007 in spite of control record payroll period set to 13/2007.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
2009 SAP AG 11
-
8/7/2019 Custom_Payroll_ Schemacreation
12/14
First step to Understand a Payroll Schema
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
2009 SAP AG 12
-
8/7/2019 Custom_Payroll_ Schemacreation
13/14
First step to Understand a Payroll Schema
Related Content
SAP Online Help : http://help.sap.com
SAP Developer Network: http://www.sdn.sap.com
Helpful Ref: http://sap.ittoolbox.com
For more information, visit the Enterprise Resource Planning homepage.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
2009 SAP AG 13
http://help.sap.com/http://help.sap.com/http://www.sdn.sap.com/http://www.sdn.sap.com/http://sap.ittoolbox.com/https://www.sdn.sap.com/irj/sdn/bpx-erphttps://www.sdn.sap.com/irj/sdn/bpx-erphttp://sap.ittoolbox.com/http://www.sdn.sap.com/http://help.sap.com/ -
8/7/2019 Custom_Payroll_ Schemacreation
14/14
First step to Understand a Payroll Schema
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
Disclaimer and Liability Notice
This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is notsupported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.
SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document,and anyone using these methods does so at his/her own risk.
SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article orcode sample, including any liability resulting from incompatibility between the content within this document and the materials andservices offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of thisdocument.