... STATE state
Reads the program prog from the database into the internal table itab. The line length of table itab should be at least 72 characters.
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.
This addition is intended for internal use. SAP reserves the right to make changes, which may be incompatible, at any time.
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.
state has a value other than A or I.
INSERT REPORT, DELETE REPORT, SYNTAX-CHECK, GENERATE REPORT