INFOTYPES nnnn [NAME name]
[OCCURS n]
[MODE N]
[VALID FROM intlim1 TO intlim2]
[AS PERSON TABLE].
Obsolete declaration of an internal table for HR-info types. If you do not use the additions MODE and AS PERSON TABLE, then this statement (prohibited in classes) is a short form of the following statement sequence:
DATA BEGIN OF {pnnnn|ppnnnn|name} OCCURS { 10 | n }.
INCLUDE TYPE pnnnn.
DATA END OF {pnnnn|ppnnnn|name}
VALID BETWEEN {begdat|intlim1} AND {enddat|intlim2}.
For nnnn you must specify the four-digit numeric key of an info type of the SAP ERP Component Human Resources (HR). Each info type is represented in the component HR through a special structure Pnnnn in the ABAP dictionary. Each info type contains the character-type components BEGDAT and ENDDAT. Info types enable the application to process employee-related data effectively. The statement PROVIDE is especially helpful for this purpose.
Without the addition NAME, an internal table pnnnn or ppnnnn with the structure of the info type Pnnnn and a header is created. The name ppnnnn is used if the addition AS PERSON TABLE is specified (since release 6.20), if not, then pnnnn is specified. With the addition NAME, you can specify a name name with a maximum length of 20 digits which is then used for the internal table instead of pnnnn resp. ppnnnn.
Without the addition OCCURS, the initial memory requirement (see DATA - Internal tables) of the internal table is set to ten rows. With the addition OCCURS,you can specify a numeric literal or a numeric constant n to determine a different initial memory requirement.
If the addition MODE N is not specified, then the properties of the internal table are saved in an internal system table, which can be accessed via special logical databases. The programming of such logical databases is reserverd to the component Human Resources which delivers two logical databases PNP and PCH for info types. If in an executable program , which is linked to one of these databases, the statement INFOTYPES is listed without the addition MODE N, then the internal table is filled from the logical database PNP at the event GET pernr and filled from the logical database PCH at the event GET object. If the addition MODE N is specified, then the table is not linked to logical databases and is not filled at the GET-Events.
Without the addition VALID FROM, the components BEGDAT
and ENDDAT of the info type Pnnnn are specified as range limits for the obsolete form of the statement
PROVIDE. With the addition VALID FROM, you can specify other
flat character-type components
intlim1 and intlim2 of the info type as range limits.
In classes it is not allowed to declare internal tables with header lines. Due to this, the statement
INFOTYPES is not allowed there. To declare an internal table of the same structure, you should use the allowed statements from the section
Data types and data objects.