SlideShare ist ein Scribd-Unternehmen logo
1 von 75
Downloaden Sie, um offline zu lesen
Programming in HR
HR-ABAP
SAP
ABAP HR
Prerequisites
ABAP Programming
Logical Database
Module pool programming
SAP Scripts
Knowledge of
SAP
ABAP HR
Training will cover
Brief description of modules in SAP-HR
Concept of Infotypes
Infotype Structures
Creation of infotype
Enhancement of infotype
HR Macros
Use of Provide statement
Cluster reading for Payroll results
Example of PA letters infotype (Customer defined)
SAP
ABAP HR
Modules in SAP-HR
Personnel Management (PA)
Time Management (PT)
Recruitment (PB)
Organizational Management (OM)
Personnel Development (PD)
Training & Event Management (TM)
SAP
ABAP HR
Infotype
Definition
Units of information.
SAP
ABAP HR
Uses of Infotype
• To group related data fields
Personal
Data
Name
DOB
Nationality
Marital Status
Addresses
Street
City
Pin code
State
INFOTYPES
SAP
ABAP HR
Uses of Infotype
• Maintaining Employee Information by Date
SAP
ABAP HR
Infotype Numbers
• Four digit number nnnn
• Unique identification
• 9000 to 9999 reserved for customer infotypes
SAP
ABAP HR
Naming Conventions
• 0000 to 0999 – HR Master data / Applicant data
• 1000 to 1999 – Organizational Management
• 2000 to 2999 – Time data
• 4000 to 4999 – Applicant data
• 9000 to 9999 – Customer defined
Naming conventions for Infotypes
SAP
ABAP HR
Definition of Infotype within the Data
Dictionary
Each infotype nnnn requires at least two structures and
one table:
• Structure PSnnnn
Structure PSnnnn contains all of the infotype data fields.
• Structure Pnnnn
Structure Pnnnn contains infotype key fields and all of the data
fields from structure PSnnnn .
• Transparent table PAnnnn and/or transparent table
PBnnnn
Transparent 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.
SAP
ABAP HR
Infotype Module Pool
• A 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.
SAP
ABAP HR
Infotype-specific Includes
The 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:
subroutinesMPnnnn40
PAI modules for the screensMPnnnn30
PBO modules for the screensMPnnnn20
The PROGRAM statement and
the declaration of common data objects
MPnnnn10
The include containsName of include
SAP
ABAP HR
Infotype-specific Includes
The 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 P0121
MPPREF00
Definition of infotype return codesMPPIRC00
Standard infotype modulesMPPERS00
Declaration of common data objectsMPPDAT00
Declaration of common data objects
This 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.
FP50PPSB
UseName of include
SAP
ABAP HR
Infotype Screens
Each infotype has at least three screens:
• An initial screen
• A single screen
• A list screen
SAP
ABAP HR
Initial Screens
• Initial screen is used as technical interface
• Screen 1000 is used for all infotypes
• Processed in background and not displayed
• Performs general initialization procedures
SAP
ABAP HR
Initial Screens - PreviewSAP
ABAP HR
Single Screens
• Its an interface between the system and the user.
• It enables to create, display or maintain data records.
• Screen 2000 is used for single screen.
SAP
ABAP HR
Single Screen - PreviewSAP
ABAP HR
List Screen
• Unables to list all records in infotye
• Screen 3000 is used for list screen
SAP
ABAP HR
List Screen - PreviewSAP
ABAP HR
Infotype Screen Control
• Through 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.
SAP
ABAP HR
Infotype Time Constraint
A 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.
SAP
ABAP HR
Other Possible Time Constraint
A 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.
SAP
ABAP HR
Infotype Characteristics
Thefollowingtables must bemaintainedfor eachinfotype:
Name of table Task
T582A Basic infotypecharacteristics
(databasetables, singlescreen, list screen, timeconstraint, dialog
module, andsoon)
T582S Infotypeshort texts
T777A Technical Characteristics of Infotype(databasetable, dialogmodule, and
soon)
T77ID Nameof datafieldstructure(PSnnnn)
SAP
ABAP HR
Creating PA infotypes
Transaction code
‘PM01’.
SAP
ABAP HR
Creating PA infotypes – PM01SAP
ABAP HR
Creating PA infotypes – Maintain StructureSAP
ABAP HR
Creating PA infotypes – Infotype TableSAP
ABAP HR
Creating PA info types – Infotype Table
(Primary Key)
SAP
ABAP HR
Creating PA infotypes – PreviewSAP
ABAP HR
Enhancement of PA Infotype
1. Start the Personnel Administration infotype
copier (PM01)
2. Enter the infotype number.
3. Choose Enhance infotype.
SAP
ABAP HR
Enhancing a Single Screen
• Start transaction PM01
• You 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.
Result
You have included additional fields in the standard single field for an
infotype
SAP
ABAP HR
Enhancing a Single Screen – PM01SAP
ABAP HR
Enhancing a Single Screen – Maintain
Structure
SAP
ABAP HR
Enhancing a Single Screen – Screen Preview
Enhanced Field
SAP
ABAP HR
Enhancing PA Infotype – CI INCLUDE
Only those PA Tables can be Enhanced, having structure CI Include
CI_P0000
SAP
ABAP HR
HR Macros
RP_PROVIDE_FROM_LAST
RP_PROVIDE_FROM_FIRST
RP_SET_DATA_INTERVAL
RP_READ_INFOTYPE
SAP
ABAP HR
Macros Modules
Macro Modules
TABLES: PERNR.
INFOTYPES:0001, "Organizational Assignment
0002, "Personal Data
0006, "Addresses
....
GET PERNR.
RP_PROVIDE_FROM_LAST P0001 SPACE PN-BEGDA PN-ENDDA.
WRITE...
* * * Include program DBPNPMAC.
DEFINE RP_PROVIDE_FROM_LAST.
PNP-SW-FOUND = '0'.
. . .
END-OF-DEFINITION.
SAP
ABAP HR
Infotype Record Processing
Processing a Specific Infotype Record
Data selection January December
Table
Pnnnn
January December
GET PERNR.
RP_PROVIDE_FROM_LAST <Pnnnn> SPACE PN-BEGDA PN-ENDDA.
IF PNP-SW-FOUND = 1.
WRITE...
ENDIF.
SAP
ABAP HR
Infotype Record Importing
Importing Specific Infotype Records
Data selection May December
Table
Pnnnn
PAnnnn
START-OF-SELECTION.
RP_SET_DATA_INTERVAL '<Pnnnn>' PN-BEGDA PN-ENDDA.
GET PERNR.
SAP
ABAP HR
Function HR_READ_INFOTYPE
Reading Infotypes Without Logical DB (1)
PAnnnnPAnnnn
INFOTYPES: <nnnn>.
...
CALL FUNCTION
'HR_READ_INFOTYPE'...
SAP
ABAP HR
Function HR_READ_INFOTYPE
Reading Infotypes Without Logical DB (2)
INFOTYPES: 0002.
DATA: return LIKE SY-SUBRC.
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
. . .
PERNR = <person>
INFTY = '0002'
BEGDA = <begdat>
ENDDA = <enddat>
IMPORTING
SUBRC = return
TABLES
INFTY_TAB = P0002
EXCEPTIONS
INFTY_NOT_FOUND = 1
OTHERS = 2.
SAP
ABAP HR
HR Macro – Summary
• Many 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 info type 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.
SAP
ABAP HR
Use of PROVIDE Statement
PROVIDE – 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.
SAP
ABAP HR
Logical database PNP
1. Data retrieval 2. Screening
3. Authorization check
Functions of Logical Database PNP
SAP
ABAP HR
Logical database PNP - ScreeningSAP
ABAP HR
Functions of Logical database PNP
Data Retrieval
1. Create data structures for infotypes
2. Fill the data structures withthe infotype records
"Organizational Assignment "
"Personal Data"
"Planned Working Time"
INFOTYPES: 0001,
0002,
0007.
GET PERNR.
SAP
ABAP HR
Processing Master Data using PROVIDE
Processing Master Data
TABLES: PERNR.
INFOTYPES:0001, "Actions
0002, "Personal Data
0006, "Addresses
....
GET PERNR.
PROVIDE * FROM P0002 BETWEEN PN-BEGDA AND PN-ENDDA.
WRITE...
ENDPROVIDE.
SAP
ABAP HR
Processing Master Data using PROVIDE
Loop Nesting
GET PERNR.
PROVIDE * FROM P0002
BETWEEN PN-BEGDA AND PN-ENDDA.
WRITE...
ENDPROVIDE.
PROVIDE * FROM P0006
BETWEEN PN-BEGDA AND PN-ENDDA.
WRITE...
ENDPROVIDE.
END-OF-SELECTION.
Infotype
loop
Infotype
loop
Employee
loop
SAP
ABAP HR
Joins in PROVIDE
Join
Organizational
Assignment (0001)
Personal
Data (0002)
Join / Creating Intervals
SAP
ABAP HR
Joins in PROVIDE
Join / Coding
TABLES: PERNR.
INFOTYPES:0001, "Organizational Assignment
0002, "Personal Data
0006, "Addresses
....
GET PERNR.
PROVIDE * FROM P0001
* FROM P0002
BETWEEN PN-BEGDA AND PN-ENDDA.
WRITE...
ENDPROVIDE.
SAP
ABAP HR
Joins and Projection in PROVIDE
Join and Projection / Coding
TABLES: PERNR.
INFOTYPES:0001, "Organizational Assignment
0002, "Personal Data
....
GET PERNR.
PROVIDE STELL
ENAME FROM P0001
GBDAT FROM P0002
BETWEEN PN-BEGDA AND PN-ENDDA.
WRITE...
ENDPROVIDE.
SAP
ABAP HR
PA Letters Infotype – Customer Defined
Business Needs:
A letter is to be generated after the following action in the prescribed
format:
1. Hiring / Appointment Letter
2. Confirmation Letter
3. Promotion Letter
4. Transfer Letter
5. Relieving Letter on Resignation
6. Retirement Letter
The generated letter should be modifiable and same is to be stored
along with each employee and action.
SAP
ABAP HR
Sample format of Appointment Letter
LETTER NO. REC.01 APPOINTMENT LETTER
Mr./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]
SAP
ABAP HR
Structure for PA letter Infotype
Structure: PS9011
Component Component
Type
Data
Type
Len De
c
Short Text
LDATE ZLDATE DATS 8 0 Letter Date
LTYPE ZLTYPE1 CHAR 50 0 Letter Type
SIGN1 ZSIGN1 CHAR 40 0 Signatory
DESGN ZDESGN CHAR 40 0 Designation
MASSN ZMASSN CHAR 2 0 Action Type
EFFDT BEGDA DATS 8 0 Start Date
SUPER ZSUPER CHAR 40 0 SBU / Functional Head
SBUNM ZSBUNM CHAR 40 0 SBU Name
APDAT ZAPDAT DATS 8 0 Appointment Date
RLDAT ZRLDAT DATS 8 0 Relieving Date
LETTERID TDOBNAME CHAR 70 0 Name
SAP
ABAP HR
ZHR_LTYPE
Table ZHR_LTYPE created for help drop down of field
LTYPE of structure PS9011.
Table: ZHR_LTYPE
Fields Field Type
Data
Type Len Dec Short Text
INFTY INFTY CHAR 4 0 Infotype
SUBTY SUBTY_591A CHAR 4 0 Subtype
LTYPE ZLTYPE1 CHAR 50 0 Letter Type
ACTION MASSN CHAR 2 0 Action Type
FRMNM ZFRMNM CHAR 30 0 Form Name
SAP
ABAP HR
Screen Layout for PA Letters InfotypeSAP
ABAP HR
STD 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 compensation
package sheet.
*
SAP
ABAP HR
STD Text for Appointmnet Letter – SO10
B You will be on probation for a period of six months. On satisfactory
completion of probation you will be confirmed in service.
*
B 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.
B Please confirm your acceptance by signing the duplicate copy of this
letter & initimate the date of joining.
*
B This offer is valid for two months from the date of receipt of this
letter.
*
* Faithfully
*
* &pp9011-sign1&
*
P2 CC:,,Chief Personnel Officer
P2 ,,Chief Manager, Management Systems and Information
P2 ,,
SAP
ABAP HR
Clusters
Definition
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.
SAP
ABAP HR
Display of Cluster data – Payroll ResultSAP
ABAP HR
Display of Cluster data – Payroll ResultSAP
ABAP HR
Display of Cluster data – Payroll ResultSAP
ABAP HR
Display of Cluster data – Payroll ResultSAP
ABAP HR
Display of Cluster data – Payroll ResultSAP
ABAP HR
Display of Cluster data – Payroll ResultSAP
ABAP HR
Reading Cluster Directory
Reading the Cluster Directory
*Table containing directoryof payroll results
DATA: BEGIN OF RGDIR OCCURS 100.
INCLUDE STRUCTURE PC261.
DATA: END OF RGDIR.
DATA: COUNTRY LIKE T001P-MOLGA.
...
CALL FUNCTION 'CU_READ_RGDIR'
EXPORTING
PERSNR = PERNR-PERNR
IMPORTING
MOLGA = country
TABLES
IN_RGDIR = RGDIR
EXCEPTIONS
NO_RECORD_FOUND = 1
OTHERS = 2.
SAP
ABAP HRSAP
ABAP HR
Determining Last Payroll Result
Determining Current Payroll Result (1)
DATA: number LIKE PC261-SEQNR.
. . .
GET PERNR.
. . .
CALL FUNCTION 'CU_READ_RGDIR'
. . .
CALL FUNCTION 'CD_READ_LAST'
EXPORTING
BEGIN_DATE = PN-BEGDA
END_DATE = PN-ENDDA
IMPORTING
OUT_SEQNR = number
TABLES
RGDIR = RGDIR
EXCEPTIONS
NO_RECORD_FOUND = 1
OTHERS = 2.
SAP
ABAP HR
Determining Last Payroll Result
Determining Current Payroll Result (2)
DATA: result TYPE PAY99_RESULT.
DATA: rt_header TYPE LINE OF HRPAY99_RT.
. . .
CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
EXPORTING
CLUSTERID ='RX'
EMPLOYEENUMBER =p0001-pernr
SEQUENCENUMBER =number
* READ_ONLY_BUFFER = ' '
* READ_ONLY_INTERNATIONAL = ' '
* CHECK_READ_AUTHORITY = 'X'
. . .
CHANGING
PAYROLL_RESULT =result
EXCEPTIONS . .
LOOP AT result-INTER-RT INTO rt_header.
WRITE: / rt_header-LGART, ...
ENDLOOP.
SAP
ABAP HR
Structure for Payroll Result
Structure for Payroll Results
DATA: result TYPE PAY99_RESULT.
DATA: rt_header TYPE LINE OF HRPAY99_RT.
. . .
* Access to payroll result data
WRITE: result-INTER-VERSC-FPPER,
. . .
LOOP AT result-INTER-RT INTO rt_header.
WRITE: / rt_header-LGART, . . .
ENDLOOP.
Structure: PAY99_RESULT
EVP
Structure PC261
INTERStructure PAY99_INTERNATIONAL NAT
Dummy
for national
part
VERSC
Type PC202
RT
Type HRPAY99_RT
BTCRT
Type HRPAY99_CRT
SAP
ABAP HR
EXERCISE (1)
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:
a. Relieving letter from last employer
b. Salary Slip of last employer
c. Graduation certificate
d. Copy of latest qualification certificate, specify
e. Income Tax certificate of last employer
f. Others specify – (3 lines)
Create a customer defined infotype where above
details are maintained.
SAP
ABAP HR
EXERCISE (2)
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.
• 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.
LTA is one time payment and maintained in IT
0015, i.e. Additional payments & deductions.
SAP
ABAP HR
EXERCISE (3)
3. Generate a report to list employee with the latest
action in the given date range.
Display following fields:
a. Employee Number
b. Employee Name
c. Action Type
d. Action Text
e. Action Start Date
Tips: Make use of HR macros
SAP
ABAP HR
EXERCISE (4)
4. Generate a report to list an employment history in a
given date range.
Display following fields:
a. Employee Number
b. Employee Name
c. Action Start Date
d. Action Type
e. Action Text
Tips: Make use of provide – endprovide loop
SAP
ABAP HR
EXERCISE (5)
5. Generate a Salary register which will list following
fields in matrix format.
Read data from Payroll Cluster and display it in the
above format.
Emp.No. Basic HRA Conv Spl.Pay
00001
00002
00100
Tips: Refer to SAP standard programs in T.Code
PC00_M99_CLGA09 and PC_M99_CLGV09
SAP
ABAP HR

