Top Banner
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.
21
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Infotype With Subtype

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.  

Page 2: Infotype With Subtype

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'

Page 3: Infotype With Subtype

 

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.  

  

Page 4: Infotype With Subtype

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.  

Page 5: Infotype With Subtype

  

Now Click on Technical Attributes on PM01 Screen.

Page 6: Infotype With Subtype

Now click on Change Button.

Page 7: Infotype With Subtype

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

Page 8: Infotype With Subtype

  

Select Infotype 9900 and click on Details button.

Page 9: Infotype With Subtype

  

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

Page 10: Infotype With Subtype

  

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.  

  

Page 11: Infotype With Subtype

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.  

Page 12: Infotype With Subtype

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.  

Page 13: Infotype With Subtype

 

Now you are navigated to Screen painter.

Page 14: Infotype With Subtype

  

Now click on change and go to layout editor.  

Page 15: Infotype With Subtype

Here rearranged the data fields as required.

Page 16: Infotype With Subtype

  

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.  

Page 17: Infotype With Subtype

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

Page 18: Infotype With Subtype

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.  

Page 19: Infotype With Subtype

 

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.  

Page 20: Infotype With Subtype

 

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'  

Page 21: Infotype With Subtype