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 ..!!
Was this lesson helpful to you? Yes No 1 People out of 1 think this lesson helpful