banner



How To Create Infotype In Sap Hr

In SAP HR/HCM, employee data is grouped in Infotypes. This employee data is saved in infotypes based on his/her personal number (PERNR).

For example in infotype PA0006 (Addresses) you will find employee's address details. Similarly, in infotype PA0021 you will find the employee's family details.

SAP provides hundreds of standard infotypes, but many times there are business/client requirements where we have to create new infotypes. In this tutorial we will see how to create a custom PA (Personal Administration) infotype in just five easy steps.

Step 1. Creating the PSnnnn Structure

Each infotype requires a PS structure which contains all the data fields.

To create the 'PS structure', go to transaction code PM01.

To create The 'PS Structure', Go To Transaction Code PM01

Give a four digit number between 9000 – 9999 in the 'Infotype no.' field. Select the radio button 'Employee infotype'. Select the radio button 'PS Structure' and then click on the 'Edit' button.

Give A Four Digit Number Between 9000 – 9999 In The 'Infotype no.' Field

After pressing the 'Edit' button you will see the 'Dictionary: Maintain Structure' screen. Here, give a short description of your infotype and also give the data fields which are required in your infotype.

After Pressing The 'Edit' Button You Will See The 'Dictionary: Maintain Structure' Screen

After providing all the required fields, press the save button.

Now, click on 'Extras' → 'Enhancement Category' to maintain the enhancement category for the PS structure.

Click On 'Extras' → 'Enhancement Category

Select 'Can be enhanced (character-type or numeric)'.

Select 'Can be enhanced (character-type or numeric)'

Click on the 'Copy' button and then Click on Save, Check and finally Activate. This completes our first step. Now, click the 'Back' button to go back to the initial screen of PM01.

Step 2. Generating all required objects (Dialog Screens and Database Tables):

After creating your PS structure, return back to the initial screen of PM01.

Click On The 'Generate Objects' Button To Generate All Required Objects

By, clicking on the 'Generate Objects' button, you will see 'n' numbers of pop-up screen which will ask for confirmation to generate the object. Keep pressing the continue (enter) button until all the objects are created.

Generate the Objects

Create the Objects

Create the Objects 2

Create the Objects 3

Keep Pressing On Continue (Enter) Button Until All The Objects Are Created

Create the Objects 4

Create the Objects 5

Create the Objects 7

Create the Objects 8

There will be some more screens, just keep on pressing continue (enter) button to proceed.

Step 3. Maintain Infotype characteristics

In this step you will maintain the infotype characteristics such as 'Infotype Description' and 'General Attributes', properties for 'Display and Selection' and 'Technical Data'.

Click on 'Infotype characteristics'.

Click On 'Infotype characteristics'

You will see the 'Infotypes attributes' Table View. Click on change icon.

Click  'change icon' On The 'Infotypes attributes' Table View

And then click on the 'New Entries' button to create a new entry.

Click On 'New Entries' Button To Create a New Entry
Now, you will see the screen where you can provide the infotype characteristics.

Screen Where You Can Provide The Infotype Characteristics

Before, proceeding further you should know about the following important characteristics of an infotype.

Time Constraints : This characteristic determines if more than one infotype record can exist at the same period in time per employee.

The following values of time constraints are accepted.

Time Characteristics

Date Reaction Indicators: They control the search type, when "no dates", "one date" or "two dates" are entered on the selection screen.

As per your requirement select the Time Constrains and the Date Reaction Indicators.

Select The Time Constrains And The Date Reaction Indicators

Step 4: Maintain the Technical Attributes

In this step you will maintain the technical attributes of the infotype such as – Dialog Module, Database Table and Structure. All these objects (except the structure) are automatically generated in Step 2 by pressing the 'Generates Objects' button.

Maintain Technical Attributes

You will see the 'Infotype Dialog/Database assignment' table view. Click on the change button.

Infotype Dialog/Database Assignment Table View

Now click on 'Position' button and enter the name of your infotype.

Click On 'Position' Button And Enter The Name Of Your Infotype

Select your infotype and click on the 'Display Button

Select Your Infotype And Click On The 'Display' Button

By default, all the values should come appear automatically, if not then enter them manually.

All The Values Should Come, If Not Then Enter Them Manually

Click on SAVE and assign your development to a transport request.

Step 5. Changing the Infotype Screen Layout

Now, we will make some changes in the infotype screen using the screen painter.

At the Initial screen of transaction PM01, select the 'Screen' radio button under the 'Subobjects' tab and enter the screen number as '2000'. Then press the 'Edit' button.

Edit Screen 2000

Select the 'Layout' radio button and then click on 'Change' button.

Layout Editor Radio Button And Click Change Button

Make the required changes in the screen layout. Save, check and then activate.

The Screen Layout

The Screen Output

To check the output, go to transaction code PA30. Enter employee number and click on the create button.

Go To Transaction Code PA30

Go To Transaction Code PA30 - 2

Summary:

In this tutorial we have seen how to create a simple Infotype easily in just five steps. Depending on your requirements, for more complex infotypes you may also need to add business logic, which you can add in the dialog programming of your infotype screen.

How To Create Infotype In Sap Hr

Source: http://www.saptraininghq.com/how-to-create-sap-pa-hr-infotype-in-5-easy-steps/

Posted by: wellersualking.blogspot.com

0 Response to "How To Create Infotype In Sap Hr"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel