Using BOOLEAN check ABAP 7.4


Working with method boolean check ABAP 7.4

A+ A-

When developers wants to check a Boolean return of a method in ABAP prior to NetWeaver 7.4, there was a need to compare it against value 'X' , but in NetWeaver 7.4, Boolean check is simpler and it is very much like other programming languages.

Boolean check before ABAP 7.4

IF ZCL_CHECK_BOOLEAN=>IS_VALID( ) = 'X'.
WRITE:/ 'Is Valid'.
ENDIF.

Boolean check after ABAP 7.4

IF ZCL_CHECK_BOOLEAN=>IS_VALID( ).
WRITE:/ 'Is Valid'.
ENDIF.

Learner Questions

No Questions by learners, be first one to ask ..!!

    Please Sign in to ask a question


    Was this lesson helpful to you? Yes No 3 People out of 3 think this lesson helpful

    Lesson Navigation

    ←Previous Chapter
    Next Lesson → Working with Strings and Output