SAP HR Overview

Last modified by: Bunty Jain – SAP HR ABAP, Delhi, India, IT SAP Trainin see!bunty"ain# mail$%om

Why HR is different from other modules ?
The following concepts are defined in HR which differs this module with other modules 1. Use of Infot pes !. The use of "ogical #ata$ase %. Use of &acros '. Storage and Access of data ( Authori)ation chec*s

The HR module is divided mainly into the following components.
1.Personnel Administration and Pa roll Accounting !.Personnel Planning and #evelopment

Personnel Administration
It relieves ou from the dail administrative routine activities which are costl and time consuming+ while simultaneousl supporting ou in demanding planning activities. ,g Organi)ation management comes under administration.

Payroll accounting
It deals with the emplo ee salaries in the Organi)ation. ,g - .alculating the /ross salar +0et salar .

There are other functions li*e time and travel management in HR .g.Personnel Planning and Development : It was designed to support the decision ma*ing process in an organi)ation. . Recruitment +Training and event management comes under planning. It deals with giving inputs and ta*ing outputs from the emplo ees and setting up goals to individual emplo ees and impart training to the emplo ees. It also deals with recruitment of emplo ees for the organi)ation.

nterprise 2compan or industr 3 in which someone is leading it and with some departments li*e HR+&ar*eting+4inance+R5# etc. 4or an organi)ation .mplo ees are the most powerful resource.rgani!ation : 1e can define an Organi)ation as an individual . . So to maintain the emplo ee related data we re6uire one s stem which ensures accurac and consistent within the Organi)ation.

XYZ Chemicals Company code XYZ Pharmaceuticals .hennai H8# Personnel Area Manufacturing Planning Personnel Sub-area .R"A#$%AT$ # H$&RAR'H( 789 Inc.

The organi!ational hierarchy deals with the following areas : : .ompan Structure : Personnel Structure : Pa scale Structure : 1age t pe Structure : HR authori)ations .

area Company Structure .ompan code : Personnel area : Personnel Su$.The company structure or corporate group is divided into : : .

At this level +the organi)ational aspects are controlled . Personnel Sub-area : Personnel su$ areas are a su$division of the personnel area.ompan structure. Company Structure (Contd ! .ountr groupings + Pu$lic Holida calendar and wage t pe structures comes under organi)ational aspects . Personnel Area : It can represent large divisions within a compan and /eographic locations.Company code : Represents the highest level of . .

XYZ Chemicals Company code XYZ Pharmaceuticals .R"A#$%AT$ # H$&RAR'H( 789 Inc.hennai H8# Personnel Area Manufacturing Planning Personnel Sub-area .

mplo ee Su$group and Pa roll area."he components in Personnel structure are Administrati#e : . $rgani%ational : <o$+ Position and Organi)ational unit. .mplo ee /roup+ .

ontractors and .&mployee "roup : /eneral classification of emplo ees. &mployee )u* group : #ivision of emplo ee groups. Active + Retired+ .mplo ees. Hourl $ased+ Salaried+ .=ternal .=ecutives and Trainees Personnel structure (Contd ! .

Personnel structure (Contd ! .Payroll Area : The active emplo ees are also divided into pa roll areas that determine when the receive their pa chec*s li*e wee*l or semi.monthl .

nit : Performs a specific set of functions within compan .oding+ &anagement Position : . #epartment or su$sidiar etc Personnel structure (Contd ! .mplo ee Placement or individual emplo ee assignment within the compan .+o* : #escription of activit performed $ the . Software . .ngineer or &anager rgani!ation .mplo ee.

ngineer Trainee Positions 'eneral Manager <o$ &anagement Sr(Manager Positions Personnel structure (Contd ! .#eveloper &ob S > 1 .

<o$ Positions Personnel structure (Contd ! .<o$ Positions One to man relationship AP.I Pro?ect #esigning .oding Testing @ualit control .

: The set of valid entries for the entr mas* is defined in the validation ta$les. : The set of valid entries in the ta$les is further restricted depending on the organi)ational assignment of the emplo ee. IT SAP Trainin see!bunty"ain# mail$%om . Last modified by: Bunty Jain – SAP HR ABAP.mplo ee.&ntering personnel data : . Delhi. India.specific data is entered according to the following guidelines- : 4itting the emplo ee into the organi)ational structure has the highest priorit A this is the first step in entering personal data.

vents 2BBBB3 : Organi)ational Assignment 2BBB13 : Personal #ata 2BBB!3 : Pa roll Status 2BBB%3 . : .-aster data $nfotypes : 1hen a new Personnel num$er is created + the following Infot pes have to $e maintained first.