Weitere ähnliche Inhalte

Was ist angesagt?

SAP ERP Solutions - How It Evolved Over Time
SAP ERP Solutions - How It Evolved Over TimeSAP ERP Solutions - How It Evolved Over Time
SAP ERP Solutions - How It Evolved Over TimeAPPSeCONNECT
 
SAP Interview Questions for Experienced to Assess & Hire SAP Specialists_Part 2
SAP Interview Questions for Experienced to Assess & Hire SAP Specialists_Part 2SAP Interview Questions for Experienced to Assess & Hire SAP Specialists_Part 2
SAP Interview Questions for Experienced to Assess & Hire SAP Specialists_Part 2Interview Mocha
 
SAP Foundations and Navigation
SAP Foundations and Navigation SAP Foundations and Navigation
SAP Foundations and Navigation K Singh
 

Was ist angesagt? (7)

Sap infosys fico
Sap infosys ficoSap infosys fico
Sap infosys fico
 
Sap overview
Sap overviewSap overview
Sap overview
 
SAP for Beginners
SAP for BeginnersSAP for Beginners
SAP for Beginners
 
SAP ERP Solutions - How It Evolved Over Time
SAP ERP Solutions - How It Evolved Over TimeSAP ERP Solutions - How It Evolved Over Time
SAP ERP Solutions - How It Evolved Over Time
 
