Show TOC

Parameter DATATABLocate this document in the navigation structure

Use

Integration

DATATAB is a parameter of the function module EXIT_RSAQEXCE_001.

Structure

The DATATAB table contains the data of the sub-list passed. The sequence and type of the fields correspond to the sequence of the fields' output in the sub-list. One table line corresponds to one list line respectively. Any existing line breaks in basic lists are ignored here (that is they always form one table line).

Since the structure of the data table depends on how you define the sub-list to be passed, you have to define this structure beforehand in the function module. For this purpose, you can use the description table LISTDESC. To access individual fields in the data table, you use field symbols and the ASSIGN COMPONENT statement.

If you transfer the basic list in our example of the Function Module EXIT_RSAQEXCE_001 section, then a row of the data table consists of 5 fields with the following types, lengths and number of decimal places:

1. Field: Type C, Length 10

(KNA1-KUNNR)

2. Field: Type C, Length 35

(KNA1-NAME1)

3. Field: Type N, Length 04

(KNC1-GJAHR)

4. Field: Type P, Length 08, Dec. 02

(KNC1-UM01U)

5. Field: Type C, Length 05

(T001-WAERS)

If you transfer the statistics, one line of the data table consists of 5 fields with the following types, length, and decimal places:

1. Field: Type C, Length 03

(KNA1-LAND1)

2. Field: Type P, Length 16, Dec. 02

(total of KNC1-UM01U)

3. Field: Type I, Length 04

(number of records read)

4. Field: Type P, Length 04, Dec. 03

(percentage value)

5. Field: Type P, Length 16, Dec. 02

(average value of KNC1-UM01U)

If you transfer the ranked list, one line of the data table consists of 4 fields with the following types, lengths, and decimal places:

1. Field: Type C, Length 06

(rank in the ranked list)

2. Field: Type C, Length 10

(KNA1-KUNNR)

3. Field: Type C, Length 35

(KNA1-NAME1)

4. Field: Type P, Length 16, Dec. 2

(total of KNC1-UM01U)

To define the type, length and number of decimal places, you use either the ABAP statement DESCRIBE FIELD or the description table LISTDESC.