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

Create dynamic internal table with deep structure;cell coloring dynamic ALV

Former Member
0 Likes
505

Hi,

My requirement is to do cell colouring for a dynamic ALV.

So I am creating a dynamic internal table using the following method.

CALL METHOD cl_alv_table_create=>create_dynamic_table

EXPORTING

it_fieldcatalog = i_fieldcatalog[]

IMPORTING

ep_table = i_output.

But how do I define field COLORS which should be again an internal table ?

Is there any other way for cell colouring?

Putting my problem in another way:

How do I create a dynamic internal table with one field as another internal table.

Quick replies are highly appreciated.

Thanks,

Nisha Vengal.

Hi,

My requirement is to do cell colouring for a dynamic ALV.

So I am creating a dynamic internal table using the following method.

CALL METHOD cl_alv_table_create=>create_dynamic_table

EXPORTING

it_fieldcatalog = i_fieldcatalog[]

IMPORTING

ep_table = i_output.

But how do I define field COLORS which should be again an internal table ?

Is there any other way for cell colouring?

Putting my problem in another way:

How do I create a dynamic internal table with one field as another internal table.

Quick replies are highly appreciated.

Thanks,

Nisha Vengal.

2 REPLIES 2
Read only

Former Member
0 Likes
376

Hi,

I am closing this thread.

I approached my requirement problem in a different way and solved it.

But I couldnt still figure out how to do this:

How can we create a dynamic internal table with one field as another internal table (deep structure) ?

If I get any correct replies, will surely give you points.

Thanks,

Nisha Vengal.

Read only

Former Member
0 Likes
376

halo Nisha

Before building the display table . you can add the field in the feild catalog right . This display table gets generated from the field catalog right

1 Create a global structute say ZEXTEND_FIELDCAT

2 Have fields like STYLE type lvc_t_styl

COLOR type LVC_T_SCOL.

3 Now you have to extend ur fieldcatalog

l_fieldcat-fieldname = COLOR'.

l_fieldcat-ref_field = 'COLOR'.

l_fieldcat-ref_table = 'ZEXTEND_FIELDCAT'.

APPEND l_fieldcat TO lt_field_catalog.

CLEAR l_fieldcat.