Lyriance-labs

Welcome on Lyriance-labs. A site powered by the Lyriance team.

Feel free to create your account and share your knowledge...

Create a new infotype

E-mail Print PDF

The usual transaction tu manage infotypes is PM01. The specific PA and PD infotypes are numbered like this "9NNN".

 

I. Create the infotype 

To create a new infotype, you have to fill the first tab :
- Fill the infotype n°
- Check "Employee infotype" if you want create a PA infotype
- Check "PS structure" : the structure will contain the input fields of the infotype.
- Then click on "Create"

 

You will be forwarded to SE11 to create the PS structure "PS9907", there will be 3 fields (one dropdown list and 2 text fields) :

Do not forget to save and activate your structure.

After that, go back in PM01 and click on "ALL" :

 

It will automatically create a dialog program, a module pool, a structure and a database table.

An entry in the table T777D will be also added to assign all the created objects :

 

 

II. Declare and configure the infotype

In order to use your new infotype, you have to declare and configure it in the table T582A :

 

To fill the configuration screen, refer to the SAP documentation and take a standard infotype as an example.

- Usually, we use the screen 2000 for the input screen, and 3000 for the list screen
- To fill the time contraint, refer to the related article on this site
- Choose the screen header
- The dialog module, structure and database table will be filled automatically with the table T777D.

 

III. Configure the infotypes menu

Refer to the related article to have more explanation on this part :

 

 

 

Result in PA30 :

 

IV. Screen management

If you don't want use the default generated layout of the input screen, you can modify it by using the transaction SE51 :

 

 

In this edition screen, adjust the fields positions. Choose the edition length and so on... Do not forget to fill the groups (Third field), in order to be able to manage the field in the table T588M. Like that :

 

You should have a result like that :

 

To change the behaviors befor input and after input, you can edit the generated module pool MP990700 :

- MP990710 : Datas declaration
- MP990720 : PBO modules
- MP990730 : PAI modules
- MP990740 : Routines
- MP990750 : List screen modules 

 

V. Dealing with subtypes

If you want use a sub type for your infotype you can use the default field "SUBTY" or create a specific one in your PS Structure.

Let's try with the default SAP field SUBTY. The default table to manage sub types is T591A (T591S for labels)

Edit the table T777D (technical attributes) of the infotypes and fill the corresponding fields :

 

Then, modify the table T582A. And set the time constraint at 'T' (to depend on subtype time constraints) and eventually check the checkbox "Subtype obligatory" :

 

 

After that, you just have to manage your subtypes in T591A :

 

 

 

 

Last Updated ( Tuesday, 23 September 2008 13:27 )