56
06/08/22 1 INFOTYPE CREATION

HR ABAP INFOTYPE

Embed Size (px)

DESCRIPTION

INFOTYPE CREATION DOC

Citation preview

Page 1: HR ABAP INFOTYPE

04/11/23 1

INFOTYPE CREATION

Page 2: HR ABAP INFOTYPE

04/11/23 2

Training will cover

♠ Concept of Info types

♠ Info type Structures

♠ Creation of info type

♠ Enhancement of info type

Page 3: HR ABAP INFOTYPE

04/11/23 3

Infotype

Definition

♠ Units of information.

OR

Infotype is a collection of Logical and Business related

Characteristics of an object or person.

Page 4: HR ABAP INFOTYPE

04/11/23 4

Uses of Infotype

♠ To group related data fields

Personal Data

NameDOBNationalityMarital Status

AddressesStreetCityPin codeState

INFOTYPES

Page 5: HR ABAP INFOTYPE

04/11/23 5

Uses of Info type

♠ Maintaining Employee Information by Date

Page 6: HR ABAP INFOTYPE

04/11/23 6

Info type Numbers

♠ Four digit number nnnn

♠ Unique identification

♠ 9000 to 9999 reserved for customer infotypes

Page 7: HR ABAP INFOTYPE

04/11/23 7

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 Info types

Page 8: HR ABAP INFOTYPE

04/11/23 8

Definition of Infotype within the Data Dictionary

Each infotype nnnn requires at least two structures and one table:

♠ Structure PSnnnnStructure PSnnnn contains all of the info type 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.

Page 9: HR ABAP INFOTYPE

04/11/23 9

Infotype Module Pool

♠ A module pool should be used with each infotype.

♠ The name of the program is MPnnnn00.

♠ Where P stands for Human Resources.

♠ nnnn is the four-digit infotype number.

Page 10: HR ABAP INFOTYPE

04/11/23 10

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 andthe declaration of common data objects

MPnnnn10

The include containsName of include

Page 11: HR ABAP INFOTYPE

04/11/23 11

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 objectsThis 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

Page 12: HR ABAP INFOTYPE

04/11/23 12

Infotype Screens

Each infotype has at least three screens:

♠ An initial screen (1000)♠ A single screen (2000)♠ A list screen (3000)

Page 13: HR ABAP INFOTYPE

04/11/23 13

Initial Screens

♠ Initial screen is used as technical interface

♠ Screen 1000 is used for all infotypes

♠ Processed in background.

♠ Performs general initialization procedures

Page 14: HR ABAP INFOTYPE

04/11/23 14

Single Screen - Preview

Page 15: HR ABAP INFOTYPE

04/11/23 15

Initial Screens - Preview

Page 16: HR ABAP INFOTYPE

04/11/23 16

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.

Page 17: HR ABAP INFOTYPE

04/11/23 17

Single Screen - Preview

Page 18: HR ABAP INFOTYPE

04/11/23 18

List Screen

♠ Enables to list all records in infotype

♠ Screen 3000 is used for list screen

Page 19: HR ABAP INFOTYPE

04/11/23 19

List Screen - Preview

Page 20: HR ABAP INFOTYPE

04/11/23 20

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.

Page 21: HR ABAP INFOTYPE

04/11/23 21

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.

Page 22: HR ABAP INFOTYPE

04/11/23 22

Infotype Characteristics

The following tables must be maintained for each infotype:

Name of table Task

T582A Basic infotype characteristics

(database tables, single screen, list screen, time constraint, dialog module, and so on)

T582S Infotype short texts

T77ID Name of data field structure (PSnnnn)

Page 23: HR ABAP INFOTYPE

04/11/23 23

Creating PA infotypes

Transaction code

‘PM01’.

Page 24: HR ABAP INFOTYPE

04/11/23 24

Creating PA infotypes – PM01

Page 25: HR ABAP INFOTYPE

04/11/23 25

Creating PA infotypes – Maintain Structure

Page 26: HR ABAP INFOTYPE

04/11/23 26

Single Screens

♠ After Creation of Structure Save, Check & Activate.

♠ Click on Back button.

Page 27: HR ABAP INFOTYPE

04/11/23 27

Creating PA infotypes – Maintain Structure

Page 28: HR ABAP INFOTYPE

04/11/23 28

Single Screens

♠ Click on All Button on PM01 TCode

♠ Click on Infotype Characteristics Button.

♠ Click on Change Button.

