what is check statement

Answer Posted / ramana

If you use the CHECK <expr> statement within an event block
but not within a loop, and the condition <expr> is not
fulfilled, the system exits the processing block
immediately.

<expr> can be any logical expression or the name of a
selection table. If you specify a selection table and the
contents of the corresponding table work are do not fulfill
the condition in the selection table, it is the same as a
false logical expression.


If you use the CHECK <expr> statement within an event block
but not within a loop, and the condition <expr> is not
fulfilled, the system exits the processing block
immediately.

If the CHECK statement occurs in a loop using DO, WHILE, or
LOOP, it is the loop that terminates, not the processing
block.

A subroutine normally ends at the ENDFORM statement.
However, you can terminate them earlier by using the EXIT
or CHECK statement.
In loop structures like

DO ... ENDDO
WHILE ... ENDWHILE
LOOP ... ENDLOOP
SELECT ... ENDSELECT


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.

In structures like

FORM ... ENDFORM
FUNCTION ... ENDFUNCTION
MODULE ... ENDMODULE
AT

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an abap?

560


Explain how to write a bdc - how do you go about it?

613


What do you do when the system crashes in the middle of a BDC batch session?

697


Use SET PF_STATUS which is in the FM reuse_alv_grid_display to set the button

1774


What does the insert statement in extract datasets do? : abap modularization

586






How to insert a line into abap internal tables?

620


what is sales order confirmation and how can do design it in webdynpro. what is Tcode for the same?

1999


What happens if we use leave to list-processing without using suppress-dialog?

698


What is sap script? Describe its components.

603


when are objects are passed from task to the change request?

1671


Difference between open sql and native sql? : abap data dictionary

612


What is the length of function code at user-command?

759


Cds views

7695


What is a bsp application? : sap abap hr

639


How do you document abap/4 programs? Do you use program documentation menu option?

702