L??????P
SAP ABAP

L??????P

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

IF VS CASE STATEMENT

  • If we have multiple if conditions and check conditions all the conditions check until they don't get the true condition whereas in case it directly goes to the?true?condition.
  • IF statements can be nested to handle more complex logic, but this can reduce readability and maintainability.
  • CASE statements are generally more readable and maintainable than nested IF statements when handling multiple conditions.

WHAT IS LOOP

In SAP ABAP, a loop is a programming construct used to iterate over a collection of data elements, such as an internal table, and perform operations on each element sequentially.

There are several types of loops commonly used in ABAP:

  1. DO LOOP
  2. WHILE LOOP

DO LOOP??

The DO loop is a control structure used for iterative processing. It allows you to execute a block of code repeatedly until a specified condition is met.

The basic syntax of the DO loop is as follows:

DO LOOP


OUTPUT

WHILE LOOP??

the WHILE loop is a control structure used for iterative processing. It allows you to execute a block of code repeatedly as long as a specified condition remains true.

The basic syntax of the WHILE loop is as follows:

WHILE LOOP

Within the WHILE loop, you can include any ABAP statements or code blocks that you want to execute repeatedly. The loop continues to execute as long as the specified condition evaluates to true. Once the condition becomes false, the loop terminates, and program control moves to the statement following the ENDWHILE.

THANKS FOR READING ??





Urishita Pandita

Frontend Developer | JavaScript | ReactJS | TypeScript

8 个月

Thanks for sharing

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

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 条评论
  • SAP ABAP

    SAP ABAP

    Conditional Statement?? In SAP ABAP, conditional statements are used to control the flow of the program execution based…

社区洞察

其他会员也浏览了