ABAP Keyword Documentation →  ABAP − Reference →  Declarations →  Declaration Statements →  Data Types and Data Objects →  Special Declarations → 

INFOTYPES Syntax Diagram

This statement should be used by specialists only.
In-depth knowledge of the corresponding environment is essential.
This environment is not part of ABAP and is not documented here.

Short Reference

Syntax

INFOTYPES nnnn [NAME name]
               [OCCURS n]
               [MODE N|P]
               [AS PERSON TABLE]
               [VALID FROM intlim1 TO intlim2].

Extras:

1. ... NAME name

2. ... OCCURS n

3. ... MODE N|P

4. ... AS PERSON TABLE

5. ... VALID FROM intlim1 TO intlim2

Effect

Declaration of an internal table for HR info types, forbidden in classes. Without the NAME addition, an internal table pnnnn or ppnnnn is created with the structure of the info type Pnnnn and a header. The name ppnnnn is used when the addition AS PERSON TABLE is specified, otherwise it is pnnnn.

So long as the MODE N addition is not specified, the statement INFOTYPES influences the bevaior of the special logical databases PAP, PCH, PNP, and PNPCE of the component human resources HR by default and is the prerequisite for it functioning correclty.

A four-digit numeric key of an info type of SAP ERP component human resources (HR) must be specified for nnnn . Each info type is represented in the HR component by a special structure called Pnnnn in ABAP Dictionary. Each info type contains the character-like components BEGDA and ENDDA.

Notes

DATA BEGIN OF {pnnnn|ppnnnn|name} OCCURS { 10 | n }.
  INCLUDE TYPE pnnnn.
DATA END OF {pnnnn|ppnnnn|name}
     VALID BETWEEN {begda|intlim1} AND {endda|intlim2}.

Addition 1

... NAME name

Effect

Using the NAME addition, you can specify a name of up to 20 characters which is then used for the table instead of pnnnn or ppnnnn.

Addition 2

... OCCURS n

Effect

Without the OCCURS addition, the default memory requirements of the internal table are set to ten rows (see addition INITIAL SIZE of the statement TYPES - TABLE OF). You can use the addition OCCURS to specify a numeric literal or a numeric constant n to determine a different initial memory requirement.

Addition 3

... MODE N|P

Addition 4

... AS PERSON TABLE

Effect

The additions affect the behavior of the special logical databases PAP, PCH, PNP, and PNPCE of the human resources component, where AS PERSON TABLE and MODE P only have an effect on the logical database PNPCE.

If the MODE N addition is not specified, the properties of the internal table are stored in an internal system table which is accessed in this logical database. If the statement INFOTYPES is executed without the addition MODE N in an executable program that is connected with one of these logical databases, then the behavior is as follows:

If the MODE N addition is specified, the table is not connected with the logical databases and is not filled with the GET events.

Note

For more information see the documentation on the logical databases and particularly that of PNPCE.

Addition 5

... VALID FROM intlim1 TO intlim2

Effect

Without the VALID FROM addition, the components BEGDA and ENDDA of the info type Pnnnn are implicitly set as the interval boundaries for the obsolete form of the PROVIDE statement. With the VALID FROM addition, other flat character-like components intlim1 and intlim2 of the info type can be set as implicit interval boundaries.