‎2006 Mar 20 2:19 AM
Hi!
<b>Is it possible to add screen elements at run time?</b>
I have tried doing
APPEND g_wa_screen TO screenbut 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.
‎2006 Mar 23 9:48 AM
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
‎2006 Mar 23 9:52 AM
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