You are on page 1of 21

Creation of Custom Infotype with multiple Subtypes

By Piyush Mathur, Tata Consultancy Services


SAP provides many standard infotypes to maintain employee data. In addition to this, we can either
create a custom Infotype or enhance the standard infotype as per the business requirements.
Below is the step by step procedure to create Custom Infotype with Multiple Subtypes with different
screen for each subtype.
PM01 is the transaction to create Custom Infotype. It can also be used to enhance the standard infotype.
Execute the Transaction PM01.

Enter the Infotype number 9900 (number range from 9000 to 9999 can be used for Custom infotypes).
Select Employee infotype radio button.
Select PS structure under Subobjects.
Click on Edit Button.
The following screen would appear to maintain custom infotype fields.

Enter Short Description for PS structure and enter required fields.


For the demo purpose, we have considered some fields to maintain Employee Address details. We will
create two different subtypes for Home Address and Business Address.

Now select Extras from menu and Select 'Enhancement Category'

A pop screen would appear. Select the option 'Can be enhanced ( character type) and press Copy.
After copying, activate the PS structure. Provide the necessary package and transport request details.
Now click on Generate objects.

Now we need to main the infotype characteristics. (This screen is maintenance view for V_T582A).

Now click on new Entries.


Maintain the mandatory infotype characteristics i.e. Time Constraints, Screen No and press back to come
to PM01 screen.

Now Click on Technical Attributes on PM01 Screen.

Now click on Change Button.

Now click on position and enter the infotype no 9900 (this screen is maintenance screen for table
T777D).

Select Infotype 9900 and click on Details button.

Now pass Subtype field, Subtype Table and Subtype table text details in next screen and save it.

After saving come back to PM01 screen.


Now need to maintain the Subtype field for Infotype 9900 in table V_T591A. Execute T code SM31 and
enter the infotype 9900 in pop up box.

Click on New Entries and maintain two subtypes.

Save the values.


Now infotype 9900 is ready to use. To have a first look, go to transaction code PA30.
Execute transaction code for any employee and enter the Infotype no as 9900. Now press F4 on Subtype.
It will show you the available subtypes for the corresponding Infotype.

Now Select any of the Subtype and click on Create button. Next Screen will display all the data fields.

Now the next step is to group the field as per the Subtype selection. Go to Transaction Code PM01. Pass
infotype no, select Screen and click on Edit.

Now you are navigated to Screen painter.

Now click on change and go to layout editor.

Here rearranged the data fields as required.

Now maintain the Group for the fields to be displayed on the basis of Subtype Selection. I maintained
Group2 as '001' for Employee Home details.

Maintained Group2 as '002' for employee office details fields.

Now come back to code editor.

Double click on the module P9900. Now maintain the logic to disable the field on the basis of Subtype
Selection.

PSYST Structure contains the Subtype value in DSUBT field. Activate the code.
Now execute the transaction PA30 and enter the infotype as 9900 and Subtype as '01' and create a new
record.

Now only fields tagged to Subtype 01 would be displayed.

Again execute PA30 and check for Subtype '02'. Screen will display only tagged fields to subtype '02'

You might also like