Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Use of Boolean in Abap Object

Former Member
0 Likes
4,596

Gentlemans!!

I'm wondering if the boolean type data exists in Abap Object and if it used when we define methods.

I used to use it in C++ and Java and I still don't know if this it's used or even exists in Abap Objects.

Thanks for your help.

Regards,

Polak.

Gentlemans!!

I'm wondering if the boolean type data exists in Abap Object and if it used when we define methods.

I used to use it in C++ and Java and I still don't know if this it's used or even exists in Abap Objects.

Thanks for your help.

Regards,

Polak.

2 REPLIES 2
Read only

Former Member
0 Likes
1,529

Hello,

The boolean type don't exist in ABAP.

In ABAP we used to refer to the type-pool ABAP where exists a type ABAP_BOOL (character length 1) where X = true and space = false. To refer to these values there are two constants: ABAP_TRUE and ABAP_FALSE.

To access the type-pool use the transaction SE11 select Type Group and enter ABAP.

Regards,

Read only

matt
Active Contributor
0 Likes
1,529

While there's various implementations of boolean, as indicated in the previous answer, sadly there's no

IF me->check_something( ).

ENDIF.

We have to use something like

IF me->check_something( ) IS INITIAL:.

ENDIF:

matt