Documente Academic
Documente Profesional
Documente Cultură
Agenda
Logical Database PNP Structure of DB tables in PA Infotype Structure Time Constraints Data Retrieval
Functions of LDB
Functions of LDB
The logical database has three main functions. Data retrieval: HR data is written on an employee by employee basis to the main memory, where it can be processed. Screening: A selection screen enables you to select employees in accordance with organizational criteria. For example, you can select all of the hourly-wage earners in a particular personnel subarea. Authorization check: The system checks that the user starting an evaluation is authorized to access the data.
Structure of DB Tables in PA
Infotype Structure
Infotype Structure
In Reporting, structure Pnnnn is used as an interface between the program and the database. It contains the data fields of structure PSnnnn, and data fields that occur in every infotype (PSHD1). Key PSKEY contains the fields of structure PAKEY, and an additional field for infotype number nnnn.
Data Retrieval
Data Looping
With this form of processing, you should note that the data for the Personal Data (0002) and Address (0006) infotypes is listed sequentially and is not linked.
Time Constraints
Time Constraints
Time constraints enable you to determine how the validity periods of infotype data records interact: Time constraint 1: Exactly one valid data record of the infotype in question must exist for the entire time that the employee belongs to the enterprise. Time constraint 2: No more than one valid data record of the infotype in question can exist at any one time. Time constraint 3: Any number of valid data records of the infotype in question can exist at any one time.
Infotype data is period-based, in other words, it is only valid for specific periods. For this reason, each record has a start date and an end date. This example shows the jobs that an employee has performed over the course of a year.
The PROVIDE command retrieves data for specific periods, that is, on the basis of the data selection period. The most recent or oldest infotype records can be retreived using RP_PROVIDE_FROM_LAST and RP_PROVIDE_FROM_FRST macros.
Person Selection
Person selection is used to determine a group of employees for whom an evaluation takes place. For example, all of the monthly wage earners in a particular personnel subarea.
Data Selection
The data selection period determines the period in which data is evaluated.
RECAP
Join
Join
Selecting one or more infotype fields for processing is called PROJECTION. Using projection for specific fields enables you to specify that only the contents of these fields and time-based changes to the contents, are relevant to an evaluation.
Projection
Join &Projection
Data from several infotypes is read at the same time, and new partial periods are created. Since fields are only selected from infotypes if they are relevant to an evaluation, partial periods are combined. In this way, validity periods with related contents are combined, and data is retrieved for an evaluation from relevant infotype fields and
Join &Projection
To accelerate data entry and save memory, infotype data is usually coded to form a key (for example, infotype P0001, job key). When infotypes are processed, the texts or attributes of keys are read from control tables during runtime. Data is stored for specific validity periods in a series of control tables. If data from time-dependent control tables must be read for a key in an infotype field, the record that is valid for the validity period of the infotype must be determined on the basis of the table
?
Questions