2006 Jul 05 12:39 PM
Hi,
I have created an alv. Now, I need to write some fields (columns) with color orange (subtotal) and with bold style.
I have used the Emphasize field from the fieldcat in this way:
wa_fieldcat-emphasize = 'C310'.
C: color
3: orange
1: bold (1:on/ 0:off)
0: inverse (1:on/ 0:off)
The result is: i get the orange color in the desired columns, but I don´t get the bold style...
Any ideas because this doesn´t works?
Thanks in advance,
Carles
2006 Jul 05 12:42 PM
option 1 is not for bold , it is intensify on,
if u want in bold , befor passing to internal table use
TRANSLATE itab-fld1 to uppercase
Message was edited by: Chandrasekhar Jagarlamudi
Hi,
I have created an alv. Now, I need to write some fields (columns) with color orange (subtotal) and with bold style.
I have used the Emphasize field from the fieldcat in this way:
wa_fieldcat-emphasize = 'C310'.
C: color
3: orange
1: bold (1:on/ 0:off)
0: inverse (1:on/ 0:off)
The result is: i get the orange color in the desired columns, but I don´t get the bold style...
Any ideas because this doesn´t works?
Thanks in advance,
Carles
2006 Jul 05 12:42 PM
This is one of way doing it.
Else you can try giving different styles in the STYLE column of the field catalog and just set EMPHAIZE to X, that might be what you want. But I ahve not seen the contents being shown as bold.
Regards
Ravi
NOte : Please mark all the helpful answers
2006 Jul 05 12:51 PM
Ok Ravi, thanks for your information... You can see want I want, seeing the total cell of an alv... This is in bold mode and in orange color.
Please, have you information about the values that I can put in the STYLE field???
Thanks,
Carles
2006 Jul 05 12:54 PM
Take a look at these programs, in which you can define colors at the cell level.
http://www.geocities.com/mpioud/Abap_programs.html
Some how I am unable to open it to so cannot point to the exact program, but you can figure that out pretty easily.
Regards,
Ravi
Note : Please mark all the helpful answers
2006 Jul 05 12:42 PM
option 1 is not for bold , it is intensify on,
if u want in bold , befor passing to internal table use
TRANSLATE itab-fld1 to uppercase
Message was edited by: Chandrasekhar Jagarlamudi
2006 Jul 05 12:52 PM
Hi Carles,
EMPHASIZE Type LVC_EMPHSZ Char(4)
SPACE, 'X' or 'Cxyz' (x:'1'-'9'; y,z: '0'=off '1'=on)
If the field is set to 'X', the ALV uses a pre-defined color for highlighting the column. If the character field begins with 'C' (color code), the remaining numbers have the following meaning:
x: color number
y: intensified display on/off
z: inverse display on/off
Here Y is means intensified on/ off but not bold. I couldn't find any option to make fields as bold
2006 Jul 05 12:58 PM
Hello Carles,
In ALV as of now you can intensfiy and can give colors to the cell.
There is no option to BOLD the Cell contents . But we have options to give the text as hyperlink text using web_field available in the fieldcatalog.
Regards,
Krishna
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |