Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

DIFFERENCE B/W CHECK & IF STATEMENT.

Former Member
5,379

HI,

What is the difference between CHECK & IF statements and at what postion they can be useful for good performance point...explain please

Thanks.

1 ACCEPTED SOLUTION
Read only

2,391

Hi,

CHECK :

If the condition fails, it simply ignores the remaining lines and exit out of the module where the CHECK command exists.It has only two options for processing true or false.

IF :

It is a kind of modularization technique, i mean we can do different actions depending on the condition.Here only the condition is visible inside the IF..Endif structure.

6 REPLIES 6
Read only

Former Member
0 Likes
2,391

After check, if the condition is not satisfying, remaining code will not work.

After IF, if the condition is not satisfying, remaining code after endif will work.

Read only

2,392

Hi,

CHECK :

If the condition fails, it simply ignores the remaining lines and exit out of the module where the CHECK command exists.It has only two options for processing true or false.

IF :

It is a kind of modularization technique, i mean we can do different actions depending on the condition.Here only the condition is visible inside the IF..Endif structure.

Read only

2,391

THANKS

Read only

connywilmering
Discoverer
0 Likes
2,390
Read only

0 Likes
2,390

I Have a Similar Question

Read only

0 Likes
2,389

Hi David,

Thank you for visiting SAP Community to get answers to your questions. Since you're asking a question here for the first time please note that:

You are adding a comment to an old post that is not likely to get an answer.

I suggest starting a new question and following these guidelines:

I recommend that you familiarize yourself with: https://community.sap.com/resources/questions-and-answers, as it provides tips for preparing questions that draw responses from our members.

For example, you can:

- outline what steps you took to find answers (and why they weren't helpful)

- share screenshots of what you've seen/done

- make sure you've applied the appropriate tags

- use a more descriptive subject line

The more details you provide, the more likely it is that members will be able to respond. Feel free to also take our Q&A tutorial at: https://developers.sap.com/tutorials/community-qa.html

Should you wish, you can revise your question by selecting Actions, then Edit.

By adding a picture to your profile you encourage readers to respond: https://developers.sap.com/tutorials/community-profile.html

Regards,

Dedi

Regards,
Dedi Metser