5 - SAP ABAP New Syntax - SWITCH Statement As a Replacement of CASE Statement

Поділитися
Вставка
  • Опубліковано 9 лис 2024
  • -Explanation of CASE and SWITCH Statement.
    -Practical Demonstration of CASE and SWITCH Statement.

КОМЕНТАРІ • 8

  • @amarendranath3519
    @amarendranath3519 6 місяців тому +1

    your videos are very helpful sir,the way of sharing your knowledge is awsome sir.hats off for you

  • @suryaprakashnellutla5278
    @suryaprakashnellutla5278 27 днів тому +1

    👌

  • @Rajasekharabap
    @Rajasekharabap 3 місяці тому +1

    Excellent sir tq

  • @mohammednabeel4381
    @mohammednabeel4381 5 місяців тому +1

    How does cond and switch statement makes a difference ? Can we use switch similar to cond operator when it comes to multiple conditions in single condition?

    • @sapabapbyrahulmehta
      @sapabapbyrahulmehta  5 місяців тому

      Yes you can use, but if we have more conditions we need to prefer Switch rather than COND. The reason is same we need to prefer CASE rather than IF, if we have more conditions.

  • @sk16034
    @sk16034 6 місяців тому

    Hi Sir, what if the case conditions are different? Like instead of passing a value into same variable, if the logic is different for each case. How to approach it?

    • @sapabapbyrahulmehta
      @sapabapbyrahulmehta  6 місяців тому

      We can take a field-symbol of generic data type(ANY) and assign the different results to one common field-symbol.