Skip to Content
0
Former Member
Jan 06, 2012 at 07:04 AM

Column fetching value of preceeding column in ALV Grid output

30 Views

Hi,

I have prepared a report to generate an ALV output using the below FM.

-Quote-

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_buffer_active = 'X'

i_callback_program = sy-repid

i_grid_title = ABCD'

is_layout = gs_layout

it_fieldcat = fieldcat[]

i_save = 'A'

is_variant = gs_save

it_events = gs_events

TABLES

t_outtab = lt_final

EXCEPTIONS

program_error = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE e001 WITH text-e02. "Interner Fehler

ENDIF.

-Unquote-

The internal table lt_final has 275 fields which are getting populated correctly. the field catalog also cntains all the 275 fields as in the internal table.

But when this FM is executed to display the ALV output, I find that in the ALV output displayed, the value of a particular column field ('Percent') is picking up the value of the preceeding column field ('Object list') instead of the value that is populated in the internal table. I have tried to change the position of the "Percent" field, but got the same result everything.

Kindly help.

Regards,

Shayeree