.usiness Procedures in Personnel Administration 1hen managing emplo ee data the following tas*s can perform : Hiring an emplo ee : Organi)ational reassignment : "eaving the compan .Personnel &vents A function that groups together infot pes for processing personnel procedures.

1hen hiring an emplo ee+ we need to maintain lot of infot pes+ Hiring can $e carried out using a personnel event. In HR different t pes of emplo ee data are stored in infot pes. .Hiring an employee 1hen assigning a new emplo ee in a compan + we have to enter large amount of data for emplo ee into the s stem.

1hen ou run this personnel event+ the s stem will automaticall offer ou the infot pes that ou need to maintain. .onse6uentl + the standard SAP s stem contains the personnel event Organi)ational reassignment.rgani!ational reassignments : Important changes in an emplo eeCs career path must $e documented in the s stem. .

The personnel event "eaving is used to depict an emplo ee leaving the compan in the s stem. . This event gives the infot pes for maintaining the data of when an emplo ee leaves the compan ./eaving the company 1hen the emplo ee leaves the compan + certain infot pes cannot $e changed .

& Questions .

HR Technical Overview .

. . Example : For Infotype 0000. .sing of $nfotypes1: &aster data in HR is stored in infot pes.Data handling in HR 0. the corresponding database table associated with it is PA0000.ach infot pe pertains to a specific t pe of data.ach infot pe has a data$ase ta$le associated with it.

The data we enter into the infot pes are automaticall chec*ed for accurac and against the ta$le entries.g.What is $nfotype The information units used to enter the data of an emplo ee are called infot pes. . In simple+ HR data is huge and to access data easil we re6uire Infot pe..2address3 Why $nfotype As HR is related to time + we re6uire old data as well as new data.. . The Infot pes are used to group related data fields together. ITBBBD.

The se6uence in which the data is supplied to the program is determined $ a tree structure. In other words+ a "#E is a method $ which AEAP programs read and process the data. .What is logical data*ase? The "#E is special t pe of AEAP program that com$ines the contents of certain related data$ase ta$les and retrieve some related data and ma*e it availa$le to application programs.

The /D. usually consists of the following components. : Structure : Selections : #ata$ase programs )ogical *atabase (Contd ! .

