You use this procedure if you want to create an international infotype. If you want to create a country-specific or industry-specific infotype, or an infotype for the public sector of a country, choose Creating an Infotype Version .
To create an infotype in the ABAP Dictionary, proceed as follows:
Choose
Create Infotype
(tab page).
Choose a free infotype number for standard infotypes, and a free number in the customer namespace for customer-specific infotypes.
Note the naming convention (customer namespace9000to9999).
Decide whether you want the infotype to be used in Personnel Administration (
employee
infotype
), Recruitment (
applicant
infotype
), or in both components (
both
).
Choose
Generate
Objects.
You see the message
Infotype PSnnnn does not exist
.
How do you want to continue?
Choose
Create
You branch to the ABAP dictionary structure maintenance.
Enter a short description for the infotype.
Enter the structure components (infotype fields).
There are two ways of doing this:
Manually:
Enter all required
components
for the infotype.
Enter the
component type
for each component. You can refer to an existing component type or create a new component type. Double-click on the field and choose a component type from the dialog box.
Choose
Create
Copy template:
You can also use the PS structure of an existing infotype if the infotype contains similar information (data components with a similar semantic meaning).
You create an infotype containing a telephone number for emergencies.
You do this by copying the
Addresses
infotype (0006) and using the
Telephone Number
field as a copy template.
Proceed as follows:
Choose
Edit
→
Copy Field
As the structure name, choose the PS structure that contains similar data components to the infotype you are creating.
In the
Field Selection from Table PSnnnn
dialog box, select the required components and choose
Copy
.
The components are written to the clipboard.
Choose
Insert
Save your entries.
Define the
enhancement category
:
To do this, choose
Extras
→
Enhancement Category, se
lect the enhancement category and copy the entry.
You get the following message:
Structure PSnnnn has been saved
.
Check your structure.
Once you have checked it, save the structure.
Once the structure has been activated, go back.
The
Create Object Directory Entry
dialog box is opened.
Enter the object directory entry for the PS structure.
Enter the object directory entry for the screen structure:
HCMT_BSP_PA_yy_Rnnnn
for a standard infotype, and
ZHCMT_BSP_PA_yy_R9nnn
for a customer-specific infotype.
Enter a transport request.
The following information is displayed, which you confirm:
The check class must be encoded manually.
You do this once this procedure is complete by choosing
Check Class (BAdI)
→
Edit
. For more information, see
Editing the Check Class
.
The table entry T582ITVCLAS still has to be transported.
This table entry is client-dependent and therefore only exists in this client.Make sure that the table entry is transported.
Maintain the characteristics of the infotype. For more information, see Defining Infotype Characteristics .
If you are creating an infotype with a name range enhancement (such as/Company1/9000), make sure that your entries are overwritten by those of another imported infotype with name range enhancement (/Partner1/9000, for example), if the infotype number of the imported infotype is the same as your infotype. For this reason, make sure before you import infotypes with name range enhancements that there are no conflicts between the infotype numbers available and those that are to be imported.
To define a namespace, choose
Infotype
→
Namespace
and enter the namespace reserved for your company.
Then proceed as described above.
You have created a new infotype.
The system has automatically created the following objects and structures:
PS structure (if it did not already exist)
The corresponding P structure
Table(s)
PAnnnn
and
PA9nnn
and/or
PBnnnn
and
PB9nnn
Object
Pnnnn_AF,%_HRnnnn
Entries in tables T777D and T77ID
Screen structure
The system has copied the fields from the PS structure to the screen structure. The PS structure and the screen structure are identical.
The name of the screen structure
HCMT_BSP_PA_yy_Rnnnn
or
ZHCMT_BSP_PA_yy_R9nnn
is generated from the infotype.
To enhance the screen structure, choose the tab page Enhance Screen Structure .
Entry in table T588UICONVCLAS
SNAME |
INFTY |
STYPE |
VERSIONID |
CLSNAME |
HCMT_BSP_PA_yy_Rnnnn |
nnnn |
MAIN |
yy |
CL_HRPA_UI_CONVERT_BASIC |
Module pool
Screen and interface
Check class
CL_HRPA_INFOTYPE_nnnn
for a standard infotype or
ZCL_HRPA_INFOTYPE_9nnn
for a customer-specific infotype.
The check class was generated in the background from the check class CL_HRPA_INFOTYPE_NNNN and must be encoded manually.
Entry in table T582ITVCLAS
INFTY |
IDCLASS |
CONT_GUI |
CONT_DB |
NITF_ADM |
nnnn |
CL_HRPA_INFOTYPE_nnnn |
’ ’ |
CL_HRPA_INFOTYPE_CONTAINER |
3 |