♠ To add the Customized Infotype in The list , Click on New Entries Button

Page 29: HR ABAP INFOTYPE

04/11/23 29

Creating PA infotypes – Infotype Table

Page 30: HR ABAP INFOTYPE

04/11/23 30

Creating PA infotypes – Infotype Table

Page 31: HR ABAP INFOTYPE

04/11/23 31

Creating PA infotypes – Infotype Table

Page 32: HR ABAP INFOTYPE

04/11/23 32

Single Screens

♠ Back to the PM01 Screen

♠ Click on ALL Button, Then SAP Automatically creates

♠ PA9nnnn Table

♠ MP9nnnn00 Module Pool Program

♠ Dialog Module RP_9nnnn

♠ All the Technical Attributes are updated automatically.

Page 33: HR ABAP INFOTYPE

04/11/23 33

Creating PA infotypes – Infotype Table

Page 34: HR ABAP INFOTYPE

04/11/23 34

Creating PA infotypes – Infotype Table

Page 35: HR ABAP INFOTYPE

04/11/23 35

Creating PA infotypes – Infotype Table (Primary Key)

Page 36: HR ABAP INFOTYPE

04/11/23 36

Creating PA infotypes – Preview

Page 37: HR ABAP INFOTYPE

04/11/23 37

Enhancement of PA Infotype

♠ Go to TCode : PM01

♠ Enter the infotype number.

♠ Choose Enhance infotype Tab.

Page 38: HR ABAP INFOTYPE

04/11/23 38

Enhancing a Single Screen – PM01

Page 39: HR ABAP INFOTYPE

04/11/23 39

Enhancing a Single Screen – Maintain Structure

Page 40: HR ABAP INFOTYPE

04/11/23 40

Enhancing a Single Screen – Screen PreviewGlobal networkof innovation

Enhanced Field

Page 41: HR ABAP INFOTYPE

04/11/23 41

Enhancing PA Infotype – CI INCLUDE

Only those PA Tables can be Enhanced, having structure CI Include

CI_P0000

Page 42: HR ABAP INFOTYPE

04/11/23 42

Creating HRP info types

Transaction code

♠ ‘PPCI’.

(Personnel Planning Infotype Copier)

Page 43: HR ABAP INFOTYPE

04/11/23 43

Creating HRP info types

We can create the following kinds of info types:

♠ Language-dependent field info types ♠ Language-independent field info types ♠ Language-dependent table info types ♠ Language-independent table info types

♠ We can also specify whether an info type is country-specific or not

Page 44: HR ABAP INFOTYPE

04/11/23 44

Creating HRP info types

Page 45: HR ABAP INFOTYPE

04/11/23 45

Creating HRP info types

♠ Start the Data Dictionary (SE11)

♠ Select the Radio button Data Type Enter the HRI9nnn ( Where 9nnn is info type no).

♠ Click on Create Button, and Create the required Structure

♠ Save , Check and Activate the Structure

Page 46: HR ABAP INFOTYPE

04/11/23 46

Creating HRP info types

Page 47: HR ABAP INFOTYPE

04/11/23 47

Creating HRP info types

Page 48: HR ABAP INFOTYPE

04/11/23 48

Creating HRP info types

♠ Go to T Code : PPCI

Enter Info the details

♠ Info type : 9nnn ♠ Info type name : xxxxx

Click on Create, it will display Extended screen

Page 49: HR ABAP INFOTYPE

04/11/23 49

Creating HRP info types

Page 50: HR ABAP INFOTYPE

04/11/23 50

Creating HRP info types

Page 51: HR ABAP INFOTYPE

04/11/23 51

Creating HRP info types

♠ Here you can select Field info type / Table Info Type

♠ Language Dependent/ Independent

♠ Country Specific / not

♠ After selecting these options click on Create Button

Page 52: HR ABAP INFOTYPE

04/11/23 52

Creating HRP info types

Page 53: HR ABAP INFOTYPE

04/11/23 53

Creating HRP info types

After Creation of Infotype Maintain the Following Details using TCode: OOIT

♠ Time Constraint

♠ Infotype Per Object Type

Page 54: HR ABAP INFOTYPE

04/11/23 54

Creating HRP info types

Page 55: HR ABAP INFOTYPE

04/11/23 55

Creating HRP info types

♠ Now you can see the infotype using TCode : PP01

♠ Based on the Object Type the infotype is Displayed

Page 56: HR ABAP INFOTYPE

04/11/23 56

Thank You