Error message in ABAP objects for: 
 
TYPES: BEGIN OF line,
         col1 TYPE i.
MOVE 'X' TO a. 
TYPES:  
col2 TYPE i, 
       END OF line.
Correct syntax: 
 
TYPES: BEGIN OF line, 
        
col1 TYPE i, 
        
col2 TYPE i, 
       END OF line. 
MOVE 'X' TO a.
Reason: 
 
The definition of a structure between BEGIN OF
and END OF is an entire block in which only the components of the structure may be declared.
Overview: 
 
Replacement for Obsolete Statements ABAP Objects