SAP Interview Questions for Experienced to Assess & Hire SAP Specialists_Part 2
SAP Interview Questions for Experienced to Assess & Hire SAP Specialists_Part 2SAP Interview Questions for Experienced to Assess & Hire SAP Specialists_Part 2
SAP Interview Questions for Experienced to Assess & Hire SAP Specialists_Part 2
 
Sap Intro
Sap IntroSap Intro
Sap Intro
 
SAP Foundations and Navigation
SAP Foundations and Navigation SAP Foundations and Navigation
SAP Foundations and Navigation
 

Andere mochten auch

Copy of forrester oracles-dilemma
Copy of forrester oracles-dilemmaCopy of forrester oracles-dilemma
Copy of forrester oracles-dilemmaIT
 
111111111
111111111111111111
111111111IT
 
Abap sap 101_beginners_2_04
Abap sap 101_beginners_2_04Abap sap 101_beginners_2_04
Abap sap 101_beginners_2_04IT
 
Abaphrprograming 121218001552-phpapp02 (2)
Abaphrprograming 121218001552-phpapp02 (2)Abaphrprograming 121218001552-phpapp02 (2)
Abaphrprograming 121218001552-phpapp02 (2)IT
 
Copy (2) of ess manual1
Copy (2) of ess manual1Copy (2) of ess manual1
Copy (2) of ess manual1IT
 
