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

Multiple columns

Former Member
0 Likes
870

In the program rm07docs I have added some new fields to show in the output. When I run the program I geta list output and then we click on detail list it shows the alv grid fromat . When we click back we come to the list output and if I again click on detail list it goes back to teh alv grid output but now the extar fields that I hae added to the it again gets adaded up in the output i.e 2 columns of each of the new fields . When I try to put refresh at the end of the form detail_list then in the ALV grid display it removes all the previousely existing columns and just displays my new fields which again doubles up on going back and coimng in again. How ill I remove this doubling up of columns on re-entry.

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
847

Clear field catalog internal table before you append the data.

7 REPLIES 7
Read only

Former Member
0 Likes
848

Clear field catalog internal table before you append the data.

Read only

0 Likes
847

I treid that but the problem is I added 6 additional fields to the existing field cat but when I clear the internal table what happens is that when I re-eneter into the deatil list I see only the 6 new fields that I had aded all the other existing fcat dissapers. Wher exactly shld I put the refresh so that this dosent happen on re-entry and I get the same list as before.

Thanks

Read only

0 Likes
847

you need to append your new fields only in case there are not already in the field catalog. So you just need to read field catalog and check if there are already record for your new fields. You know field names hence it's pretty easy.

Cheers

Read only

0 Likes
847

So how do I read the field catalogue to check if my fields are there and if there skip creating new catalogue for those fields.

Thanks

Read only

0 Likes
847

Could you paste code where you add these new fields into your field catalog?

Thanks

Read only

0 Likes
847

Ok I got I just added my new fileds catalogue after perform feildcatlogue and it is working fine now , eralier I ahd it at a detail list so everytiem it ran was picking up the catalogue and re-showing.

Thanks

Read only

Former Member
0 Likes
847

.