Skip to Content
0
Former Member
Jan 28, 2011 at 04:51 AM

Values changed for in ALV grid output screen(set_table_for_first_display).

127 Views

Hi all,

I am developing an alv report using oops abap.any inputs on the below issue is welcome.

The final internal table it_error contains the correct records for all the fields after filling the data for relevant fields.i.e after

LOOP AT it_error ASSIGNING <wa_error>.

PERFORM read_data.

ENDLOOP.

Contents(2 records) of it_errpr is as below:

APL_AR SUB_AR SOURCE TARGET CHAR_ER LUKUP_ER CONV_ER LAST_LOAD_DATE LAST_ER_DATE

SUPLY SD_O E_11HDR E_11HDR1 0 1 0 0000000000000 20110121151236

SUPLY SD_O ZTEST_ER ZERROR2 0 1 0 20110125191253 20110127152612

Now if I pass this it_error for displaying ALV output using

CALL METHOD o_alv_grid->set_table_for_first_display

EXPORTING

is_layout = l_layout

CHANGING

it_outtab = it_error

it_fieldcatalog = it_fieldcat.

The values for last 2 columns( CONV_ER and LAST_ER_DATE)changes in the ALV grid display output screen as below:

APL_AR SUB_AR SOURCE TARGET CHAR_ER LUKUP_ER CONV_ER LAST_LOAD_DATE LAST_ER_DATE

SUPLY SD_O E_11HDR E_11HDR1 0 1 1 00000000000000 00000000000000

SUPLY SD_O ZTEST_ER ZERROR2 0 1 1 20110125191253 20110125191253

Regards,

Selina