Er ptips sap-training-manual-sample-chapter-from-materials-management
Er ptips sap-training-manual-sample-chapter-from-materials-managementEr ptips sap-training-manual-sample-chapter-from-materials-management
Er ptips sap-training-manual-sample-chapter-from-materials-managementIT
 
Xml tutorial
Xml tutorialXml tutorial
Xml tutorialIT
 

Andere mochten auch (7)

Copy of forrester oracles-dilemma
Copy of forrester oracles-dilemmaCopy of forrester oracles-dilemma
Copy of forrester oracles-dilemma
 
111111111
111111111111111111
111111111
 
Abap sap 101_beginners_2_04
Abap sap 101_beginners_2_04Abap sap 101_beginners_2_04
Abap sap 101_beginners_2_04
 
Abaphrprograming 121218001552-phpapp02 (2)
Abaphrprograming 121218001552-phpapp02 (2)Abaphrprograming 121218001552-phpapp02 (2)
Abaphrprograming 121218001552-phpapp02 (2)
 
Copy (2) of ess manual1
Copy (2) of ess manual1Copy (2) of ess manual1
Copy (2) of ess manual1
 
Er ptips sap-training-manual-sample-chapter-from-materials-management
Er ptips sap-training-manual-sample-chapter-from-materials-managementEr ptips sap-training-manual-sample-chapter-from-materials-management
Er ptips sap-training-manual-sample-chapter-from-materials-management
 
Xml tutorial
Xml tutorialXml tutorial
Xml tutorial
 

Ähnlich wie Abaphrprograming 121218001552-phpapp02 (2)

Comparison between abap & abap hr
Comparison between abap & abap hrComparison between abap & abap hr
Comparison between abap & abap hrMahender Donthula
 
sappresentation- By Prithwijit
sappresentation- By Prithwijit sappresentation- By Prithwijit
sappresentation- By Prithwijit PRITHWIJIT PAL
 
Sap S4 HANA PM Online training +918660816919
Sap S4 HANA PM Online training +918660816919Sap S4 HANA PM Online training +918660816919
Sap S4 HANA PM Online training +918660816919Senthil kumar
 
Lecture01 abap on line
Lecture01 abap on lineLecture01 abap on line
Lecture01 abap on lineMilind Patil
 
HR ABAP Technical Overview | http://sapdocs.info/
HR ABAP Technical Overview | http://sapdocs.info/HR ABAP Technical Overview | http://sapdocs.info/
HR ABAP Technical Overview | http://sapdocs.info/sapdocs. info
 
Introduction to SAP-Jaipur-30 July 2015.pptx
Introduction to SAP-Jaipur-30 July 2015.pptxIntroduction to SAP-Jaipur-30 July 2015.pptx
Introduction to SAP-Jaipur-30 July 2015.pptxNavneetChaubey4
 
S A P Orientation
S A P  OrientationS A P  Orientation
S A P Orientationslgvarma
 
History and Evolution of ERP & SAP
History and Evolution of ERP & SAPHistory and Evolution of ERP & SAP
History and Evolution of ERP & SAPShivkumar Rai
 
SAP ERP Essential Training
SAP ERP Essential TrainingSAP ERP Essential Training
SAP ERP Essential TrainingAricSmoker
 
SAP SD CONFIGURATION GUIDE
SAP SD CONFIGURATION GUIDE SAP SD CONFIGURATION GUIDE
SAP SD CONFIGURATION GUIDE Suresh Veluru
 
Sap SD configuration-guide
Sap SD configuration-guideSap SD configuration-guide
Sap SD configuration-guidetechgurusuresh
 
Sap sd notes
Sap sd notesSap sd notes
Sap sd notesMohit2385
 
Sun surya srinivass naidu letast
Sun surya srinivass naidu letast Sun surya srinivass naidu letast
Sun surya srinivass naidu letast Veeru Maddineni
 

Ähnlich wie Abaphrprograming 121218001552-phpapp02 (2) (20)

Abap hr programing
Abap hr programingAbap hr programing
Abap hr programing
 
Comparison between abap & abap hr
Comparison between abap & abap hrComparison between abap & abap hr
Comparison between abap & abap hr
 
Nikhil sap fico training ppt
Nikhil sap fico training pptNikhil sap fico training ppt
Nikhil sap fico training ppt
 
sappresentation- By Prithwijit
sappresentation- By Prithwijit sappresentation- By Prithwijit
sappresentation- By Prithwijit
 
Sap hr-programming
Sap hr-programmingSap hr-programming
Sap hr-programming
 
Sap S4 HANA PM Online training +918660816919
Sap S4 HANA PM Online training +918660816919Sap S4 HANA PM Online training +918660816919
Sap S4 HANA PM Online training +918660816919
 
Lecture01 abap on line
Lecture01 abap on lineLecture01 abap on line
Lecture01 abap on line
 
HR ABAP Technical Overview | http://sapdocs.info/
HR ABAP Technical Overview | http://sapdocs.info/HR ABAP Technical Overview | http://sapdocs.info/
HR ABAP Technical Overview | http://sapdocs.info/
 
Introduction to SAP-Jaipur-30 July 2015.pptx
Introduction to SAP-Jaipur-30 July 2015.pptxIntroduction to SAP-Jaipur-30 July 2015.pptx
Introduction to SAP-Jaipur-30 July 2015.pptx
 
S A P Orientation
S A P  OrientationS A P  Orientation
S A P Orientation
 
History and Evolution of ERP & SAP
History and Evolution of ERP & SAPHistory and Evolution of ERP & SAP
History and Evolution of ERP & SAP
 
Sap abap tutorials
Sap abap tutorialsSap abap tutorials
Sap abap tutorials
 
Sap hr overview-ankit
Sap hr overview-ankitSap hr overview-ankit
Sap hr overview-ankit
 
SAP ERP Essential Training
SAP ERP Essential TrainingSAP ERP Essential Training
SAP ERP Essential Training
 
SAP SD CONFIGURATION GUIDE
SAP SD CONFIGURATION GUIDE SAP SD CONFIGURATION GUIDE
SAP SD CONFIGURATION GUIDE
 
SAP SD configuration
SAP SD configuration SAP SD configuration
SAP SD configuration
 
