This project implements an automated payroll system for ONGC using SAP ABAP. It includes the creation of database tables, setting up a package, and developing the necessary ABAP programs for payroll processing, including pay slip generation.
This project implements an automated payroll system for ONGC using SAP ABAP. It includes the creation of database tables, setting up a package, and developing the necessary ABAP programs for payroll processing, including pay slip generation.
We will cover the detailed implementation of the ONGC Pay Slip Automation System using SAP ABAP in this project. This includes creating database tables, setting up a package, and developing the required ABAP programs.
The ZPAY
table contains all the details about the employees required for payroll processing.
Steps:
Navigate to SE11 (ABAP Dictionary).
Enter the table name ZPAY
and click on the "Create" button.
Define the table fields:
Field | Data Type | Length | Description |
---|---|---|---|
MANDT | CLNT | 3 | Client |
CPFNO | INT4 | 10 | Employee CPF Number |
NAME | CHAR | 25 | Employee Name |
EMP_POS | CHAR | 2 | Employee Position |
PAYRATE | INT4 | 10 | Employee Basic Pay Rate |
PAN | CHAR | 10 | PAN Number |
DOB | DATS | 8 | Date of Birth |
DOJ | DATS | 8 | Date of Joining |
DOLP | DATS | 8 | Date of Leaving Payroll |
BANK_ACC_NO | INT8 | 19 | Bank Account Number |
Set the Delivery Class to A (Application table).
Data Browser should be on Display/Maintenance Allowed.
Set the Enhancement Category to “Can Be Enhanced (Deep)”.
Activate the table and resolve any errors that may appear in the Activation Log.
The ZPOS
table stores details related to employee positions and payroll information.
Steps:
Navigate to SE11 (ABAP Dictionary).
Enter the table name ZPOS
and click on the "Create" button.
Define the table fields:
Field | Data Type | Length | Description |
---|---|---|---|
MANDT | CLNT | 3 | Client |
EMP_POS | CHAR | 2 | Position |
DESIGNATION | CHAR | 25 | Designation |
PAYSCALE_LOW | INT4 | 10 | Payscale Low |
PAYSCALE_HIGH | INT4 | 10 | Payscale High |
Activate the table.
Data elements in SAP define the type of a table field or structure component, describing semantic attributes like data type, length, and associated domain or search help.
Creating a Data Element:
ZCPFNO
and click "Create".CPF Number
.NUM10
(or create a new one if it does not exist).Steps to create package ZAUTOPAY
:
ZAUTOPAYROLL
and description.The ZAUTO
program automates various payroll-related tasks.
Steps:
ZAUTO
and click on the "Create" button.ZAUTOF01
, ZAUTOI01
, ZAUTOO01
, ZAUTOTOP
.ZPAY
and ZPOS
.ZAUTOPR
for the program.The ZCALP
program is used for payslip generation.
Steps:
ZCALP
and click on the "Create" button.ZCALPF01
, ZCALPI01
, ZCALPO01
, ZCALPTOP
.ZAUTO
.Screen 100 is used for inputting parameters like the employee CPF number (pcpf
) and month (pmon
) for payslip generation.
Steps:
ZCALP
and screen number 0100
. Click on "Create".pcpf
and pmon
.Screen 200 displays payslip details in a table format using an Adobe form.
Steps:
ZCALP
and screen number 0200
. Click on "Create".Steps:
ZHR_PAYROLL_PDF
.Steps:
ZHR_PAYROLL_PDF
and link it to the interface.Steps:
ZAUTO
program for automation tasks.ZCALP
program to generate the payslip: