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

Adding a column dynamically in ALV grid

Former Member
0 Likes
1,901

Hi all,

I am displaying an ALV grid. I am selecting few records and processing them by clikcing a button on application toolbar.

After processing I want to display their processing status. For this I want to display a column with the status dynamically in ALV. I mean that this STATUS should not be displayed initially in the grid but after processing , this status column should be displayed.

Can you please tell me if this is possible? If yes, then how?

Thanks and regards,

Ridhima

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
642

refer.

4 REPLIES 4
Read only

Former Member
0 Likes
643

refer.

Read only

Former Member
0 Likes
642

refer

/people/ravikumar.allampallam/blog/2005/05/31/expand-the-list-of-columns-in-a-report-dynamically

/people/subramanian.venkateswaran2/blog/2004/11/19/dynamic-internal-table

/people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
642

Hi,

One way to deal with this situation is design two grids.One with columns except status and another with fieldcatalog including status.

Pass the first structure to ALV for normal display.If the button is clicked,pass the second structure which includes status for display.

Kindly reward poits by clicking the star on the left of reply,if it helps.

Read only

Former Member
0 Likes
642

Hi Ridhima,

Please check the link,

Hope this helps.

Regards,

Hema.

    • Reward points if it is useful.