READ REPORT

READ - Read a program

Addition:

... STATE state

Effect

Reads the program prog from the database into the internal table itab. The line length of table itab should be at least 72 characters.

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.

Note

This addition is intended for internal use. SAP reserves the right to make changes, which may be incompatible, at any time.

Effect

Programs can be saved in the library in their "active" or "inactive" form. This addition determines which state of the program 'prog' should be read. state may have the values A for active, or I for inactive. Inactive programs are only visible to the user currently working with them. All other users work with the active version of the program.

In the ABAP Workbench, you can define a list of objects being edited by each user. These programs are saved in their inactive form until they are activated. If you omit the STATE addition, the system automatically reads the inactive form of these programs, and the active form of all other programs.

INSERT_REPORT_ILLEGAL_STATE:

state has a value other than A or I.

Related

INSERT REPORT, DELETE REPORT, SYNTAX-CHECK, GENERATE REPORT