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

ALV Tree

Former Member
0 Likes
568

Hi,

I have created a ALV hierachy tree using FM:

REUSE_ALV_HIERSEQ_LIST_DISPLAY'

I need to change the default colors of the header and item.

Is it possible. Pls help

Thanks

Hi,

I have created a ALV hierachy tree using FM:

REUSE_ALV_HIERSEQ_LIST_DISPLAY'

I need to change the default colors of the header and item.

Is it possible. Pls help

Thanks

3 REPLIES 3
Read only

Former Member
0 Likes
549

Read only

Former Member
0 Likes
549

Hi,

You can have a look at the fields in the LAYOUT (parameter IS_LAYOUT) (SLIS_LAYOUT_ALV) table passed to play around with the color.

I have not done it myself, however it worth a try.

Cheers,

Aditya

Read only

Former Member
0 Likes
549

Hi,

There is a variable (IS_LAYOUT-info_fieldname) that need to be passed in the mentioned fm to color the rows.

See the following documention on IS_LAYOUT.

Color:

info_fieldname:

value set: SPACE, internal output table field name

A whole list record can be colored individually using a color code in a column of the internal output table for the record. Assign the name of the field containing the color code to this parameter.

The internal output table field must be of type CHAR(3).

The code must have the following syntax:

'Cxy':

C = color (all codes must start with 'C')

x = color number ('1'-'9')

y = bold ('0' = off, '1' = on)

Note: the color of the key columns is not affected. Key columns can be colored at record or cell level using the complex coloring which is described in the next parameter COLTAB_FIELDNAME.

Pass the variable accordingly and you will get the result.

For more information there are a bunch of programs in developement class SLIS, get the appropiate program for ref.

To get the programs undel dev call SLIS, goto se80 giving dev class as SLIS, the tree structure contains programs under 'program'.

Hope this helps..

Thanks in advance.

Rgds,

Harikrishna