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 are the basic functions of database utility?

575


Why do we declare a method of a class final? What can be the purpose? Give a scenario.

890


When the top-of-page event does get triggered?

668


Hi every one ! You people are doing a great job here , Im going to attend Tata Technologies interivew on this sunday,Can anyone who has already attended this company interivew or other companies interivews in abap pls share ur experience with me and help me to get into job my id ushareddyabap@gmail.com. Thankyou verymcuh

1502


What is processing class, where we do them and why? : sap abap hr

563






Why do we need to code a loop statement in both the pbo and pai events for each table in the screen?

585


What is the difference between collect and append statements?

552


What are the parameter types for a method?

912


what are the important fields while preparing sales order,inquiry?

1899


How is the command suppress-dialog useful?

644


What functions does a data dictionary perform ?

555


Describe the difference between macro and subroutine?

626


What are the different abap editors? What is the used of different editors in abap?

564


How to pass data from list to report?

562


How do you find out whether a file exits on the presentation server?

559