The process of enhancing a standard infotype can be divided into three main steps:
- 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.
- Creating the Include Screen: It is a subscreen which is generated for customer enhancement.
- 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.
Step 1.2. You will see the pop-up message to confirm creation of dictionary object. 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.
Step 1.4. Click on “SAVE”, assign 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.
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.
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.
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.
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.
3. Assigning enhancement to the infotype
Step 3.1. Click on “Assign Enhancement” button.
Step 3.2. This will take you to the overview screen of “Include Screen for Infotype” maintenance view. Click on ‘Change’ icon and then press “New Entries” button.
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.
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.