Is data element BOOLE_D and CHAR1 same in SAP Selection Screen?

In one of our posts on Web Dynpro, we demonstrated that WDY_BOOLEAN and Flag data elements, which are both of type CHAR1, behave differently. Recently, I discovered that not all CHAR1 data elements are the same. This raises the question: Is data element BOOLE_D and CHAR1 same in SAP Selection Screen? Let’s dive deeper into the differences between these elements.

Allow us to look this model.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_init TYPE char1.
SELECTION-SCREEN END OF BLOCK b1.

You expect a choice screen boundary with one person length. You are correct.

Presently, rather than TYPE CHAR1, let us take BOOLE_D which is likewise of TYPE CHAR1.

Determination SCREEN Start OF BLOCK b1 WITH Casing TITLE text-001.
Boundaries: p_delt TYPE boole_d.
Determination SCREEN END OF BLOCK b1.

What do you anticipate that the result should be?
Truly, I anticipated equivalent to above. One person placeholder. In any case, shockingly, when I execute this piece of code, it gave me a CHECKBOX.

Such an extremely long time, I have been utilizing the unequivocal CHECKBOX explanation to create a checkbox in the determination screen. Furthermore, without fail, I expected to pronounce a checkbox in my determination screen, I expected to allude to past code scrap, google or do a F1 to get the sentence structure. Indeed, even following 10 years of ABAP programming, I don’t recollect the sentence structure (really, I would rather not).

In any case, not any longer. Presently, I can proclaim a CHECKBOX in my determination screen without alluding anything..

This is the explicit CHECKBOX syntax.

* Explicit CHECKBOX syntax
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_init AS CHECKBOX.
SELECTION-SCREEN END OF BLOCK b1.

This is WITHOUT AS CHECKBOX keyword

* CHECKBOX through data element
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_delt TYPE boole_d.
SELECTION-SCREEN END OF BLOCK b1.

The result of both these Boundaries is something similar.

So next time you really want a CHECKBOX for your program, you have another other option.

Kindly note: Each of the one person information components of TYPE CHAR1 which has a space with Worth Reach X and clear can be utilized for CHECKBOX statement.

check box in sap 4

Information components like WDY_BOOLEAN, BOOLE_D, Banner, LVOMA and so on can be utilized for CHECKBOX.

I’m certain, we all realized about the Worth Reach spaces. Be that as it may, did you truly involve them in such useful cases?

Something to think about:
The data element BOOLE_D can be used for a checkbox declaration. But Is data element BOOLE_D and CHAR1 same in SAP Selection Screen? Could we not use the data element FLAG1 for a checkbox declaration as well? FLAG1 is also of type CHAR1, which raises the question about their differences in functionality and usage.

Thank you kindly for your time!!

 

YOU MAY BE INTERESTED IN

ABAP for SAP HANA. ALV Report On SAP HANA – Opportunities And Challenges

Top SAP ABAP Reports Interview Questions: Be Prepared

SAP Offshore ABAP Development Tools for HANA Studio

 

X
WhatsApp WhatsApp us