‎2011 Jul 11 9:49 AM
Hi
In the ALV report, the last column is showing the same value as the previous column value in alv report.
I am using Resuse_alv_grid_display.
perform append_field tables t_fieldcat using: l_comps-name 'EKORG' 'WYT3' 'EKORG' '' '',
l_comps-name 'LIFN2' 'LFA1' 'LIFNR' '' text-c11,
l_comps-name 'NAME1' 'LFA1' 'NAME1' '' text-c12,
l_comps-name 'LOEVM' 'LFA1' 'LOEVM' '' text-c13,
l_comps-name 'SPERM' 'LFA1' 'SPERM' '' text-c14.
The last column SPERM showing same value as LOEVM.
I would like to know, how to solve it. While debugging fieldcatalog and output internal table showing correct values.
Regards
Subha
‎2011 Jul 11 10:03 AM
Hi,
Check the following:
1)Are you clearing the fieldcatalog workaraea ,before appending teh next value.
2)Just before passing value sto teh FM what are the values in fieldcatalog.
3)Are you passing column positions in fieldcatalog?
You can use FM REUSE_ALV_FIELDCATALOG_MERGE. You wont have to explicitly populate fieldcatalog.
‎2011 Jul 11 10:18 AM
is the column name wrong too. Or just the values that are getting replaced?
‎2011 Jul 11 10:24 AM
Also please double check if your internal table field name that you have specified in the field catalog is the same.
Suzie
‎2011 Jul 11 10:24 AM
Hello Subha,
Whenever you've any issues with ALV fieldcat perform [ALV consistency check|http://help.sap.com/saphelp_sm32/helpdata/en/d6/23253963143e6ae10000000a11402f/content.htm]. It'll list the errors in the fieldcat.
BR,
Suhas
‎2011 Jul 11 10:27 AM
> The last column SPERM showing same value as LOEVM.
You mean In the Field Header or in the Data. If it is in Field Header (column Heading) check the Text Element text-014 has same name.!! Or If You are getting same value in ALV Table Data., Check the Internal Table while Populating in the ALV.,
I mean in loop at itab into wa.
assigning wa to wa_fin. " heare while assigning you may assign the same field name for both fields
append wa_fin to itab_fin.
clear wa.
endloop.
hope this helps u.,
Thanks & Regards,
Kiran
‎2011 Jul 11 10:36 AM
Hi,
Since the fields LOEVM and SPERM are of field length Char1,that's why it may be confusing
Try to change the output length or output text in the fieldcatalog.