Hi gurus what is check and continue

hi gurus what is check and continue

Hii!
  CHECK logexp.
Effect
CHECK evaluates the subsequent logical expression. If it is true, the processing continues with the next statement.
CHECK with a negative outcome terminates the current loop pass and goes back to the beginning of the loop to start the next pass, if there is one. Examples of loop structures are:
DO     ... ENDDO
WHILE  ... ENDWHILE
LOOP   ... ENDLOOP
SELECT ... ENDSELECT
Note
Outside loops, a CHECK with a negative outcome will cause you to exit the current processing block (event block, dialog module, procedure). During the reporting event GET, the system terminates the processing of the current entry, read by the logical database, and processes the next entry in the current node of the logical database. Nodes that are subordinate in the hierarchical structure of the logical database are not processed.
SAP recommends that you only use CHECK within loops. Use the RETURN statement to exit processing blocks.
You can use the REJECT statement to exit the reporting event GET conditionally.
CONTINUE.
Effect
Within loop structures like
DO     ... ENDDO
WHILE ... ENDWHILE
LOOP ... ENDLOOP
SELECT ... ENDSELECT
CONTINUE terminates the current loop pass, returns the processing to the beginning of the loop and starts the next loop pass, if there is one.
Example
DO loop: Omit an area (10 ... 20)
DO 100 TIMES.
  IF SY-INDEX >= 10 AND SY-INDEX <= 20.
    CONTINUE.
  ENDIF.
ENDDO.
Regards
Abhijeet

Similar Messages

Maybe you are looking for