Posts

Showing posts with the label boolc

ABAP BOOLC and XSDBOOL use-cases

 In the previous post  ABAP Convert Logical Expressions Into Boolean Values , I talked about BOOLC and XSDBOOL functions and their respective features. I thought I would elaborate on their use cases with examples. BOOLC: Set boolean flag:

ABAP Convert Logical Expressions Into Boolean Values

In my last post on  ways to flip a boolean , I talked about how we can use boolean   functions to flip a boolean by passing a logical expression. I thought I will elaborate further on these. Boolean in ABAP is not that straightforward . However, boolean functions help us capture the results of logical expressions as a form of truth value. Let's dive further;

Ways to flip a Boolean

Whenever working with booleans while writing code there is almost always a scenario where one has to flip the boolean state i.e. true to false or vice-versa based on some condition. In this post, I wanted to showcase different ways to do so. Using Control statements: