on 12-31-2010 4:03 AM
i created one one ALV and having 30 fields. in the final row it shows the weighted average of all field and that field only i need to show in BOLD characters. how can i perform this. please help me.
Hello
You need to use the styles table (LVC_T_STYL). Examples of styles are:
* define local data
CONSTANTS: lc_style_bold TYPE int4 VALUE '00000121',
lc_style_red TYPE int4 VALUE '00000087',
lc_style_cursive TYPE int4 VALUE '00008700',
lc_style_underline_faint TYPE int4 VALUE '00008787',
lc_style_underline TYPE int4 VALUE '00008707',
lc_style_underline_red TYPE int4 VALUE '00008007'.
Regards
Uwe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in my scenario i dn't need to add color instead i need to add particular field of line to be bold.
i'm using reuse_alv_list_display.
scenario:
matnr qty rate
1000 3 20
2000 10 20
3000 12 50
-
total 25 90
this is in alv_list_display
.i needed only the total 25 90 in bold character.
is any solution for that and any field catalog to change this.
please help me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you wish to highlight only the cell (OOPS ALV).
Add a new field to the internal table of the alv.
color_cell TYPE lvc_t_scol, " Cell color
*Modify layout add Field that will identify color cell of internal table
MOVE 'COLOR_CELL' TO is_layout-ctab_fname.
*for the cell you wish to color
MOVE '<fieldname>'' TO wa_color-fname. " wa_color is of type lvc_s_scol
MOVE '6' TO wa_color-color-col.
MOVE '1' TO wa_color-color-int.
MOVE '1' TO wa_color-color-inv.
APPEND wa_color TO wa_mara-color_cell
If you wish to highlight the entire line.
Add a new field to the internal table of the alv.
color_line(4) TYPE c, " Line color
*Modify layout add Field that will identify color line of internal table
MOVE 'COLOR_LINE' TO is_layout-info_fname.
*For the line you wish to highlight.
MOVE 'C710' TO <wa_outtab>-color_line.
append wa_outtab to it_outtabl.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.