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
How to read files and process BDC's automatically ?
What should be the approach for writing a bdc program? : abap bdc
Differentiate between transparent tables, cluster tables and pooled tables
What is abap work bench?
What is a data dictionary? : sap abap data dictionary
What is the function of a domain? : abap data dictionary
What are the data classes in abap?
data:zxyz type xyz. where xyz is a standard sap structure where it contains data type fields and line type (refer to other structure) fields. my question is how to assign values to field zxyz-str-matnr where str is a structure inside xyz structure.
What happens if a function module runs in an update task? : abap modularization
What is the difference between data elements and domains? : abap data dictionary
What is difference between inner join and outer join?
What are the different types of views in sap? : abap data dictionary
Can you show multiple alvs on a single screen?
Can a filed occur in several field groups? : abap modularization
What is screen flow logic? What are the sections in it?