HR Overview | Databases | Payroll

SAP R/3 Module Overview What is HR ?

The task of Human Resource Management is to produce the organizational hierarchies, relationship between employees and to allow storage and administration of employee data. Organization: We can define an organization as an individual enterprise (company or industry) in which someone is leading it and with some departments like HR, Marketing, Finance, and R&D etc. For any organization employees are the most Powerful resource. So to maintain the employee related data we require one system, which ensures accuracy and consistent within the organization. Why HR is different from other modules? The following concepts are defined in HR, which differs this module with other modules 1. Use of Infotypes 2. The use of Logical Database 3. Use of Macros 4. Storage and Access of data 5. Authorization checks Data handling in HR (Using of Infotypes): Master data in HR is stored in infotypes. Each infotype pertains to a specific type of data. Each infotype has a database table associated with it. Example: For Infotype 0000, the corresponding Database table associated with it is PA0000. What is Infotype? The information units used to enter the data of an employee are called infotypes. The infotypes are used to group related data fields together. E.g.. IT0006.(address) Why Infotype As HR is related to time, we require old data as well as new data. The data we enter into the infotypes are automatically checked for accuracy and against the table entries.

The sequence in which the data is supplied to the program is determined by a tree structure. HR data is huge and to access data easily we require infotype. Structure Selections Database programs Logical databases have a tree structure. a LDB is a method by which ABAP programs read and process the data. • o The selection screen is displayed and the user enters data in the input fields . Logical databases at run-time of an ABAP program At run-time. • The only database-specific selections displayed on the selection screen are those needed by the program for data retrieval purposes 2. The LDB usually consists of the following components.g. calculating default values such as key date. In other words. the system processes the events in the program and in the logical database in the following order: o Before displaying the selection screen. What is logical database? The LDB is special type of ABAP program that combines the contents of certain related database tables and retrieves some related data and make it available to application programs. certain initializations (e. etc.) are performed for the selection screen by the logical database and the program. How are logical database used 1 Logical databases when generating an ABAP program o The selection screen generated contains the selections (SELECT-OPTIONS AND PARAMETERS) of both the logical database and the program.In simple. A logical database can contain a maximum of 300 tables SAPDBPNP is the name of the database program for the logical database PNP.

so that the user can make the necessary correction(s).Person selection and data selection period. The flow logic for such screens is also generated automatically and therefore cannot be modified. but also that the user has the appropriate authorizations.. the ABAP program performs any preliminary work (for ex. exporting files).g.Hourly wage earners in a particular personnel sub area.. each on a new line. the ABAP program performs any concluding operations (for example. There are two types of screening. calculating totals. Designing the selection screens o The standard selection screen of a logical database has a standard layout where SELECT-OPTIONS and PARAMETERS appear in the sequence they are declared. o The logical database reads the selected data and the program processes it within the GET events according to the sequence specified by the structure. . You cannot delete database selections Functions of LDB: Data retrieval: The personnel data of each employee is loaded into the main memory where it can be accessed for processing. Screening: Employees can be selected according to the organizational criteria entered on the selection screen. E. Any program-specific selections appear after the database selections. 3 . the system uses this screen as a model when generating. • You can define your own selection screens for any logical database. importing files). some fields are made ready for input again. If an error occurs.. o In the event END-OF-SELECTION. If the attributes of a program include the number of its own selection screen. Person selection defines those employees for whom a report is to be run.o The logical database and the program check that the input is correct and complete . o In the event START-OF-SELECTION. The system automatically generates such a screen for each program that does not have its own selection screen entered in the attributes.

Personnel number range E.Assignment.g.Monthly wage earners in a specific personnel sub-area. GET PERNR : This event fills the data structures of declared infotypes with all records that exists for a personnel number.g.through RP-READ-INFOTYPE.Active or inactive.either the customer default class(t599c) or the SAP default class(t599f) is used.Features of org..Otherwise the sap default report class ' ' is assigned..g.. When you enter the data selection period. E. .Employees who assigned to certain cost center.This allows you to suppress the input fields which are not used. You can also read the records of an infotype for a particular personnel number without using the logical database. Table t599b contains customer report classes and t599w the sap report classes.. Report class assignments are stored in table t599b or t599w.g.the provide loop retrieves the infotype records whose validity period overlaps with at least one day of this period.E. E. REPORT CLASS WITH LDB : You can change the layout of the selection screen by assigning classes to reports of the logical database PNP. Authorization check : This ensures that the person starting the evaluation Is authorized to access the report data..Employee status. All reports without a report class are assigned the customer default report class '00000000'. All reports that use the logical database PNP automatically contains DBPNPCOM module. If a report has no report class. The data selection period delimits the time period for which data is evaluated...

