Thursday, September 11, 2008

SAP Text Properties in SAP Netweaver

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 Structure linkTextView 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_
COLUMN

SET_H_ALIGN

GET_H_ALIGN

Horizontal alignment within a cell variant

CL_SALV_WD_
CV_STANDARD

SET_H_ALIGN

GET_H_ALIGN

Font size and style in a cell

CL_SALV_WD_
UIE_TEXT_VIEW

SET_DESIGN or
SET_DESIGN_FIELDNAME

GET_DESIGN or
GET_DESIGN_FIELDNAME

Line break in a cell

CL_SALV_WD_
UIE_TEXT_VIEW

CL_SALV_WD_
UIE_LINK_TO_ACTION

CL_SALV_WD_
UIE_LINK_TO_URL

SET_WRAPPING or
SET_WRAPPING_FIELDNAME

GET_WRAPPING or
GET_WRAPPING_FIELDNAME

No comments: