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
Logical structures
Pnnnn
KEY fields
PERNR
10
HR ABAP
Jan-2007
PA0002
MANDT
PAKEY
PSHD1
PS0002
PSKEY
PSHD1
PS0002
11
HR ABAP
Jan-2007
LDB - Screening
12
HR ABAP
Jan-2007
13
HR ABAP
Jan-2007
LDB_PROCESS 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 routines 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 LATE 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
Infotype loop
END-OF-SELECTION.
17
HR ABAP
Jan-2007
JANUARY - APRIL
MAY - AUGUST
Ms Y
SEPTEMBER - DECEMBER
SAP AG 1999
18 HR ABAP Jan-2007
Data Selection
Org. Assignment
January
December
Org. Assignment
January
December
19
SAP AG 1999
HR ABAP
Jan-2007
Data selection Person selection INFOTYPES: ... GET PERNR. PROVIDE... WRITE... PAnnnn
SAP AG 1999
20 HR ABAP Jan-2007
PerNo. Pers.area Name 1909 1910 1899 1000 1000 1100 Sam Hawkins David Lindsay Karl May
SAP AG 1999
21 HR ABAP Jan-2007
1 Forward select options 2 Array fetch is active 3 Array fetch active and forward select options
22
Jan-2007
23
HR ABAP
Jan-2007
Join
24
HR ABAP
Jan-2007
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
BEGDA T513S
ENDDA
SELECT * FROM T513S WHERE SPRSL = AND STELL = AND ENDDA GE AND BEGDA LE ENDSELECT.
28
HR ABAP
Jan-2007
HR Macros
RP_PROVIDE_FROM_LAST RP_PROVIDE_FROM_FIRST RP_SET_DATA_INTERVAL RP_READ_INFOTYPE RP-READ-ALL-TIME-ITY
29
HR ABAP
Jan-2007
Macros can be defined in reports or includes using the ABAP command DEFINE
If a macro is changed, each report using this macro is automatically regenerated when it is executed
Macros can also be defined as RMAC macros. The source code of these modules is stored in the function section of the control table TRMAC
When you change an RMAC macro in the table TRMAC, the reports that use this macro are not regenerated automatically. You must regenerate them manually.
30
HR ABAP
Jan-2007
31
Jan-2007
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 AG 1999
32 HR ABAP Jan-2007
PAnnnn
INFOTYPES: <nnnn>. ... CALL FUNCTION 'HR_READ_INFOTYPE'...
33
Jan-2007
= return = P0002 = 1 = 2.
Jan-2007
35
HR ABAP
Jan-2007
36
HR ABAP
Jan-2007
37
HR ABAP
Jan-2007
Dynamic Actions
38
HR ABAP
Jan-2007
I
W V F
Send mail
Tables used
PSAVE To check old values of field
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
DATA:
46
SAP 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 combines the data from several tables with identical keys.
50
HR ABAP
Jan-2007
Clusters
Different Types Of Clusters
PCL1 : Database for HR Work Area
PCL2 : Accounting Results ( Time / Payroll Results ) PCL3 : Recruitment/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 RQ- Australia
52
HR ABAP
Jan-2007
Importing Data
53
HR ABAP
Jan-2007
54
HR ABAP
Jan-2007
PCLn
Import
Buffer
55
SAP AG 1999
HR ABAP
Jan-2007
56
HR ABAP
Jan-2007
57
HR ABAP
Jan-2007
Payroll Results
Payroll Results
REPORT RPCLSTxy.
Payroll result Suzanne Werner January 19xx WT01 WT02 WT03 /101 .... Standard salary 5000 DM Bonus 300 DM Overtime 200 DM Tot. gross amt 5500 DM
58
SAP AG 1999
HR ABAP
Jan-2007
59
HR ABAP
Jan-2007
60
SAP AG 1999
HR ABAP
Jan-2007
NAT BT
Dummy for national part
RT
Type HRPAY99_RT
CRT
Type HRPAY99_CRT
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
Jan-2007
NAT BT
RT
Type HRPAY99_RT
CRT
Type HRPAY99_CRT
SAP AG 1999
63 HR ABAP Jan-2007
64
HR ABAP
Jan-2007
65
HR ABAP
Jan-2007
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
SAP AG 1999
72
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
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
Jan-2007
Footer processing
SAP AG 1999
77 HR ABAP
78
HR ABAP
Jan-2007
79
HR ABAP
Jan-2007
80
HR ABAP
Jan-2007
Selection of
Infotypes that can be included in the InfoSet
Persons
Infotypes for Personnel Administration (00000999) Time Management (2000-2999) Payroll infotypes Infotypes for Personnel Planning objects that can be related to persons
Applicants
Infotypes for Recruitment (40004999) Some infotypes for Personnel Administration (such as 0001 and 0002)
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:
96
HR ABAP
Jan-2007
Initial Screens
Initial screen is used as technical interface Screen 1000 is used for all infotypes Processed in background.
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
Infotype Characteristics
The following tables must be maintained for each infotype: Name of table T582A Task Basic infotype characteristics (database tables, single screen, list screen, time constraint, dialog module, and so on) T582S T777A Infotype short texts Technical Characteristics of Infotype (database table, dialog module, and so on) Name of data field structure (PSnnnn)
T77ID
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