Documentation View

We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

ABAPWRITE_CHECKBOX - WRITE CHECKBOX

ABAPWRITE_CHECKBOX - WRITE CHECKBOX

BAL Application Log Documentation   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

WRITE - Output as checkbox

Effect

Outputs the field f as a checkbox. The contents of the first character of f is interpreted as the "status":

' ' = not selected
'X' = selected

The user can change this as required.

Note

To prevent the user changing the contents of the checkbox, you can use the addition ... INPUT OFF. The checkbox is then nothing more than a status display and can only be changed by programming.
In technical terms, a checkbox behaves exactly like an input field with a length of 1 (FORMAT INPUT).

Examples

DATA: MARKFIELD(1) TYPE C VALUE 'X'.
...
WRITE MARKFIELD AS CHECKBOX.           "checkbox selected
MARKFIELD = SPACE.
WRITE MARKFIELD AS CHECKBOX.           "deselected
WRITE MARKFIELD AS CHECKBOX INPUT OFF. "deselected, protected

Additional help

List Creation






TXBHW - Original Tax Base Amount in Local Currency   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 1412 Date: 20230207 Time: 100146     sap01-206 ( 23 ms )