Professional Documents
Culture Documents
HR ABAP
Technical Overview
HR ABAP
Jan-2007
List of Topics
Logical Databases Join & Projection Reports / Repetitive Structures Clusters Time Data Infosets & Infoset Queries Infotypes Logical Database PCH
HR ABAP
Jan-2007
Logical Databases
HR ABAP
Jan-2007
HR ABAP
Jan-2007
HR ABAP
Jan-2007
HR ABAP
Jan-2007
Selections
The selections define a selection screen, which forms the user interface of the executable programs that use the logical database.
Database Program
The database program contains the ABAP statements used to read the data and pass it to the user of the logical database.
HR ABAP
Jan-2007
HR ABAP
Jan-2007
HR ABAP
Jan-2007
Logi
l tru tur
l Bnnnn
nnnn
KEY fi l s
cr fi l s
Qnnnn
Annnn
t fi l s
Snnnn
l cti fi l s
Ln
10
HR ABAP
Jan-2007
1999
B tru tur
n x mpl
A000
MANDT
AKEY
D1
Infotyp
tru tur
n x mpl
KEY
D1
11
HR ABAP
Jan-2007
1999
LDB - Screening
12
HR ABAP
Jan-2007
1. Create ata str ct res for i fot INFOTYPES: 0001, 0002, 0007.
es
" Orga izatio al ssig e t" "Perso al Data " " Pla e Worki g i e"
e recor s
13
HR ABAP
Jan-2007
LD _PROC Function module is used to call logical databases independently from any ABAP program Selection screen is not displayed The logical database does not trigger any GET events in the calling program, but passes the data back to the caller in callback ro ti es The depth to which the logical database is read is determined by specifying a node name in the CALLBACK parameter For the GET event, the callback routine is executed directly after the data has been read for the node, and before the subordinate nodes are processed. For the GET L TE event, the callback routine is processed after the subordinate nodes have been processed.
14
HR ABAP
Jan-2007
15
HR ABAP
Jan-2007
GET PERNR. PROVIDE * FROM P0002 BETWEEN PN-BEGDA AND PN-ENDDA. WRITE...
ENDPROVIDE.
16
HR ABAP
Jan-2007
SAP AG
Ift l Empl l p
Ift l
END-OF-SELECTION.
17
HR ABAP
Jan-2007
AP AG 1999
JA UA Y - A
IL
MAY - AUGUST
Ms Y
SE TEMBE - E EMBE
AP AG 1999
18 HR ABAP
Jan-2007
eriod-Based ata ( )
t Selection
January
Org. Assignment
ecem er
January
Org. Assignment
ecem er
19
AP AG 1999
HR ABAP
Jan-2007
20
HR ABAP
Jan-2007 2007 IBM Corporation
SAP AG
PerNo. Pers.area Na e 1909 1910 1899 1000 1000 1100 Sam Hawkins David Lindsay Karl May
21
HR ABAP
Jan-2007 2007 IBM Corporation
SAP AG
22
AP HR ABAP AG1999
Jan-2007
23
HR ABAP
Jan-2007
Joi
24
HR ABAP
Jan-2007
Joins in PROVIDE
GET PERNR. PROVIDE * FROM P0001 * FROM P0002 BETWEEN PN-BEGDA AND PN-ENDDA. WRITE... ENDPROVIDE.
25
HR ABAP
Jan-2007
TABLES: PERNR. INFOTYPES: 0001, 0002, 0006, .... GET PERNR. PROVIDE
* FROM P0002 * FROM P0006 BETWEEN PN-BEGDA AND PN-ENDDA WHERE P0006-SUBTY = '1'. IF P0006_VALID = 'X'. WRITE... ENDIF. ENDPROVIDE.
26
Jan-2007
GET PERNR. PROVIDE STELL ENAME FROM P0001 GBDAT FROM P0002 BETWEEN PN-BEGDA AND PN-ENDDA. WRITE... ENDPROVIDE.
27
HR ABAP
Jan-2007
BEG A T 1 S
SELECT * FROM T513S WHERE SPRSL = AND STELL = ENDDA GE AND AND BEGDA LE ENDSELECT.
28
HR ABAP
Jan-2007
AP AG 1999
HR Macros
RP_PROVIDE_FROM_L ST RP_PROVIDE_FROM_FIRST RP_SET_D TA_INTERVAL RP_READ_INFOTYPE RP-READ-ALL-TIME-ITY
29
HR ABAP
Jan-2007
and
Macros can also be defined as RMAC acros. The source code of these odules is stored in the function section of the control table TRMAC
When ou change an RMAC acro in the table TRMAC, the re orts that use this acro are not regenerated auto aticall . You ust regenerate the anuall .
30
HR ABAP
Jan-2007
31
Jan-2007
Data selection
Januar
Dece ber
Table Pnnnn
Januar
Dece ber
GET PERNR. RP_PROVIDE_FROM_LAST <Pnnnn> SPACE PN-BEGDA PN-ENDDA. IF PNP-SW-FOUND = 1. WRITE... ENDIF.
32
Jan-2007
ReadingInfot pes Without Logical DB (1)(1) Reading Infotype without using LDB
PAnnnn
33
Jan-2007
= return = P0002 = 1 = 2.
Jan-2007 2007 IBM Corporation
35
HR ABAP
Jan-2007
36
HR ABAP
Jan-2007
37
HR ABAP
Jan-2007
Dynamic Actions
38
HR ABAP
Jan-2007
Tables used
PSAVE To check old values of field PSPAR Transaction classes T001P Start dates and molga
39
HR ABAP
Jan-2007
40
HR ABAP
Jan-2007
41
HR ABAP
Jan-2007
42
HR ABAP
Jan-2007
43
HR ABAP
Jan-2007
44
HR ABAP
Jan-2007
45
HR ABAP
Jan-2007
ALV
ata Structures
DATA:
46
AP AG 1999
HR ABAP
Jan-2007
47
HR ABAP
Jan-2007
AVL Interface
48
HR ABAP
Jan-2007
Clusters
49
HR ABAP
Jan-2007
Clusters
Definition
It is a database object, It is a file or table which link with Relid It co bines the data fro several tables with identical ke s.
50
HR ABAP
Jan-2007
Clusters
Different Types Of Clusters
PCL1 : Database for HR Work Area PCL2 : Accounting Results ( Ti e / Payroll Results ) PCL3 : Recruit ent/Applicant Tracking Data PCL4 : Documents Data PCL5 : Personnel Cost Planning
51
HR ABAP
Jan-2007
Clusters
PCL2 Accounting Results table
PCL2 is a Transparent table. PCL2-relid then it is called Cluster. PCL2- (XX) Where XX : IN India RX- International RU- USA FI- Finland R - Australia
52
HR ABAP
Jan-2007
Importing Data
53
HR ABAP
Jan-2007
54
HR ABAP
Jan-2007
PCLn
Import
Buffer
55
HR ABAP
Jan-2007
AP AG 1999
56
HR ABAP
Jan-2007
57
HR ABAP
Jan-2007
Payroll Results
Payroll Results
REPORT RPCLSTxy.
Payroll result Suzanne T01 WT0 WT03 /101 .... erner January 19xx 000 300 200 00 DM DM DM DM
58
AP AG 1999
HR ABAP
Jan-2007
59
HR ABAP
Jan-2007
SAP AG 1999
60
AP AG 1999
HR ABAP
Jan-2007
61
AP AG 1999
HR ABAP
Jan-2007
tr P
Str
t r : PAY INT
T
T
Str t r PAY INT NAT IONAL
NAT T
C T
t r PC261
SC
!
PC202 T
P AY
P AY
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.
62
HR ABAP
# % $$
#" !
# % $$
#" !
C T
f r rt
ti
Jan-2007
NAT BT
RT
Type HRPAY99_RT
CRT
Type HRPAY99_CRT
SAP AG 1999
63 HR ABAP Jan-2007 2007 IBM Corporation
64
HR ABAP
Jan-2007
AP AG 1999
65
HR ABAP
Jan-2007
SAP AG 1999
66
HR ABAP
Jan-2007
67
HR ABAP
Jan-2007
68
HR ABAP
Jan-2007
69
HR ABAP
Jan-2007
70
HR ABAP
Jan-2007
Time Data
71
HR ABAP
Jan-2007
Time Data
Contents:
Dependency of Time Data on Validity Period Importing Time Data Processing Time Data Using Internal Tables
72
&
AP AG 1999
HR ABAP
Jan-2007
Leave
15 days
15 days
73
Jan-2007
INFOTYPES: 2001, "Absences 2002, "Attendances 2005, "Overtime 2010. "Employee Remuneration Info GET PERNR.
74 HR ABAP Jan-2007
PAnnnn
SAP AG 1999
GET PERNR. RP_PROVIDE_FROM_LAST P0001 SPACE PN-BEGDA PN-ENDDA. . . . . RP_READ_ALL_TIME_ITY PN-BEGDA PN-ENDDA. . . . . LOOP AT P2005. WRITE... ENDLOOP.
75
Jan-2007
stdaz
Data area
76
'
AP AG 1999 HR ABAP
Jan-2007
Footer processing
SAP AG 1999 HR ABAP
77
78
HR ABAP
Jan-2007
79
HR ABAP
Jan-2007
80
HR ABAP
Jan-2007
y Infotypes for Recruitment (40004999) y Some infotypes for Personnel Administration (such as 0001 and 0002)
y Customer infotypes
81
HR ABAP
Jan-2007
82
HR ABAP
Jan-2007
83
HR ABAP
Jan-2007
Ad Hoc Query
84
HR ABAP
Jan-2007
Creating Queries II
85
HR ABAP
Jan-2007
86
HR ABAP
Jan-2007
87
HR ABAP
Jan-2007
Creating Queries
88
HR ABAP
Jan-2007
Infotypes
89
HR ABAP
Jan-2007
90
HR ABAP
Jan-2007
91
HR ABAP
Jan-2007
Key Fields
Administration Fields
Custom Fields
92
HR ABAP
Jan-2007
93
HR ABAP
Jan-2007
Components of an Infotype
94
HR ABAP
Jan-2007
The include contains The PROGRAM statement and the declaration of common data objects PBO modules for the screens PAI modules for the screens subroutines
95
HR ABAP
Jan-2007
Infotype Screens
Each infotype has at least three screens: An initial screen ( 1000 )
Initial screen is used as technical interface Processed in background and not displayed
96
HR ABAP
Jan-2007
Initial Screens
Initial screen is used as technical interface Screen 1000 is used for all infotypes Processed in background. Performs general initialization procedures
97
HR ABAP
Jan-2007
98
HR ABAP
Jan-2007
99
HR ABAP
Jan-2007
100
HR ABAP
Jan-2007
101
HR ABAP
Jan-2007
Only one record may exist, valid from 01/01/1800 to 12/31/9999. Splitting is not permissible, but may be deleted.
102
HR ABAP
Jan-2007
In ot pe C aracteristics
e ollo in tables ust be aintaine or eac in ot pe
82A
Basic inot pe c aracteristics atabase tables sin le screen list screen ti e constraint ialo o ule an so on
82S 777A
In ot pe s ort te ts ec nical C aracteristics o In ot pe atabase table ialo so on a e o ata iel structure PSnnnn o ule an
77I
103
HR ABAP
Jan-2007
104
HR ABAP
Jan-2007
105
HR ABAP
Jan-2007
106
HR ABAP
Jan-2007
Created Objects
107
HR ABAP
Jan-2007
108
HR ABAP
Jan-2007
109
HR ABAP
Jan-2007
110
HR ABAP
Jan-2007
111
HR ABAP
Jan-2007
112
HR ABAP
Jan-2007
113
HR ABAP
Jan-2007
Click on Create Button, and Create the required Structure Save , Check and Activate the Structure
114
HR ABAP
Jan-2007
115
HR ABAP
Jan-2007
116
HR ABAP
Jan-2007
117
HR ABAP
Jan-2007
118
HR ABAP
Jan-2007
119
HR ABAP
Jan-2007
120
HR ABAP
Jan-2007
121
HR ABAP
Jan-2007
122
HR ABAP
Jan-2007
123
HR ABAP
Jan-2007
Data Model
124
HR ABAP
Jan-2007
125
HR ABAP
Jan-2007
Table Infotype
126
HR ABAP
Jan-2007
Sequential Evaluation
127
HR ABAP
Jan-2007
Structural Evaluation
128
HR ABAP
Jan-2007
Evaluation Path
129
HR ABAP
Jan-2007
130
HR ABAP
Jan-2007
131
HR ABAP
Jan-2007
132
HR ABAP
Jan-2007
Structure Parameters
133
HR ABAP
Jan-2007
134
HR ABAP
Jan-2007
135
HR ABAP
Jan-2007
136
HR ABAP
Jan-2007
137
HR ABAP
Jan-2007
138
HR ABAP
Jan-2007
Questions ?
139
HR ABAP
Jan-2007
Thank You
140
HR ABAP
Jan-2007