Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Write alv column as bold

Former Member
0 Likes
2,369

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,775

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

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

6 REPLIES 6
Read only

Former Member
0 Likes
1,775

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

Read only

0 Likes
1,775

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

Read only

0 Likes
1,775

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

Read only

Former Member
0 Likes
1,776

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

Read only

Former Member
0 Likes
1,775

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

Read only

Former Member
0 Likes
1,775

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