Sap SD configuration-guide
Sap SD configuration-guideSap SD configuration-guide
Sap SD configuration-guide
 
Sap sd notes
Sap sd notesSap sd notes
Sap sd notes
 
Naidu sap sd
Naidu sap sdNaidu sap sd
Naidu sap sd
 
Sun surya srinivass naidu letast
Sun surya srinivass naidu letast Sun surya srinivass naidu letast
Sun surya srinivass naidu letast
 

Mehr von IT

Taxation project new
Taxation project newTaxation project new
Taxation project newIT
 
Service po part =2
Service po part =2Service po part =2
Service po part =2IT
 
Leadershipinprojectmanagement 100122164337-phpapp01
Leadershipinprojectmanagement 100122164337-phpapp01Leadershipinprojectmanagement 100122164337-phpapp01
Leadershipinprojectmanagement 100122164337-phpapp01IT
 
Leadershipconceptsandtheories 120810034143-phpapp01
Leadershipconceptsandtheories 120810034143-phpapp01Leadershipconceptsandtheories 120810034143-phpapp01
Leadershipconceptsandtheories 120810034143-phpapp01IT
 
Training needs analysis_132
Training needs analysis_132Training needs analysis_132
Training needs analysis_132IT
 
Semester ii unit4[1]
Semester ii unit4[1]Semester ii unit4[1]
Semester ii unit4[1]IT
 
Promotion transfer
Promotion transferPromotion transfer
Promotion transferIT
 
Projectreport 150207002313-conversion-gate02
Projectreport 150207002313-conversion-gate02Projectreport 150207002313-conversion-gate02
Projectreport 150207002313-conversion-gate02IT
 
114123215 promotion-transfer-and-demotion
114123215 promotion-transfer-and-demotion114123215 promotion-transfer-and-demotion
114123215 promotion-transfer-and-demotionIT
 
48041656 a-project-report-on-training-and-development-of-hal
48041656 a-project-report-on-training-and-development-of-hal48041656 a-project-report-on-training-and-development-of-hal
48041656 a-project-report-on-training-and-development-of-halIT
 
Mba projects
Mba projectsMba projects
Mba projectsIT
 
Ksdlproject 130515205109-phpapp01
Ksdlproject 130515205109-phpapp01Ksdlproject 130515205109-phpapp01
Ksdlproject 130515205109-phpapp01IT
 
6.training &amp; developement
6.training &amp; developement6.training &amp; developement
6.training &amp; developementIT
 
Job satisfaction-120112001047-phpapp01 (1)
Job satisfaction-120112001047-phpapp01 (1)Job satisfaction-120112001047-phpapp01 (1)
Job satisfaction-120112001047-phpapp01 (1)IT
 
Hrm 140721111726-phpapp01
Hrm 140721111726-phpapp01Hrm 140721111726-phpapp01
Hrm 140721111726-phpapp01IT
 
mp140806062848-phpapp02
mp140806062848-phpapp02mp140806062848-phpapp02
mp140806062848-phpapp02IT
 
Job satisfaction-120112001047-phpapp01
Job satisfaction-120112001047-phpapp01Job satisfaction-120112001047-phpapp01
Job satisfaction-120112001047-phpapp01IT
 
Vip preface of collective barganing
Vip preface of collective barganingVip preface of collective barganing
Vip preface of collective barganingIT
 
Divya cv(chandigarh)0007
Divya cv(chandigarh)0007Divya cv(chandigarh)0007
Divya cv(chandigarh)0007IT
 

Mehr von IT (19)

Taxation project new
Taxation project newTaxation project new
Taxation project new
 
Service po part =2
Service po part =2Service po part =2
Service po part =2
 
Leadershipinprojectmanagement 100122164337-phpapp01
Leadershipinprojectmanagement 100122164337-phpapp01Leadershipinprojectmanagement 100122164337-phpapp01
Leadershipinprojectmanagement 100122164337-phpapp01
 
Leadershipconceptsandtheories 120810034143-phpapp01
Leadershipconceptsandtheories 120810034143-phpapp01Leadershipconceptsandtheories 120810034143-phpapp01
Leadershipconceptsandtheories 120810034143-phpapp01
 
Training needs analysis_132
Training needs analysis_132Training needs analysis_132
Training needs analysis_132
 
Semester ii unit4[1]
Semester ii unit4[1]Semester ii unit4[1]
Semester ii unit4[1]
 
Promotion transfer
Promotion transferPromotion transfer
Promotion transfer
 
Projectreport 150207002313-conversion-gate02
Projectreport 150207002313-conversion-gate02Projectreport 150207002313-conversion-gate02
Projectreport 150207002313-conversion-gate02
 
114123215 promotion-transfer-and-demotion
114123215 promotion-transfer-and-demotion114123215 promotion-transfer-and-demotion
114123215 promotion-transfer-and-demotion
 
48041656 a-project-report-on-training-and-development-of-hal
48041656 a-project-report-on-training-and-development-of-hal48041656 a-project-report-on-training-and-development-of-hal
48041656 a-project-report-on-training-and-development-of-hal
 
Mba projects
Mba projectsMba projects
Mba projects
 
Ksdlproject 130515205109-phpapp01
Ksdlproject 130515205109-phpapp01Ksdlproject 130515205109-phpapp01
Ksdlproject 130515205109-phpapp01
 
6.training &amp; developement
6.training &amp; developement6.training &amp; developement
6.training &amp; developement
 
Job satisfaction-120112001047-phpapp01 (1)
Job satisfaction-120112001047-phpapp01 (1)Job satisfaction-120112001047-phpapp01 (1)
Job satisfaction-120112001047-phpapp01 (1)
 
Hrm 140721111726-phpapp01
Hrm 140721111726-phpapp01Hrm 140721111726-phpapp01
Hrm 140721111726-phpapp01
 
mp140806062848-phpapp02
mp140806062848-phpapp02mp140806062848-phpapp02
mp140806062848-phpapp02
 
Job satisfaction-120112001047-phpapp01
Job satisfaction-120112001047-phpapp01Job satisfaction-120112001047-phpapp01
Job satisfaction-120112001047-phpapp01
 
Vip preface of collective barganing
Vip preface of collective barganingVip preface of collective barganing
Vip preface of collective barganing
 
Divya cv(chandigarh)0007
Divya cv(chandigarh)0007Divya cv(chandigarh)0007
Divya cv(chandigarh)0007
 

Kürzlich hochgeladen

