Af:selectBooleanCheckbox needs to have a linebreak

Hello all,
does anyone know how to linebreak a selectBooleanCheckbox ? i need to wrap "this is a quite long text that needs to be wrapped", otherwise it will ruin my layout
i've played around with css and inlinestyles but no success
greetings martin
<========= SNIPPLET =========>
<af:showDetailHeader text="somegroup"
disclosed="true"
id="sdh2"
inlineStyle="width:300.0px;">
<f:facet name="context">
<!-- the text of the checkbox needs to be wrapped -->
<af:selectBooleanCheckbox text="this is a quite long text that needs to be wrapped"
value="#{val}"
id="selectBooleanCheckbox1"
inlineStyle="white-space:pre-wrap"/>
...

Hi,
Use the below code
DATA: BEGIN OF it_bukrs OCCURS 0,
        bukrs LIKE t001k-bukrs,
      END OF it_bukrs.
SELECTION-SCREEN: BEGIN OF BLOCK main WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS:    p_bukrs(4) TYPE c.
SELECTION-SCREEN END OF BLOCK main.
Validation Section
INITIALIZATION.
  SELECT DISTINCT bukrs FROM t001k INTO TABLE it_bukrs.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield        = 'BUKRS'
      dynpprog        = sy-repid
      dynpnr          = sy-dynnr
      dynprofield     = 'P_BUKRS'
      value_org       = 'S'
    TABLES
      value_tab       = it_bukrs
    EXCEPTIONS
      parameter_error = 1
      no_values_found = 2
      OTHERS          = 3.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

Similar Messages

Maybe you are looking for