set_column_style

Use this method to set the style of a column in the table.

CALL METHOD valid_reference->set_column_style
          EXPORTING col_no = col_no
                    sap_style     = sap_style
                    sap_color     = sap_color
                    sap_fontsize  = sap_fontsize
                    sap_fontstyle = sap_fontstyle
                    sap_emphasis  = sap_emphasis
                    sap_align     = sap_align
                    sap_valign    = sap_valign
                    sap_symbol    = sap_symbol.

Parameter and Type

Opt.

Description

col_no
TYPE I

 

The number of the column whose format you want to set

sap_style
TYPE SDYDO_ATTRIBUTE

X

The style you want to appply to the column

sap_color
TYPE SDYDO_ATTRIBUTE

X

The color you want to apply to the column

sap_fontsize
TYPE SDYDO_ATTRIBUTE

X

The font size for the column

sap_fontstyle
TYPE SDYDO_ATTRIBUTE

X

The font style you want to apply to the column

sap_emphasis
TYPE SDYDO_ATTRIBUTE

X

The weight of type for the column

sap_align
TYPE SDYDO_ATTRIBUTE

X

The horizontal alignment of elements in the column. Possible values:

  • 'LEFT' : Left-justified
  • 'CENTER' : Centered
  • 'RIGHT' : Right-justified

sap_valign
TYPE SDYDO_ATTRIBUTE

X

The vertical alignment of elements in the cells of the column. Possible values:

  • 'TOP' : Display at the top of the cell
  • 'CENTER' : Display in the middle of the cell
  • 'BOTTOM' : Display at the bottom of the cell

sap_symbol
TYPE SDYDO_FLAG

X

Display as SAP list symbol.

  • 'X' : Yes
  • ' ' (default): No