The-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptxThe-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptxmbikashkanyari
 
8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCRashishs7044
 
Investment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy CheruiyotInvestment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy Cheruiyotictsugar
 
8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCR8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCRashishs7044
 
Darshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdfDarshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdfShashank Mehta
 
Cyber Security Training in Office Environment
Cyber Security Training in Office EnvironmentCyber Security Training in Office Environment
Cyber Security Training in Office Environmentelijahj01012
 
PSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationPSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationAnamaria Contreras
 
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu MenzaYouth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menzaictsugar
 
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607dollysharma2066
 
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City GurgaonCall Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaoncallgirls2057
 
8447779800, Low rate Call girls in Rohini Delhi NCR
8447779800, Low rate Call girls in Rohini Delhi NCR8447779800, Low rate Call girls in Rohini Delhi NCR
8447779800, Low rate Call girls in Rohini Delhi NCRashishs7044
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckHajeJanKamps
 
TriStar Gold Corporate Presentation - April 2024
TriStar Gold Corporate Presentation - April 2024TriStar Gold Corporate Presentation - April 2024
TriStar Gold Corporate Presentation - April 2024Adnet Communications
 
Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...Seta Wicaksana
 
Kenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby AfricaKenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby Africaictsugar
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607dollysharma2066
 
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCRashishs7044
 

Kürzlich hochgeladen (20)

The-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptxThe-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
 
8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR
 
Investment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy CheruiyotInvestment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy Cheruiyot
 
8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCR8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCR
 
Enjoy ➥8448380779▻ Call Girls In Sector 18 Noida Escorts Delhi NCR
Enjoy ➥8448380779▻ Call Girls In Sector 18 Noida Escorts Delhi NCREnjoy ➥8448380779▻ Call Girls In Sector 18 Noida Escorts Delhi NCR
Enjoy ➥8448380779▻ Call Girls In Sector 18 Noida Escorts Delhi NCR
 
Darshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdfDarshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdf
 
Cyber Security Training in Office Environment
Cyber Security Training in Office EnvironmentCyber Security Training in Office Environment
Cyber Security Training in Office Environment
 
PSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationPSCC - Capability Statement Presentation
PSCC - Capability Statement Presentation
 
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu MenzaYouth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
 
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
 
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City GurgaonCall Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaon
 
8447779800, Low rate Call girls in Rohini Delhi NCR
8447779800, Low rate Call girls in Rohini Delhi NCR8447779800, Low rate Call girls in Rohini Delhi NCR
8447779800, Low rate Call girls in Rohini Delhi NCR
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
 
TriStar Gold Corporate Presentation - April 2024
TriStar Gold Corporate Presentation - April 2024TriStar Gold Corporate Presentation - April 2024
TriStar Gold Corporate Presentation - April 2024
 
Corporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information TechnologyCorporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information Technology
 
Japan IT Week 2024 Brochure by 47Billion (English)
Japan IT Week 2024 Brochure by 47Billion (English)Japan IT Week 2024 Brochure by 47Billion (English)
Japan IT Week 2024 Brochure by 47Billion (English)
 
Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...
 
Kenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby AfricaKenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby Africa
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
 
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
 

