Application Development 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: 

Italics and Underlines in SALV

Former Member
0 Kudos

Hi Guys,

I have a requirement to have texts in italics and some underlined.

This will be in the end of list event.

I'm using SALV.

Is it possible?

Also, can we adjust the font?

Thanks.

8 REPLIES 8

Former Member
0 Kudos

Hi,

You can try this method.

CALL METHOD SALV->SET_LAYOUT_PROPERTIES

0 Kudos

Hi,

There's no class SALV.

What is the class for this method?

Thanks.

0 Kudos

Ah, that method is available in cl_gui_alv_grid and not in SALV.

0 Kudos

yes,

you would have to declare a variable DATA : S_ALV TYPE REF TO CL_GUI_ALV_GRID.

and then call method CALL METHOD SALV->SET_LAYOUT_PROPERTIES

0 Kudos

Hi Anish,

I'm using SALV and not that class.

Thanks.

raymond_giuseppi
Active Contributor
0 Kudos

Perform some search for classes used in this sample

DATA: go_alv TYPE REF TO cl_salv_table,
       lo_layout  TYPE REF TO cl_salv_form_layout_grid,
       lo_label TYPE REF TO cl_salv_form_label,
       lo_flow TYPE REF TO cl_salv_form_layout_flow,
       lo_text TYPE REF TO cl_salv_form_text.
CREATE OBJECT lo_layout.
lo_label = lo_layout->create_label( row = 1 column = 1 ).
lo_label->set_text('Label').
lo_flow = lo_layout->create_flow( row = 2 column = 1 ).
lo_flow->create_text( text = 'Flow' ).
lo_text = lo_layout->create_text( row = 3 column = 1 text = 'Text' ).
go_alv->set_end_of_list( lo_layout ).
go_alv->set_end_of_list_print( lo_layout ).


Regards,

Raymond

0 Kudos

Hi Raymond,

I already checked that classes before posting here. But I don't find any.

Thanks.

Former Member
0 Kudos

Hi,

Please check the links:

1. Setting Text Properties - SAP-GUI-Technologie - SAP Library

2. Compiling Design Objects - SAP-GUI-Technologie - SAP Library

For displaying texts in

1. Italics: Declare it as action information. Use class  CL_SALV_FORM_ACTION_INFO

2. Underline: Set it as hotspot column

Hope it helps!

Thanks,

Gayatri