Application Development 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: 

DIFFERENCE B/W CHECK & IF STATEMENT.

Former Member

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

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

Former Member
0 Kudos

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.

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.

THANKS

connywilmering
Discoverer

0 Kudos

I Have a Similar Question

0 Kudos

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