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

Problem in Fieldcatalog

Former Member
0 Likes
815

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

6 REPLIES 6
Read only

Former Member
0 Likes
773

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.

Read only

lijisusan_mathews
Active Contributor
0 Likes
773

is the column name wrong too. Or just the values that are getting replaced?

Read only

0 Likes
773

Also please double check if your internal table field name that you have specified in the field catalog is the same.

Suzie

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
773

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

Read only

Kiran_Valluru
Active Contributor
0 Likes
773

> 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

Read only

Former Member
0 Likes
773

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.