Application Development 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: 

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

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Selina,

Check your field catalog using the ALV Consistency check. Press SHIFT Key + Double Right Click anywhere in the empty ALV area to bring the ALV Consistency check. Check whether Fieldcatalog and output table are correct there.

Regards,

Karthik D

3 REPLIES 3

Former Member
0 Kudos

Hi Selina,

Check your field catalog using the ALV Consistency check. Press SHIFT Key + Double Right Click anywhere in the empty ALV area to bring the ALV Consistency check. Check whether Fieldcatalog and output table are correct there.

Regards,

Karthik D

0 Kudos

Hi Selina,

this really look like a copy error of the field catalogue. Not only the date columns look the same but the column before also look like a copy error.

Maybe you have at least defined two pairs of duplicate colums!

Regards,

Klaus

Edited by: Klaus Babl on Jan 28, 2011 7:29 AM

0 Kudos

Hi guys ,

Thank you for your timely reply.

@karthik,

I followed as you said shift+double right click on alv output screen

and found out that the field name I have specified in output table and field catelog were different.

I corrected and maintained the same name for fields in both output internal table and in field catelog.

This solved my issue.Now the correct values are displayed in my output alv grid display screen aswell.

Regards,

Selina.