How To Change And Create SAP HR Infotype Screens Continued

This is continuation from the previous article on How To Change And Create SAP HR Infotype Screens. In the first article we learnt how to customize an infotype screen using features. In this second part we will see how we can enhance a standard infotype by adding some additional custom fields.

The process of enhancing a standard infotype can be divided into three main steps:

  1. Creating the Customer Include (CI Include): CI_Include is a structure which contains all additional customer fields. For every infotype this structure is created with the name as CI_PNNNN where NNNN is the infotype number.
  2. Creating the Include Screen: It is a subscreen which is generated for customer enhancement.
  3. Assigning enhancement to the infotype: In this step we assign the custom screen to the infotype.

Lets take a look at a Step by Step process .

1. Creating the Customer Include (CI Include)

Step 1.1. Go to ‘Enhance Infotypes’ through transaction code PM01. Click on “SingleScrn” Tab and provide the infotype number and infotype version. From the Subobjects select the radio button ‘Customer Include’ and then click on the “Generate Objects” button.

Enhance Single Screen Of Standard Infotype


Step 1.2. You will see the pop-up message to confirm creation of dictionary object. Click on “Create” button to confirm and proceed.

Click On ‘Create’ Button To Confirm And Proceed


Step 1.3. This will take you to the ‘Maintain Structure’ screen. Enter a short description for the customer include and specify all the additional fields which you want to create.

"Maintain Structure" Screen


Step 1.4. Click on “SAVE”, assign a package and create new transport request.

Assigning A Package And Create New Transport Request


Step 1.5. From the main menu, click on Extras → Enhancement Category, select ‘Can be enhanced(character – type or numeric)’ radio button and press “Copy” button to maintain the enhancement category for this customer include.

Maintaining Enhancement Category


Step 1.6. Click on activate icon. This completes the creation of customer include. Go back to the ‘SinglScrn’ tab of the transaction PM01.

2. Creating the Include Screen

Step 2.1. Enter Infotype number and infotype version. From the Sub-objects select the radio button ‘Include Screen’, specify a screen number and then click on the “Edit” button.

Entering Infotype Number And Infotype Version


Step 2.2. This will take you to the initial screen of Screen Painter (Transaction code SE511), with the default program name as ZPNNNN00, where NNNN is your infotype number.

Select the ‘Layout Editor’ radio button and the click on the “Change” button.

In The Initial Screen Of Screen Painter (Transaction Code SE511)


Step 2.3. Screen Painter will open in a new window; you will see your additional fields, here you can change field properties, label, size, arrangement and display of these fields.

Screen Painter Open's In A New Window


After changes click on “Save” and activate. This completes the creation of include screen. Now, click on the “Back” button to go back to the initial screen of PM01.

This Completes The Creation Of Include Screen


3. Assigning enhancement to the infotype

Step 3.1. Click on “Assign Enhancement” button.

Assigning Enhancement


Step 3.2. This will take you to the overview screen of “Include Screen for Infotype” maintenance view. Click on ‘ChangeChange icon and then press “New Entries” button.

Overview Screen Of “Include Screen for Infotype” Maintenance View


Step 3.3. In the new entries screen, provide the following information:

  • Module Pool: Module Pool name which is MPNNNN00, where NNNN is your infotype number.
  • Standard Screen: Number of the standard screen, which is by default 2000.
  • Program Name: ABAP program Name, which is ZPNNNN00, where NNNN is your infotype number.
  • Standard Screen: Number of the standard screen, which is by default 200 in our case.

Provide Information On The New Entries


Step 3.4. Click on “Save“.

That’s it! We have enhanced our infotype by adding some additional fields. Now, let’s go to transaction code PA30 to view it.

Adding Additional Fields


Categories

About the Author:

Pete has been working with SAP technologies for over 10 years. He started out as an ABAP consultant and then moved on to BW where he has worked many different clients covering a wide variety of industries. "I love introducing SAP technology (especially BI) to new clients and showing them how they can go from zero to hero within their business in super fast time". Contact me on twitter @PeterMoxon