A logical data$ase can contain a ma=imum of %BB ta$les )ogical *atabase (Contd ! ."ogical data$ases have a tree structure.

)ogical *atabase (Contd ! .SAP#EP0P is the name of the data$ase program for the logical data$ase P0P.

How are logical data*ase used 1."ogical data$ases when generating an AEAP program o The selection screen generated contains the selections (SELECT-OPTIONS AND PARAMETERS) of oth the logical data ase and the !rogra"# o The onl$ data ase-s!ecific selections dis!la$ed on the selection screen are those needed $ the !rogra" for data retrie%al !&r!oses )ogical *atabase (Contd ! .

!. o The selection screen is displa ed and the user enters data in the input fields.time+ the s stem processes the events in the program and in the logical data$ase in the following order o Eefore displa ing the selection screen+ certain initiali)ations 2e.g.3 are performed for the selection screen $ the logical data$ase and the program.time of an AEAP program At run. calculating default values such as *e date+ etc. )ogical *atabase (Contd ! . "ogical data$ases at run.

T events according to the se6uence specified $ the structure. o In the event STA T!"F!SE#E$TI"%.o The logical data$ase and the program chec* that the input is correct and complete + $ut also that the user has the appropriate authori)ations. o The logical data$ase reads the selected data and the program processes it within the /. o In the event E%&!"F!SE#E$TI"%. )ogical *atabase (Contd ! . If an error occurs+ some fields are made read for input again+ so that the user can ma*e the necessar correction2s3. the AEAP program performs an preliminar wor* 2for e=+ importing files3. the AEAP program performs an concluding operations 2for e=ample+ calculating totals+ e=porting files3.

The s stem automaticall generates such a screen for each program that does not have its own selection screen entered in the attri$utes.T.".OPTIO0S and PARA&.. )ogical *atabase (Contd ! .% .RS appear in the se6uence the are declared+ each on a new line.T. #esigning the selection screens o The standard selection screen of a logical data$ase has a standard la out where S.

If the attri$utes of a program include the num$er of its own selection screen+ the s stem uses this screen as a model when generating.o 8ou can define our own selection screens for an logical data$ase . An program. 8ou cannot delete data$ase selections )ogical *atabase (Contd ! .specific selections appear after the data$ase selections. The flow logic for such screens is also generated automaticall and therefore cannot $e modified.

.: &ata retrie'al The personnel data of each emplo ee is loaded into the main memor where it can $e accessed for processing.2unctions of /D.g..mplo ees can $e selected according to the organi)ational criteria entered on the selection screen...Hourl wage earners in a particular personnel su$ area. Screening : . .

.Personnel num$er range .Assignment.g...&onthl wage earners in a specific personnel su$.g. (Contd ! .. +unctions of )*.mplo ee status...There are two t pes of screening. Person selection defines those emplo ees for whom a report is to $e run..... .4eatures of org.area.g. .Active or inactive... ..mplo ees who assigned to certain cost center.g.Person selection and data selection period..

1hen ou enter the data selection period+the provide loop retrieves the infot pe records whose validit period overlaps with at least one da of this period.This ensures that the person starting the evaluation Is authori)ed to access the report data.The data selection period delimits the time period for which data is evaluated. (Contd ! . A(thori)ation chec* . +unctions of )*.

