READ - Read a program


Basic form

READ REPORT prog INTO itab.

Effect

Reads the program prog from the database into the internal table itab . Table itab should be at least 72 lines long.
The return code value is set as follows:


SY-SUBRC = 0 Program was read.
SY-SUBRC <> 0 Program could not be read.

Example

DATA: PROGRAM LIKE SY-REPID VALUE 'PROGNAME', BEGIN OF T OCCURS 500, LINE(72), END OF T. READ REPORT PROGRAM INTO T. IF SY-SUBRC <> 0. ... ENDIF.


Index
© SAP AG 1996