Quantcast
Viewing all articles
Browse latest Browse all 9656

Re: what is the function of check statement in abap

Hi Suneei,

 

If CHECK Statement is satisfied, then only the processor executes the code followed by CHECK statement.

 

I hope, in your case CHECK statement is in loop. So, for the first time SY-INDEX will 1 and its not greater that 1 so that condition failed, that is why the statements after that CHECK will not be executed. In the second loop, SY-INDEX will be 2 and its satisfies the CHECK Condition and statements after taht will be executed, so that you are able get that record.

 

Regards,

Vijay


Viewing all articles
Browse latest Browse all 9656

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>