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

Can ALV table have more than one exception column?

Former Member
0 Kudos
1,012

Hi,

I am trying to add a second exception column to ALV table. When I do it, first one dissapears, I tried few different approaches but I can not get it right, can anyone help me?

Firs column is created like that:

DATA(lo_columns) = o_alv->get_columns( ).
lo_columns->set_exception_column( value = 'COL1').

Then I try to add another one, either by using the same lo_columns, or creating a new variable:

DATA(lo_col) = o_alv->get_columns( ).
lo_col->set_exception_column(  value = 'COL2').

But everytime only the last column declared as exception gets displayed...

Is there a different way of doing this?

Thanks,

Lucas

5 REPLIES 5
Read only

Sandra_Rossi
Active Contributor
846

Only one column can be defined an "exception" column. But you may display icons in other columns, without need of defining them "exception columns". Do you use special features of the exception column?

Read only

Former Member
0 Kudos
846

No, i do not. It is only for the display of those icons that come with exception column.

If I understand it can be achieved by assigning icon codes e.g.'@5B@' to a table field.

Read only

Sandra_Rossi
Active Contributor
0 Kudos
846

Lucas K You understand well.

Read only

matt
Active Contributor
846

Don't use icon codes directly. Use the ones displayed when you run program SHOWICON. I.e. the ones that begin ICON_... In later versions of ABAP, you don't even need to include the type pool.

Read only

rameez_khan
Active Participant
0 Kudos
846

Check the documentation: Columns with special technical meaning.

Instead use method SET_ICON .