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 Screen Elements Dynamically

Former Member
0 Likes
413

Hi!

<b>Is it possible to add screen elements at run time?</b>

I have tried doing

APPEND g_wa_screen TO screen

but it is not allowed.

Im trying to add new colums to my table control. I've already added columns in the cols sub-structure of my table control but nothing gets displayed. My hunch is that those fields arent defined in the screen structure.

2 REPLIES 2
Read only

Former Member
0 Likes
382

Hello Emir,

You might struggle to do this with dialog screens.

A better alternative would be to use ALV Grid control. Using this, you could dynamically add columns etc. You can even include a grid control on a dialog screen using a custom control in the screen painter. Look at transaction SE83 for examples of ALV grid control and the documentation on class CL_GUI_ALV_GRID.

Cheers,

Martin

Read only

Former Member
0 Likes
382

Hi,

You can try with Cl_GUI_ALV_GRID as martin suggested, here you have flexibility to add or delete columns run time. also it will behave similar to table control.

you can make columns also editable if you want it to be editable..

Regards

Vijay