SAP ABAP
SAP ABAP

SAP ABAP

Conditional Statement??

In SAP ABAP, conditional statements are used to control the flow of the program execution based on certain conditions. There are several types of conditional statements commonly used in ABAP:

  1. IF Statement
  2. CASE STATEMENT


IF Statement: The IF statement is used to evaluate a condition and execute a block of code if the condition is true.

  • IF condition: " Code block to execute if condition is true ENDIF.
  • IF...ELSE Statement: The IF...ELSE statement is used to execute one block of code if the condition is true and another block of code if the condition is false.
  • IF...ELSEIF...ELSE Statement: The IF...ELSEIF...ELSE statement allows you to evaluate multiple conditions in sequence and execute the corresponding block of code for the first true condition.

IF STATEMENT


CASE Statement: The CASE statement is used to evaluate a variable or expression against a series of possible values and execute the corresponding block of code.

CASE CONDITION


RESULT


要查看或添加评论,请登录

Pallavi Kumari的更多文章

  • Module Pool Vs ALV (ABAP List Viewer)??

    Module Pool Vs ALV (ABAP List Viewer)??

    what is a module pool, what is the purpose of a module pool, and how it is different from alv? In SAP, Module Pool and…

  • CLASSICAL REPORT EVENT??

    CLASSICAL REPORT EVENT??

    WHAT IS A CLASSICAL REPORT EVENT?? classical reports are basic reports that generate lists of data. They use a…

  • JOIN

    JOIN

    WHAT IS JOIN ?? In SAP ABAP, a "join" refers to the process of combining records from two or more database tables based…

  • SAP ABAP CONCEPTS??

    SAP ABAP CONCEPTS??

    SAP ABAP internal table with header line or without header line. In SAP ABAP, internal tables can be defined with or…

  • TYPES OF INTERNAL TABLES ??

    TYPES OF INTERNAL TABLES ??

    In SAP ABAP, internal tables are a fundamental data structure used to store and manipulate data within programs. There…

  • INTERNAL TABLE OPERATIONS??

    INTERNAL TABLE OPERATIONS??

    INTERNAL TABLE: Internal table operations typically refer to actions performed on tables that are managed within the…

  • INTERNAL TABLES & WORKAREA??

    INTERNAL TABLES & WORKAREA??

    WHAT IS INTERNAL TABLE???♀? In SAP ABAP (Advanced Business Application Programming), an internal table is a data…

  • STRING OPERATIONS??

    STRING OPERATIONS??

    STRING OPERATIONS- CONDENSE In SAP ABAP, the statement is used for string operations to remove leading and trailing…

  • SYSTEM VARIABLE & STRING OPERATIONS????

    SYSTEM VARIABLE & STRING OPERATIONS????

    Let's start with the system variable. A system variable refers to a predefined variable provided by the SAP system…

    2 条评论
  • L??????P

    L??????P

    After knowing about the IF statement and CASE Statement, now we will know about their differences. IF VS CASE STATEMENT…

    1 条评论

社区洞察

其他会员也浏览了