Adding a new field to the infotype:
Go to PM01 and give the infotype number as 9005. Choose the PS Structure radio button. Now add a new field – say employer as shown.
Check and activate the structure again. When you activate the PS structure, it will give you some warnings:
The warnings state that we have to define the enhancement categories of P9005 and PA9005. The infotype generally contains 2 structures and 1 database table. The structures for our infotype are PS9005 and P9005. PS structure is for the account of creating input fields in the dialogue program of infotype and P structure – P9005 contains entries in infotype at runtime. This P structure is created by the system itself while generating the objects of an infotype. The database table for our infotype is PA table – PA9005. This table contains all the ‘time stamped’ entries of the infotype. When you save the infotype entry, it gets stored in the PA table. This table is also created by the system itself while generating the objects of an infotype. The enhancement categories of the P structure and PA table are to be given.
Open transaction SE11 in a separate window. Open the structure P9005 in the change mode and click on Extras –> Enhancement category. Choose ‘Can be enhanced’ (character type or numeric) and click on copy (green tick mark).Check and activate the structure. Now, in the same way, give the enhancement category of the table – PA9005. Choose ‘Can be enhanced’ (character type or numeric) and click on copy (green tick mark). Notice that the system allows you to open the structure P9005 and table PA9005 in the change mode. It is the case since it is the custom infotype. Now again activate the PS structure. This time, it will not give any warnings. Now click on back. On the PM01 screen, the system gives a warning:
Since you added a new field, or there was a structure change for PS9005, you have to generate the objects again. Click on the button. It will give you some 5-6 warnings. Click on green tick mark on every warning. The system then populates the following screen.
Click on Yes for this one and few more messages that appear thereafter. Now the infotype is ready with the added field which can be checked in PA30.