2 Prerequisites Knowledge of Abaphr.com ABAP Programming Logical DatabaseModule pool programmingSAP Scripts
3 Training will cover Brief description of modules in SAP-HR Abaphr.comTraining will coverBrief description of modules in SAP-HRConcept of InfotypesInfotype StructuresCreation of infotypeEnhancement of infotypeHR MacrosUse of Provide statementCluster reading for Payroll resultsExample of PA letters infotype (Customer defined)
4 Modules in SAP-HR Personnel Management (PA) Time Management (PT) Abaphr.comModules in SAP-HRPersonnel Management (PA)Time Management (PT)Recruitment (PB)Organizational Management (OM)Personnel Development (PD)Training & Event Management (TM)
5 Abaphr.comInfotypeDefinitionUnits of information.
6 Uses of Infotype To group related data fields Personal Data INFOTYPES Abaphr.comUses of InfotypeTo group related data fieldsPersonal DataNameDOBNationalityMarital StatusAddressesStreetCityPin codeStateINFOTYPES
7 Abaphr.comUses of InfotypeMaintaining Employee Information by Date
8 Infotype Numbers Four digit number nnnn Unique identification Abaphr.comInfotype NumbersFour digit number nnnnUnique identification9000 to 9999 reserved for customer infotypesAbaphr.com
9 Naming Conventions Naming conventions for Infotypes Abaphr.comNaming ConventionsNaming conventions for Infotypes0000 to 0999 – HR Master data / Applicant data1000 to 1999 – Organizational Management2000 to 2999 – Time data4000 to 4999 – Applicant data9000 to 9999 – Customer defined
10 Definition of Infotype within the Data Dictionary Abaphr.comDefinition of Infotype within the Data DictionaryEach infotype nnnn requires at least two structures and one table:Structure PSnnnnStructure PSnnnn contains all of the infotype data fields.Structure PnnnnStructure Pnnnn contains infotype key fields and all of the data fields from structure PSnnnn .Transparent table PAnnnn and/or transparent table PBnnnnTransparent table PAnnnn is required if you want to use an infotype within Personnel Administration.If you want to use an infotype within Recruitment, transparent table PBnnnn is required.In accordance with the distribution of infotype name ranges, objects P9nnn , PS9nnn , PA9nnn and PB9nnn are assigned to the customer name range.
11 Abaphr.comInfotype Module PoolA module pool should be used with each infotype. This module pool is the main program for the maintenance interface for the infotype.The name of the program is MPnnnn00. Where P stands for Human Resources (personnel) and nnnn is the four-digit infotype number.
12 Infotype-specific Includes Abaphr.comInfotype-specific IncludesThe main program only contains INCLUDE statements. If you create the main program using transaction PM01 Dialogs in HR, the system also creates the following four includes:subroutinesMPnnnn40PAI modules for the screensMPnnnn30PBO modules for the screensMPnnnn20The PROGRAM statement andthe declaration of common data objectsMPnnnn10The include containsName of include
13 Infotype-specific Includes Abaphr.comInfotype-specific IncludesThe system also inserts INCLUDE statements in the main program for the following includes:Definition of two data objects that contain the number of reference personnel numbers in structure P0031 or P0121MPPREF00Definition of infotype return codesMPPIRC00Standard infotype modulesMPPERS00Declaration of common data objectsMPPDAT00This data area is used as a buffer for imported infotype records and maintenance information. The variables specified in this area are used as export or import parameters when the infotype dialog module is accessed.FP50PPSBUseName of include
14 Infotype Screens An initial screen A single screen A list screen Abaphr.comInfotype ScreensEach infotype has at least three screens:An initial screenA single screenA list screen
15 Initial Screens Initial screen is used as technical interface Abaphr.comInitial ScreensInitial screen is used as technical interfaceScreen 1000 is used for all infotypesProcessed in background and not displayedPerforms general initialization procedures
17 Single Screens Its an interface between the system and the user. Abaphr.comSingle ScreensIts an interface between the system and the user.It enables to create, display or maintain data records.Screen 2000 is used for single screen.
18 Single Screen - Preview Abaphr.comSingle Screen - Preview
19 List Screen Unables to list all records in infotye Abaphr.comList ScreenUnables to list all records in infotyeScreen 3000 is used for list screen
21 Infotype Screen Control Abaphr.comInfotype Screen ControlThrough customization some field are made hidden.Attributes are specified during runtime.The appearance of the screens changes depending on the function chosen by the user.
22 Infotype Time Constraint Abaphr.comInfotype Time ConstraintA time constraint indicates whether more than one infotype record may be available at one time. The following time constraint indicators are permissible:1 No overlapping and no gaps.2 No overlapping but time gaps are permitted.3 Overlapping and and time gaps are permitted.
23 Other Possible Time Constraint Abaphr.comOther Possible Time ConstraintA Only one record may exist, valid from 01/01/1800 to 12/31/9999. Splitting and deletion is not permissible.B Only one record may exist, valid from 01/01/1800 to 12/31/9999. Splitting is not permissible, but may be deleted.T The time constraint varies depending on the subtype.Z Refers to time management infotypes.
25 Abaphr.comCreating PA infotypesTransaction code‘PM01’.
26 Creating PA infotypes – PM01 Abaphr.comCreating PA infotypes – PM01
27 Creating PA infotypes – Maintain Structure Abaphr.comCreating PA infotypes – Maintain Structure
28 Creating PA infotypes – Infotype Table Abaphr.comCreating PA infotypes – Infotype Table
29 Creating PA infotypes – Infotype Table (Primary Key) Abaphr.comCreating PA infotypes – Infotype Table (Primary Key)
30 Creating PA infotypes – Preview Abaphr.comCreating PA infotypes – Preview
31 Enhancement of PA Infotype Abaphr.comEnhancement of PA InfotypeStart the Personnel Administration infotype copier (PM01)Enter the infotype number.Choose Enhance infotype.
32 Enhancing a Single Screen Abaphr.comEnhancing a Single ScreenStart transaction PM01You access the Create Infotype screen:Choose Enhance Infotypes.In the Infotype no. field, enter the four-digit number of the infotype you want to create. When you specify the infotype number, please remember to enter any leading zeros.In the Sub-Objects group box, flag CI Include.Choose Create. The Dictionary: Initial Screen is displayed.Create the Cl include.Choose Activate.Return to the Create Infotype screen.Choose Create All.ResultYou have included additional fields in the standard single field for an infotype
33 Enhancing a Single Screen – PM01 Abaphr.comEnhancing a Single Screen – PM01Abaphr.com
34 Enhancing a Single Screen – Maintain Structure Abaphr.comEnhancing a Single Screen – Maintain Structure
35 Enhancing a Single Screen – Screen Preview Abaphr.comEnhancing a Single Screen – Screen PreviewEnhanced Field
36 Enhancing PA Infotype – CI INCLUDE Abaphr.comEnhancing PA Infotype – CI INCLUDEOnly those PA Tables can be Enhanced, having structure CI IncludeCI_P0000
39 Infotype Record Processing Abaphr.comInfotype Record Processing
40 Infotype Record Importing Abaphr.comInfotype Record Importing
41 Function HR_READ_INFOTYPE Abaphr.comFunction HR_READ_INFOTYPE
42 Function HR_READ_INFOTYPE Abaphr.comFunction HR_READ_INFOTYPE
43 Abaphr.comHR Macro – SummaryMany HR reports use macros. Their program codes are stored in a table or defined locally using the DEFINE keyword.The PR_PROVIDE_FROM_LAST macro writes the last valid record in the data selection period to the header line of the internal infotype table.You can use the function module HR_READ_INFOTYPE to read the personnel data in reports which do not use an HR logical database.
44 Use of PROVIDE Statemnent Abaphr.comUse of PROVIDE StatemnentPROVIDE – ENDPROVIDE is a loop to process Pnnnn tables, within the validity period.Two or more infotypes can be processed in a single PROVIDE – ENDPROVIDE loop.Combines JOIN and PROJECTION.Reads time-dependent table entries.
52 Joins and Projection in PROVIDE Abaphr.comJoins and Projection in PROVIDE
53 PA Letters Infotype – Customer Defined Abaphr.comPA Letters Infotype – Customer DefinedBusiness Needs:A letter is to be generated after the following action in the prescribed format:Hiring / Appointment LetterConfirmation LetterPromotion LetterTransfer LetterRelieving Letter on ResignationRetirement LetterThe generated letter should be modifiable and same is to be stored along with each employee and action.
54 Sample format of Appointment Letter Abaphr.comSample format of Appointment LetterLETTER NO. REC.01 APPOINTMENT LETTERMr./Miss [Full name of Employee][Position] [Grade][Location]The management is pleased to appoint you as the [POSITION] in [GRADE] with effect from [DATE]. You will report to [POSITION].Your salary & other benefits are stated in the attached compensation package sheet.You will be on probation for a period of six months. On satisfactory completion of probation you will be confirmed in service.You shall be governed by the Services rules of the Company, a copy of which is enclosed. A summary of Benefits & Leave Rules as applicable to you is also enclosed.Please confirm your acceptance by signing the duplicate copy of this letter & intimate the date of joining.This offer is valid for two months from the date of receipt of this letter.Faithfully[Signatory] / SECRETARY[Designation]
55 Structure for PA letter Infotype Abaphr.comStructure for PA letter InfotypeStructure: PS9011ComponentComponent TypeData TypeLenDecShort TextLDATEZLDATEDATS8Letter DateLTYPEZLTYPE1CHAR50Letter TypeSIGN1ZSIGN140SignatoryDESGNZDESGNDesignationMASSNZMASSN2Action TypeEFFDTBEGDAStart DateSUPERZSUPERSBU / Functional HeadSBUNMZSBUNMSBU NameAPDATZAPDATAppointment DateRLDATZRLDATRelieving DateLETTERIDTDOBNAME70Name
56 Abaphr.comZHR_LTYPETable ZHR_LTYPE created for help drop down of field LTYPE of structure PS9011.Table: ZHR_LTYPEFieldsField TypeData TypeLenDecShort TextINFTYCHAR4InfotypeSUBTYSUBTY_591ASubtypeLTYPEZLTYPE150Letter TypeACTIONMASSN2Action TypeFRMNMZFRMNM30Form Name
57 Screen Layout for PA Letters Infotype Abaphr.comScreen Layout for PA Letters Infotype
58 STD Text for Appointmnet Letter – SO10 Abaphr.comSTD Text for Appointmnet Letter – SO10** Ref No. &itab-ref_no&* &cldate&* &itab-ename&* &itab-zdesgn&* &itab-orgtx&* &itab-name1&* &itab-first_line&B The Management is pleased to appoint you as the &itab-zdesgn& in grade&itab-pktxt& with effect from &itab-effdt&. You will report to .....B Your salary & other benefits are stated in the attached compensationpackage sheet.
59 STD Text for Appointmnet Letter – SO10 Abaphr.comSTD Text for Appointmnet Letter – SO10B You will be on probation for a period of six months. On satisfactorycompletion of probation you will be confirmed in service.*B You shall be governed by the Services rules of the Company, a copy ofwhich is enclosed. A summary of Benefits & Leave Rules as applicable toyou is also enclosed.B Please confirm your acceptance by signing the duplicate copy of thisletter & initiate the date of joining.B This offer is valid for two months from the date of receipt of thisletter.* Faithfully* &pp9011-sign1&P2 CC:,,Chief Personnel OfficerP2 ,,Chief Manager, Management Systems and InformationP2 ,,
60 Clusters Definition Abaphr.com Each database object, for example, PCL1 or PCL2, with the type Import/Export file consists of related areas. These areas are known as clusters, for example. RX, RD.
61 Display of Cluster data – Payroll Result Abaphr.comDisplay of Cluster data – Payroll Result
62 Display of Cluster data – Payroll Result Abaphr.comDisplay of Cluster data – Payroll Result
63 Display of Cluster data – Payroll Result Abaphr.comDisplay of Cluster data – Payroll Result
64 Display of Cluster data – Payroll Result Abaphr.comDisplay of Cluster data – Payroll Result
65 Display of Cluster data – Payroll Result Abaphr.comDisplay of Cluster data – Payroll Result
66 Display of Cluster data – Payroll Result Abaphr.comDisplay of Cluster data – Payroll Result
68 Determining Last Payroll Result Abaphr.comDetermining Last Payroll Result
69 Determining Last Payroll Result Abaphr.comDetermining Last Payroll Result
70 Structure for Payroll Result Abaphr.comStructure for Payroll Result
71 Abaphr.comEXERCISE (1)Whenever an employee is hired, it is mandatory to provide certain documents, which will form a checklist on joining the organization.The joining checklist are as follows:Relieving letter from last employerSalary Slip of last employerGraduation certificateCopy of latest qualification certificate, specifyIncome Tax certificate of last employerOthers specify – (3 lines)Create a customer defined infotype where above details are maintained.
72 Abaphr.comEXERCISE (2)Eligibility for LTA allowance is one basic for a financial year. If last year it is not claimed, it can be claimed in the current year.LTA is one time payment and maintained in IT 0015, i.e. Additional payments & deductions.Provide and additional field to maintain year for LTA claim. (Infotype Enhancement to IT 0015)If LTA claim is not of current year, then LTA reduces to 80% of the current basic. Built a validation for the same.
73 Abaphr.comEXERCISE (3)Generate a report to list employee with the latest action in the given date range.Display following fields:Employee NumberEmployee NameAction TypeAction TextAction Start DateTips: Make use of HR macros
74 Abaphr.comEXERCISE (4)Generate a report to list an employment history in a given date range.Display following fields:Employee NumberEmployee NameAction Start DateAction TypeAction TextTips: Make use of provide – endprovide loop
75 Abaphr.comEXERCISE (5)Generate a Salary register which will list following fields in matrix format.Emp.No. Basic HRA Conv Spl.Pay000010000200100Read data from Payroll Cluster and display it in the above format.Tips: Refer to SAP standard programs in T.CodePC00_M99_CLGA09 and PC_M99_CLGV09