Whenever GET PERNR statement is included in your program check the following two .Have you included PERNR structure in the tables declaration.Have you included PNP for the logical database screen field in the program attributes. then the operation is successful. 1.Data selection does not delimit the records that retrieved from the database. If PNP-SW-FOUND = 1 . 2. field strings and internal tables etc.Each subtype representing an infotype category with its own time character. Macros : Macro contains some part of source code which it will be useful for number of applications.This addresses are sub-divided in the IT0006 as permanent residence. whether the operation was successful or not will be checked with PNP-SW-FOUND. .secondary residence and home address. The macro RP-PROVIDE-FROM-FRST retrieves the first(start) data record which is valid in the data selection period. For every macro. Infotype 0006 is for addresses. Elementary fields . The program code pertaining to this macro is stored in the control table RMAC Subtypes : The sub-division of infotype records are subtypes. The macro RP-PROVIDE-FROM-LAST retrieves the last(latest) data record which is valid in the data selection period. will come under data objects. The macro RP-READ-INFOTYPE retrieves the data record(s) which is valid in the data selection period. Cluster : set of data objects.

xx is cluster. To write data objects from ABAP/4 program to ABAP/4 memory.. Import f1 f2 from memory id 'table'. e. The clusters can be called from macros. RP-IMP-Cn-xx ( n = 1..4 and xx is cluster) When macro is used to import data.Cluster will be deleted from the memory. e.3.2. PCL2. Standard import programs follow the naming convention RPCLSTxx.it is not directly get from database table PCL. PCL3 contains applicant data. Export f1 f2 to memory id 'table'.It contains information regarding the time recording. PCL2 contains information regarding payroll accounting. cluster database tables PCL1. Cluster rx contains the payroll results for country x according to table T500l.otherwise it reads from PCL to main memory and from there to the report. PCL1 is the database for HR application areas.g.You can store data clusters in ABAP/4 memory for short time and in database for longer time.instead it checks for the buffer directory whether it contains it in main memory.if it is there it takes it from main memory. Free memory id 'table'.the following statement is used. Payroll. PCL3 and PCL4. These cluster databases come into picture to keep the information relating to a company more secure.. PCL4 contains change documents for HR master data. time related data.g. ..

Eg.4 and xx is cluster) The HR module is divided mainly into the following components.2. Wage type Structure . Personnel Planning and Development : It was designed to support the decision making process in any organization. Pay scale Structure . Personnel Structure . Eg : Calculating the Gross salary. 1.Training and event management comes under planning.RP-EXP-Cn-xx ( n = 1. It deals with giving inputs and taking outputs from the employees and setting up goals to individual employees and impart training to the employees.Personnel Administration and Payroll Accounting 2. Eg Organization management comes under administration. Company Structure . Recruitment .Personnel Planning and Development Personnel Administration relieves you from the daily administrative routine activities which are costly and time consuming. It also deals with recruitment of employees for the organization. Payroll accounting deals with the employee salaries in the Organization. Hr authorizations The company structure or corporate group is divided into : . while simultaneously supporting you in demanding planning activities. There are other functions like time and travel management in HR The organizational hierarchy deals with the following areas : .Net salary.3.

The components in Personnel structure are Administrative : Employee Group. Personnel Sub-area : Personnel sub areas are a subdivision of the personnel area. Management . Coding. Employee Subgroup and Payroll area. Employee Sub group : Division of employee groups. Country groupings .Personnel Sub-area Company code : Represents the highest level of Company structure. Personnel Area : It can represent large divisions within a company and Geographic locations. Organizational : Job. Executives and Trainees Payroll Area : The active employees are also divided into payroll areas that determine when they receive their paychecks like weekly or semi-monthly. Public Holiday calendar and wage type structures comes under organizational aspects.Personnel area . Hourly based. Position and Organizational unit. At this level . Job : Description of activity performed by the Employee. Active .the organizational aspects are controlled here.Company code . Salaried.. Contractors and External Employees. Employee Group : General classification of employees. Retired.

the following Infotypes are to be maintained first. Organizational reassignment . ·The set of valid entries for the entry mask is defined in the validation tables.Position : Employee Placement or individual employee assignment within the company. Master data Infotypes : When a new Personnel number is created . Leaving the company Hiring an employee : personnel . ·Events (0000) ·Organizational Assignment (0001) ·Personal Data (0002) ·Payroll Status (0003) Personnel Events : A function that groups together infotypes for processing procedures. this is the first step in entering personal data. Hiring an employee . Business Procedures in Personnel Administration When managing employee data the following tasks can perform . ·The set of valid entries in the tables is further restricted depending on the organizational assignment of the employee. Software Engineer or Manager Organization Unit : Performs a specific set of functions within company. Department or subsidiary etc Entering personnel data : Employee-specific data is entered according to the following guidelines: ·Fitting the employee into the organizational structure has the highest priority.

Organizational reassignments : Important changes in an employee's career path must be documented in the system. the standard SAP system contains the personnel event Organizational reassignment. we need to maintain lot of infotypes. This event gives the infotypes for maintaining the data of when an employee leaves the company. we have to enter large amount of data for employee into the system. Consequently.When assigning a new employee in a company. When you run this personnel event. Leaving the company : When the employee leaves the company. When hiring an employee. In HR different types of employee data are stored in infotypes.The personnel event Leaving is used to depict an employee leaving the company in the system. the system will automatically offer you the infotypes that you need to maintain. . certain infotypes cannot be changed . Hiring can be carried out using a personnel event.

Sign up to vote on this title
UsefulNot useful