Abaphrprograming 121218001552-phpapp02 (2)

  • 2. Prerequisites ABAP Programming Logical Database Module pool programming SAP Scripts Knowledge of SAP ABAP HR
  • 3. Training will cover Brief description of modules in SAP-HR Concept of Infotypes Infotype Structures Creation of infotype Enhancement of infotype HR Macros Use of Provide statement Cluster reading for Payroll results Example of PA letters infotype (Customer defined) SAP ABAP HR
  • 4. Modules in SAP-HR Personnel Management (PA) Time Management (PT) Recruitment (PB) Organizational Management (OM) Personnel Development (PD) Training & Event Management (TM) SAP ABAP HR
  • 6. Uses of Infotype • To group related data fields Personal Data Name DOB Nationality Marital Status Addresses Street City Pin code State INFOTYPES SAP ABAP HR
  • 7. Uses of Infotype • Maintaining Employee Information by Date SAP ABAP HR
  • 8. Infotype Numbers • Four digit number nnnn • Unique identification • 9000 to 9999 reserved for customer infotypes SAP ABAP HR
  • 9. Naming Conventions • 0000 to 0999 – HR Master data / Applicant data • 1000 to 1999 – Organizational Management • 2000 to 2999 – Time data • 4000 to 4999 – Applicant data • 9000 to 9999 – Customer defined Naming conventions for Infotypes SAP ABAP HR
  • 10. Definition of Infotype within the Data Dictionary Each infotype nnnn requires at least two structures and one table: • Structure PSnnnn Structure PSnnnn contains all of the infotype data fields. • Structure Pnnnn Structure Pnnnn contains infotype key fields and all of the data fields from structure PSnnnn . • Transparent table PAnnnn and/or transparent table PBnnnn Transparent 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. SAP ABAP HR
  • 11. Infotype Module Pool • A 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. SAP ABAP HR
  • 12. Infotype-specific Includes The 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: subroutinesMPnnnn40 PAI modules for the screensMPnnnn30 PBO modules for the screensMPnnnn20 The PROGRAM statement and the declaration of common data objects MPnnnn10 The include containsName of include SAP ABAP HR
  • 13. Infotype-specific Includes The 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 P0121 MPPREF00 Definition of infotype return codesMPPIRC00 Standard infotype modulesMPPERS00 Declaration of common data objectsMPPDAT00 Declaration of common data objects This 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. FP50PPSB UseName of include SAP ABAP HR
  • 14. Infotype Screens Each infotype has at least three screens: • An initial screen • A single screen • A list screen SAP ABAP HR
  • 15. Initial Screens • Initial screen is used as technical interface • Screen 1000 is used for all infotypes • Processed in background and not displayed • Performs general initialization procedures SAP ABAP HR
  • 16. Initial Screens - PreviewSAP ABAP HR
  • 17. Single Screens • Its an interface between the system and the user. • It enables to create, display or maintain data records. • Screen 2000 is used for single screen. SAP ABAP HR
  • 18. Single Screen - PreviewSAP ABAP HR
  • 19. List Screen • Unables to list all records in infotye • Screen 3000 is used for list screen SAP ABAP HR
  • 20. List Screen - PreviewSAP ABAP HR
  • 21. Infotype Screen Control • Through 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. SAP ABAP HR
  • 22. Infotype Time Constraint A 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. SAP ABAP HR
  • 23. Other Possible Time Constraint A 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. SAP ABAP HR
  • 24. Infotype Characteristics Thefollowingtables must bemaintainedfor eachinfotype: Name of table Task T582A Basic infotypecharacteristics (databasetables, singlescreen, list screen, timeconstraint, dialog module, andsoon) T582S Infotypeshort texts T777A Technical Characteristics of Infotype(databasetable, dialogmodule, and soon) T77ID Nameof datafieldstructure(PSnnnn) SAP ABAP HR
  • 25. Creating PA infotypes Transaction code ‘PM01’. SAP ABAP HR
  • 26. Creating PA infotypes – PM01SAP ABAP HR
  • 27. Creating PA infotypes – Maintain StructureSAP ABAP HR
  • 28. Creating PA infotypes – Infotype TableSAP ABAP HR
  • 29. Creating PA info types – Infotype Table (Primary Key) SAP ABAP HR
  • 30. Creating PA infotypes – PreviewSAP ABAP HR
  • 31. Enhancement of PA Infotype 1. Start the Personnel Administration infotype copier (PM01) 2. Enter the infotype number. 3. Choose Enhance infotype. SAP ABAP HR
  • 32. Enhancing a Single Screen • Start transaction PM01 • You 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. Result You have included additional fields in the standard single field for an infotype SAP ABAP HR
  • 33. Enhancing a Single Screen – PM01SAP ABAP HR
  • 34. Enhancing a Single Screen – Maintain Structure SAP ABAP HR
  • 35. Enhancing a Single Screen – Screen Preview Enhanced Field SAP ABAP HR
  • 36. Enhancing PA Infotype – CI INCLUDE Only those PA Tables can be Enhanced, having structure CI Include CI_P0000 SAP ABAP HR
  • 38. Macros Modules Macro Modules TABLES: PERNR. INFOTYPES:0001, "Organizational Assignment 0002, "Personal Data 0006, "Addresses .... GET PERNR. RP_PROVIDE_FROM_LAST P0001 SPACE PN-BEGDA PN-ENDDA. WRITE... * * * Include program DBPNPMAC. DEFINE RP_PROVIDE_FROM_LAST. PNP-SW-FOUND = '0'. . . . END-OF-DEFINITION. SAP ABAP HR
  • 39. Infotype Record Processing Processing a Specific Infotype Record Data selection January December Table Pnnnn January December GET PERNR. RP_PROVIDE_FROM_LAST <Pnnnn> SPACE PN-BEGDA PN-ENDDA. IF PNP-SW-FOUND = 1. WRITE... ENDIF. SAP ABAP HR
  • 40. Infotype Record Importing Importing Specific Infotype Records Data selection May December Table Pnnnn PAnnnn START-OF-SELECTION. RP_SET_DATA_INTERVAL '<Pnnnn>' PN-BEGDA PN-ENDDA. GET PERNR. SAP ABAP HR
  • 41. Function HR_READ_INFOTYPE Reading Infotypes Without Logical DB (1) PAnnnnPAnnnn INFOTYPES: <nnnn>. ... CALL FUNCTION 'HR_READ_INFOTYPE'... SAP ABAP HR
  • 42. Function HR_READ_INFOTYPE Reading Infotypes Without Logical DB (2) INFOTYPES: 0002. DATA: return LIKE SY-SUBRC. CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING . . . PERNR = <person> INFTY = '0002' BEGDA = <begdat> ENDDA = <enddat> IMPORTING SUBRC = return TABLES INFTY_TAB = P0002 EXCEPTIONS INFTY_NOT_FOUND = 1 OTHERS = 2. SAP ABAP HR
  • 43. HR Macro – Summary • Many 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 info type 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. SAP ABAP HR
  • 44. Use of PROVIDE Statement PROVIDE – 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. SAP ABAP HR
  • 45. Logical database PNP 1. Data retrieval 2. Screening 3. Authorization check Functions of Logical Database PNP SAP ABAP HR
  • 46. Logical database PNP - ScreeningSAP ABAP HR
  • 47. Functions of Logical database PNP Data Retrieval 1. Create data structures for infotypes 2. Fill the data structures withthe infotype records "Organizational Assignment " "Personal Data" "Planned Working Time" INFOTYPES: 0001, 0002, 0007. GET PERNR. SAP ABAP HR
  • 48. Processing Master Data using PROVIDE Processing Master Data TABLES: PERNR. INFOTYPES:0001, "Actions 0002, "Personal Data 0006, "Addresses .... GET PERNR. PROVIDE * FROM P0002 BETWEEN PN-BEGDA AND PN-ENDDA. WRITE... ENDPROVIDE. SAP ABAP HR
  • 49. Processing Master Data using PROVIDE Loop Nesting GET PERNR. PROVIDE * FROM P0002 BETWEEN PN-BEGDA AND PN-ENDDA. WRITE... ENDPROVIDE. PROVIDE * FROM P0006 BETWEEN PN-BEGDA AND PN-ENDDA. WRITE... ENDPROVIDE. END-OF-SELECTION. Infotype loop Infotype loop Employee loop SAP ABAP HR
  • 50. Joins in PROVIDE Join Organizational Assignment (0001) Personal Data (0002) Join / Creating Intervals SAP ABAP HR
  • 51. Joins in PROVIDE Join / Coding TABLES: PERNR. INFOTYPES:0001, "Organizational Assignment 0002, "Personal Data 0006, "Addresses .... GET PERNR. PROVIDE * FROM P0001 * FROM P0002 BETWEEN PN-BEGDA AND PN-ENDDA. WRITE... ENDPROVIDE. SAP ABAP HR
  • 52. Joins and Projection in PROVIDE Join and Projection / Coding TABLES: PERNR. INFOTYPES:0001, "Organizational Assignment 0002, "Personal Data .... GET PERNR. PROVIDE STELL ENAME FROM P0001 GBDAT FROM P0002 BETWEEN PN-BEGDA AND PN-ENDDA. WRITE... ENDPROVIDE. SAP ABAP HR
  • 53. PA Letters Infotype – Customer Defined Business Needs: A letter is to be generated after the following action in the prescribed format: 1. Hiring / Appointment Letter 2. Confirmation Letter 3. Promotion Letter 4. Transfer Letter 5. Relieving Letter on Resignation 6. Retirement Letter The generated letter should be modifiable and same is to be stored along with each employee and action. SAP ABAP HR
  • 54. Sample format of Appointment Letter LETTER NO. REC.01 APPOINTMENT LETTER Mr./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] SAP ABAP HR
  • 55. Structure for PA letter Infotype Structure: PS9011 Component Component Type Data Type Len De c Short Text LDATE ZLDATE DATS 8 0 Letter Date LTYPE ZLTYPE1 CHAR 50 0 Letter Type SIGN1 ZSIGN1 CHAR 40 0 Signatory DESGN ZDESGN CHAR 40 0 Designation MASSN ZMASSN CHAR 2 0 Action Type EFFDT BEGDA DATS 8 0 Start Date SUPER ZSUPER CHAR 40 0 SBU / Functional Head SBUNM ZSBUNM CHAR 40 0 SBU Name APDAT ZAPDAT DATS 8 0 Appointment Date RLDAT ZRLDAT DATS 8 0 Relieving Date LETTERID TDOBNAME CHAR 70 0 Name SAP ABAP HR
  • 56. ZHR_LTYPE Table ZHR_LTYPE created for help drop down of field LTYPE of structure PS9011. Table: ZHR_LTYPE Fields Field Type Data Type Len Dec Short Text INFTY INFTY CHAR 4 0 Infotype SUBTY SUBTY_591A CHAR 4 0 Subtype LTYPE ZLTYPE1 CHAR 50 0 Letter Type ACTION MASSN CHAR 2 0 Action Type FRMNM ZFRMNM CHAR 30 0 Form Name SAP ABAP HR
  • 57. Screen Layout for PA Letters InfotypeSAP ABAP HR
  • 58. STD 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 compensation package sheet. * SAP ABAP HR
  • 59. STD Text for Appointmnet Letter – SO10 B You will be on probation for a period of six months. On satisfactory completion of probation you will be confirmed in service. * B 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. B Please confirm your acceptance by signing the duplicate copy of this letter & initimate the date of joining. * B This offer is valid for two months from the date of receipt of this letter. * * Faithfully * * &pp9011-sign1& * P2 CC:,,Chief Personnel Officer P2 ,,Chief Manager, Management Systems and Information P2 ,, SAP ABAP HR
  • 60. Clusters Definition 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. SAP ABAP HR
  • 61. Display of Cluster data – Payroll ResultSAP ABAP HR
  • 62. Display of Cluster data – Payroll ResultSAP ABAP HR
  • 63. Display of Cluster data – Payroll ResultSAP ABAP HR
  • 64. Display of Cluster data – Payroll ResultSAP ABAP HR
  • 65. Display of Cluster data – Payroll ResultSAP ABAP HR
  • 66. Display of Cluster data – Payroll ResultSAP ABAP HR
  • 67. Reading Cluster Directory Reading the Cluster Directory *Table containing directoryof payroll results DATA: BEGIN OF RGDIR OCCURS 100. INCLUDE STRUCTURE PC261. DATA: END OF RGDIR. DATA: COUNTRY LIKE T001P-MOLGA. ... CALL FUNCTION 'CU_READ_RGDIR' EXPORTING PERSNR = PERNR-PERNR IMPORTING MOLGA = country TABLES IN_RGDIR = RGDIR EXCEPTIONS NO_RECORD_FOUND = 1 OTHERS = 2. SAP ABAP HRSAP ABAP HR
  • 68. Determining Last Payroll Result Determining Current Payroll Result (1) DATA: number LIKE PC261-SEQNR. . . . GET PERNR. . . . CALL FUNCTION 'CU_READ_RGDIR' . . . CALL FUNCTION 'CD_READ_LAST' EXPORTING BEGIN_DATE = PN-BEGDA END_DATE = PN-ENDDA IMPORTING OUT_SEQNR = number TABLES RGDIR = RGDIR EXCEPTIONS NO_RECORD_FOUND = 1 OTHERS = 2. SAP ABAP HR
  • 69. Determining Last Payroll Result Determining Current Payroll Result (2) DATA: result TYPE PAY99_RESULT. DATA: rt_header TYPE LINE OF HRPAY99_RT. . . . CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT' EXPORTING CLUSTERID ='RX' EMPLOYEENUMBER =p0001-pernr SEQUENCENUMBER =number * READ_ONLY_BUFFER = ' ' * READ_ONLY_INTERNATIONAL = ' ' * CHECK_READ_AUTHORITY = 'X' . . . CHANGING PAYROLL_RESULT =result EXCEPTIONS . . LOOP AT result-INTER-RT INTO rt_header. WRITE: / rt_header-LGART, ... ENDLOOP. SAP ABAP HR
  • 70. Structure for Payroll Result Structure for Payroll Results DATA: result TYPE PAY99_RESULT. DATA: rt_header TYPE LINE OF HRPAY99_RT. . . . * Access to payroll result data WRITE: result-INTER-VERSC-FPPER, . . . LOOP AT result-INTER-RT INTO rt_header. WRITE: / rt_header-LGART, . . . ENDLOOP. Structure: PAY99_RESULT EVP Structure PC261 INTERStructure PAY99_INTERNATIONAL NAT Dummy for national part VERSC Type PC202 RT Type HRPAY99_RT BTCRT Type HRPAY99_CRT SAP ABAP HR
  • 71. EXERCISE (1) 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: a. Relieving letter from last employer b. Salary Slip of last employer c. Graduation certificate d. Copy of latest qualification certificate, specify e. Income Tax certificate of last employer f. Others specify – (3 lines) Create a customer defined infotype where above details are maintained. SAP ABAP HR
  • 72. EXERCISE (2) 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. • 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. LTA is one time payment and maintained in IT 0015, i.e. Additional payments & deductions. SAP ABAP HR
  • 73. EXERCISE (3) 3. Generate a report to list employee with the latest action in the given date range. Display following fields: a. Employee Number b. Employee Name c. Action Type d. Action Text e. Action Start Date Tips: Make use of HR macros SAP ABAP HR
  • 74. EXERCISE (4) 4. Generate a report to list an employment history in a given date range. Display following fields: a. Employee Number b. Employee Name c. Action Start Date d. Action Type e. Action Text Tips: Make use of provide – endprovide loop SAP ABAP HR
  • 75. EXERCISE (5) 5. Generate a Salary register which will list following fields in matrix format. Read data from Payroll Cluster and display it in the above format. Emp.No. Basic HRA Conv Spl.Pay 00001 00002 00100 Tips: Refer to SAP standard programs in T.Code PC00_M99_CLGA09 and PC_M99_CLGV09 SAP ABAP HR