Ta$le t(FF$ contains customer report classes and t(FFw the sap report classes.This allows ou to suppress the input fields which are not used. : 8ou can change the la out of the selection screen $ assigning classes to reports of the logical data$ase P0P.Otherwise the sap default report class C C is assigned. All reports without a report class are assigned the customer default report class CBBBBBBBBC.R&P RT '/A)) W$TH /D. Report class assignments are stored in ta$le t(FF$ or t(FFw. .

A#.. All reports that use the logical data$ase P0P automaticall contains #EP0P.'ontinue.O& module. -eport Class .ith )*. If a report has no report class+either the customer default class2t(FFc3 or the SAP default class2t(FFf3 is used.I04OT8P. 8ou can also read the records of an infot pe for a particular personnel num$er without using the logical data$ase+through RP.. (Contd ! ..R.

Last modified by: Bunty Jain – SAP HR ABAP. India. #ata selection does not delimit the records that retrieved from the data$ase."&T P&R#R : This event fills the data structures of declared infot pes with all records that e=ists for a personnel num$er. Delhi. IT SAP Trainin see!bunty"ain# mail$%om .

structure in the ta$les 'et Pernr (Contd ! .1henever +ET PE % statement is included in our program+ chec* the following two .Have ou included P%P for the logical data$ase screen field in the program attri$utes. !. 1.Have ou included PE % declaration.

The macro P!P ".!F"/%& 1 2 + then the operation is successful. 4or ever macro+ whether the operation was successful or not will $e chec*ed with P%P!S. . The macro P!P ".-acros : &acro contains some part of source code which it will $e useful for num$er of applications.I&E!F "-!#AST retrieves the last2latest3 data record which is valid in the data selection period.I&E!F "-!F ST retrieves the first2start3 data record which is valid in the data selection period.!F"/%&0 If P%P!S.

G B + then the process is successful.SUER. If S8. The program code pertaining to this macro is stored in the control ta$le TR&A. Macros .-acros 0'ontd31 The macro P! EA&!I%F"T3PE retrieves all the data record2s3 which is valid in the data selection period.

-acros 0'ontd31 1henever ou are using the macros li*e P!P ".I&E!F "-!#AST or P!P ". Macros .I&E!F "-!F ST+ chec* whether ou have included logical data$ase P0P in program attri$utes.

. where A corresponds to PE % which descri$es for which personnel num$er ou re6uire records. # corresponds to Start date. Macros (Contd ! . E corresponds to I%F"T3PE which descri$es from which infot pe ou re6uire records. . corresponds to End date.It is not necessar to include logical data$ase P0P in our program when ou are using the macro li*e P! EA&!I%F"T3PE A 4 $ & E . corresponds to data str(ct(re of the declared infotype 2internal ta$le li*e pBBBB for infot pe BBBB3 where all the records of the particular personnel num$er will $e stored.

0O. )'#'. 1ith the /. )(#'. P.#'*#-''( '(#'-#-''Macros (Contd ! . .#-''' '/#'*#-''( )(#'(#-'')(#(-#++++ (-#'+#(++* (/#'*#(++.nd date Eegin date '(' '(' '(' '(' '(' '''''')* '''''')* '''''')* '''''')* '''''')* ()#'*#(++.onsider a personnel num$er + for e=ample %H.R0R statement+ when the personnel num$er %H comes all the records availa$le with that personnel num$er will $e retrieved.T P. "et us assume those records as follows.#-''' '..

1FFH to P0. P0."AST SPA.4RO&. '(' '''''')* '/#'*#-''( )(#'.E. Then the following record will $e retrieved...BD.1FFJ to P0.1!.0##A.!BBB to P0../#A P0. RP..PROII#.B1.E. Then the following record will $e retrieved.0##A. (-#'+#(++* If we assign B(.0##A If we assign B1. '(' '''''')* ()#'*#(++.#-''' Macros (Contd ! .BH./#A and %1./#A and B1.onsider the macro shown $elow..E..1FFH to P0.

P0.BH. RP.BD.1FFJ to P0..0##A.E. '(' '''''')* ()#'*#(++.0##A If we assign B1.1!..onsider the macro shown $elow.E.1FFH to P0..1FFJ to P0. (-#'+#(++* If we assign 1(./#A P0. Then the following record will $e retrieved./#A and %1.E..4RST SPA.. Then the following record will $e retrieved.!BBB to P0.B1. '(' '''''')* )'#'..4RO&.0##A.#-''' (/#'*#(++. Macros (Contd ! .PROII#./#A and B1.

ach su$t pe representing an infot pe categor with its own time character. .divided in the ITBBBD as permanent residence+secondar residence and home address.division of infot pe records are su$t pes..This addresses are su$. Infot pe BBBD is for addresses.)u*types : The su$.

'luster : set of data o$?ects. 8ou can store data clusters in AEAP>' memor for short time and in data$ase for longer time.lementar fields + field strings and internal ta$les etc. . will come under data o$?ects. .

.=port f1 f! to memor id Cta$leC.'luster 0'ontd31 To write data o$?ects from AEAP>' program to AEAP>' memor +the following statement is used. Cluster ... . Import f1 f! from memor id Cta$leC.luster will $e deleted from the memor . 4ree memor id Cta$leC.

."!+ P. e.luster r= contains the pa roll results for countr = according to ta$le T(BBl. P.It contains information regarding the time recording."% contains applicant data. cluster data$ase ta$les P. e.g."1+ P. P."'. Pa roll+ time related data. P. Cluster (Contd ! .g."! contains information regarding pa roll accounting.These cluster data$ases come into picture to *eep the information relating to a compan more secure."% and P."' contains change documents for HR master data. P."1 is the data$ase for HR application areas.

..otherwise it reads from P. RP."ST==.== is cluster.== 2 n G 1+!+%+' and == is cluster3 Cluster (Contd ! ."+ instead it chec*s for the $uffer director whether it contains it in main memor . Standard import programs follow the naming convention RP.n.== 2 n G 1+!+%+' and == is cluster3 1hen macro is used to import data+it is not directl get from data$ase ta$le P. RP.The clusters can $e called from macros... If it is there it ta*es it from main memor .I&P.n.7P.." to main memor and from there to the report.

& Questions .

Delhi. IT SAP Trainin see!bunty"ain# mail$%om . India.Than* 3o( Last modified by: Bunty Jain – SAP HR ABAP.

Sign up to vote on this title
UsefulNot useful