cancel
Showing results for 
Search instead for 
Did you mean: 

To change Font size and style in a cell

former_member497277
Participant
0 Kudos

HI! .

I would to know if it is possible to change to the source and the text of alv.

I have seen that with class CL_SALV_WD_UIE_TEXT_VIEW and method SET_DESIGN, Font size and style in a cell can be changed, but i don´t know how do it and what objects and methods have I to use. Somebody me can write the code necessary to change the style of source of a cell, or row, or of the whole table, please?

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

former_member497277
Participant
0 Kudos

Hi Maksim!.

Thanks for your answer. I have followed the manuals. My code is this:

DATA: lr_column TYPE REF TO cl_salv_wd_column,

ld_text type ref to CL_SALV_WD_UIE_TEXT_VIEW.

CREATE OBJECT ld_texto.

lr_column =

l_value->if_salv_wd_column_settings~get_column( 'name_column' ) .

ld_text->SET_DESIGN ( '06' ).

lr_column->set_cell_editor( ld_text ).

I don´t know that I have incorrect, but when executing it shows the column with any data.

former_member182372
Active Contributor
0 Kudos

Hi Ana,

According to <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/7d/c8f641091b5f24e10000000a1550b0/frameset.htm">this</a> there is no such design like '06'. Try one from the list.

Best regards, Maksim Rashchynski.

Answers (3)

Answers (3)

former_member497277
Participant
0 Kudos

It already works. Thank´s for your aid.

Regards.

former_member497277
Participant
0 Kudos

Hi Maksim!

I have tried it again with the

CL_WD_TEXT_VIEW=>E_DESIGN-LEGEND type and it continues leaving the column in target again. Am I using the objects that correspond?

former_member182372
Active Contributor
0 Kudos

Hi Ana,

Are you familiar with https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/webcontent/uuid/60ea94e5-0901-0010-c3bb-aad5ea9620d8">sap [original link is broken] [original link is broken]

Best regards, Maksim Rashchynski.