LOAD REPORT


Variations:
1. LOAD REPORT prog PART 'HEAD' INTO itab.
2. " 'TRIG' "
3. " 'CONT' "
4. " 'DATA' "
5. " 'DATV' "
6. " 'SELC' "
7. " 'STOR' "
8. " 'LITL' "
9. " 'SYMB' "
10. " 'LREF' "
11. " 'SSCR' "
12. " 'BASE' "
13. " 'INIT' "

Effect

Loads the specified part of the generated version of the program prog into the internal table itab (for analysis purposes only).

After LOAD REPORT , SY-SUBRC may be set to any of the following values:
0 if the load for the program prog exists and is current, 4 if the load for the program prog does not exist, 8 if the load for the program prog exists, but is not current. In certain cases, this value of SY-SUBRC can also mean that the program load has been destroyed. The remedy for this is normally a generation. With PART 'LREF', a SY-SUBRC value of 8 means that the line reference table is not correct for the program. With PART 'CONT', it means that the reference part of the internal table is empty.
Only where SY-SUBRC = 0 is itab filled.

Variant 1

LOAD REPORT prog PART 'HEAD' INTO itab.

Effect

Loads the program header into line 1 of internal table itab . The structure of itab must be the same as the Dictionary structure RHEAD.

Variant 2

LOAD REPORT prog PART 'TRIG' INTO itab.

Effect

Loads the event control block into the internal table itab . The structure of itab must be the same as the Dictionary structure RTRIG.

Variant 3

LOAD REPORT prog PART 'CONT' INTO itab.

Effect

Loads the processing control blocks into the internal table itab . The structure of itab must be the same as the Dictionary structure RCONT.

Variant 4

LOAD REPORT prog PART 'DATA' INTO itab.

Effect

Loads the static data descriptions into the internal table itab . The structure of itab must be the same as the Dictionary structure RDATA.

To find the relevant data description for a data index i, proceed as follows:
0 <= i < 2^14 ==> i+1 Index in data_itab 2^14 <= i < 2^15 ==> i+1 - 2^14 Index in datv_itab 2^15 <= i < 2^16 ==> i+1 - 2^15 Parameter index
(2^14 = 16384, 2^15 = 32768)

Variant 5

LOAD REPORT prog PART 'DATV' INTO itab.

Effect

Loads the variable data descriptions into the internal table itab . The structure of itab must be the same as the Dictionary structure RDATA.

To find the relevant data description for a data index i, proceed as follows:
0 <= i < 2^14 ==> i+1 Index in data_itab 2^14 <= i < 2^15 ==> i+1 - 2^14 Index in datv_itab 2^15 <= i < 2^16 ==> i+1 - 2^15 Parameter index
(2^14 = 16384, 2^15 = 32768)

Variant 6

LOAD REPORT prog PART 'SELC' INTO itab.

Effect

Loads the description of the selection variables (SELECT-OPTIONS and PARAMETERS) into the internal table itab . The structure of itab must be the same as the Dictionary structure RSELC.

Variant 7

LOAD REPORT prog PART 'STOR' INTO itab.

Effect

Loads the initial values of the global data into the internal table itab . The line length of itab determines the line break. Ideally, itab should also contain exactly one field of type X.

Variant 8

LOAD REPORT prog PART 'LITL' INTO itab.

Effect

Loads the literal table into the internal table itab . The line length of itab determines the line break. Ideally, itab should contain exactly one field of type X.

Variant 9

LOAD REPORT prog PART 'SYMB' INTO itab.

Effect

Loads the symbol table into the internal table itab . itab must have the same structure as the Dictionary structure RSYMB.

Variant 10

LOAD REPORT prog PART 'LREF' INTO itab.

Effect

Loads the line reference into the internal table itab . itab must have the same structure as the Dictionary structure RLREF.

Variant 11

LOAD REPORT prog PART 'SSCR' INTO itab.

Effect

Loads the selection screen description into the internal table itab . itab must have the same structure as the Dictionary structure RSSCR.

Variant 12

LOAD REPORT prog PART 'BASE' INTO itab.

Effect

Loads the segment table into the internal table itab . itab must have the same structure as the Dictionary structure RBASE.

Variant 13

LOAD REPORT prog PART 'INIT' INTO itab.

Effect

Loads the initial values of the local data into the internal table itab . The line length of itab determines the line break. Ideally, itab should contain exactly one field of type X.

Index
© SAP AG 1996