You can specify how text is displayed in individual areas of the ALV output as follows:
● Horizontal alignment within a column
● Horizontal alignment within a cell variant
● Font size and style in a cell
This function is only available in the cell editor TEXT_VIEW. Here, you can choose the preconfigured formatting that you want to use (seeDesign in TextView Properties).
You can also set the read direction here.
● Line break in a cell
This function is only available in the cell editors TEXT_VIEW, LINK_TO_ACTION, and LINK_TO_URL. If the text contains characters that permit a line break (such as spaces and hyphens), the text can be distributed across multiple lines.
For more information about how to permit line breaks in column headers, see Column Headers.
● Font color in a cell (see Color of ALV Output, Columns, and Cells)
● Alignment, font size, and font style in a design object for the header or footer area (see Design Object Settings)
Methods for Text Properties
Function | Class | Method |
Horizontal alignment within a column | CL_SALV_WD_ | SET_H_ALIGN GET_H_ALIGN |
Horizontal alignment within a cell variant | CL_SALV_WD_ | SET_H_ALIGN GET_H_ALIGN |
Font size and style in a cell | CL_SALV_WD_ | SET_DESIGN or GET_DESIGN or |
Line break in a cell | CL_SALV_WD_ CL_SALV_WD_ CL_SALV_WD_ | SET_WRAPPING or GET_WRAPPING or |
No comments:
Post a Comment